hardMultiple SelectObjective-mapped
CCNP Practice Question: Which three statements about YANG data models are…
Which three statements about YANG data models are true? (Choose three.)
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
✓
YANG is used to model both configuration and operational state data.
YANG is a data modeling language used to model configuration and state data for network devices. It can define both configuration data (which is writable) and operational state data (which is read-only). YANG models can be augmented using the 'augment' statement to add nodes to an existing model without modifying it. YANG does not define transport protocols; it is used with protocols like NETCONF and RESTCONF. The 'leaf' statement defines a single, scalar data node, not a list.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
YANG is used to model both configuration and operational state data.
Why this is correct
Correct because YANG models can include both config true and config false nodes for configuration and state data.
- ✓
YANG models can be augmented using the 'augment' statement.
Why this is correct
Correct because the 'augment' statement allows extending an existing YANG module with additional nodes.
- ✗
YANG defines the transport protocol for data exchange.
Why it's wrong here
Incorrect because YANG is a data modeling language and does not specify transport; NETCONF or RESTCONF provide the transport.
- ✗
The 'leaf' statement in YANG defines a list of key-value pairs.
Why it's wrong here
Incorrect because 'leaf' defines a single scalar value; 'list' defines a collection of key-value pairs.
- ✓
YANG uses XML or JSON encoding for data instances.
Why this is correct
Correct because YANG data can be encoded in XML (as in NETCONF) or JSON (as in RESTCONF).
About these practice questions
One of 1,175 original 350-401 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 →
Same concept, more angles
1 more way this is tested on 350-401
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Which three statements about YANG data models are true? (Choose three.)
hard- ✓ A.YANG is used to define data models for NETCONF and RESTCONF.
- B.YANG models are written in XML syntax.
- ✓ C.YANG supports hierarchical data structures using containers and lists.
- D.YANG modules are compiled into MIB files for SNMP.
- ✓ E.YANG includes built-in data types such as string, int32, and enumeration.
Why A: The correct answers are A, C, and E. A is correct because YANG is used to model configuration and operational data in NETCONF and RESTCONF. C is correct because YANG uses a tree-like hierarchical structure with containers and lists. E is correct because YANG supports data types such as string, int32, and enumeration. B is incorrect because YANG models are not written in XML; they use a custom syntax similar to SMIv2. D is incorrect because YANG modules are not compiled into MIB files; MIBs are for SNMP.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-401 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-401 exam.