350-501 Automation and Assurance Practice Question
Which tool is used to validate YANG data models against device capabilities and to generate Python bindings for automation scripts?
⚠ Common exam trap
Cisco often tests the distinction between a protocol (NETCONF/RESTCONF) and a tool (pyang), so the trap here is that candidates confuse the transport or automation framework with the actual YANG validation and binding generation tool.
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
✓
pyang
B is correct because pyang is a YANG data modeling language validator and converter that can validate YANG modules against device capabilities (e.g., via RFC 7895 YANG Library) and generate Python bindings (e.g., using the `--plugindir` or `pyang --format pybind` options) for use in automation scripts. It directly supports the task of validating YANG models and producing Python code, unlike the other options which are protocols or automation frameworks.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
RESTCONF
Why it's wrong here
An HTTP-based protocol for YANG data.
- ✓
pyang
Why this is correct
Validates YANG models and can generate Python bindings.
- ✗
Ansible
Why it's wrong here
Automation tool, not a YANG validator.
- ✗
NETCONF
Why it's wrong here
A network configuration protocol, not a tool.
Go deeper
Related to this question
About these practice questions
One of 971 original 350-501 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-501 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 350-501 exam.