SAUTO Network Programmability Foundation Practice Question
You are writing a script to automate firewall rules. When using the 'pyang' tool, what is the primary purpose of the '--format' option?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
To translate the YANG model into a specific output format.
The --format option in pyang is used to specify the output format, such as tree, json, or xsd, for a given YANG model.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
To translate the YANG model into a specific output format.
Why this is correct
The --format flag allows pyang to transform YANG files into documentation or code structures.
- ✗
To set the recursion depth of the model tree.
Why it's wrong here
This is handled by different flags like --tree-depth.
- ✗
To define the input file encoding.
Why it's wrong here
pyang assumes standard text/UTF-8 encoding.
- ✗
To specify the YANG module version.
Why it's wrong here
pyang versioning is handled by the model itself.
About these practice questions
Courseiva writes every SAUTO question from scratch — 281 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Cisco exam blueprint
This SAUTO practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAUTO exam.