Courseiva
hardMultiple Select

CCNP Practice Question: Which three statements about YANG data models are…

Which three statements about YANG data models are true? (Choose three.)

⚠ Common exam trap

350-401 often tests whether candidates confuse YANG (the modeling language) with XML (an encoding) and with SNMP MIBs (a completely separate management framework).

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 define data models for NETCONF and RESTCONF.

Option A is correct because YANG (RFC 7950) is the standard data modeling language used to define the configuration and state data manipulated by NETCONF (RFC 6241) and RESTCONF (RFC 8040) protocols. Option C is correct because YANG organizes data hierarchically using constructs such as containers (for grouping nodes) and lists (for repeated entries keyed by leaf values), enabling tree-structured schemas. Option E is correct because YANG defines built-in types including string, int32, uint32, boolean, enumeration, and others, which can be used directly or restricted via derived types. Option B is not correct because YANG modules are written in a dedicated YANG syntax, not XML; XML is only one of the encodings (alongside JSON) used to represent YANG-modeled data on the wire. Option D is not correct because YANG modules are not compiled into SNMP MIBs; SNMP uses SMIv2 MIBs, and YANG-to-MIB translation is a separate, non-standard mapping, not a compilation step.

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 define data models for NETCONF and RESTCONF.

    Why this is correct

    YANG provides the schema language describing configuration and state data, and both NETCONF and RESTCONF use those models to structure their payloads. This shared modelling role is why the same YANG module can be consumed by either protocol.

  • ✗

    YANG models are written in XML syntax.

    Why it's wrong here

    YANG modules are defined in a bespoke syntax, not XML; XML is merely one encoding (alongside JSON) used to represent YANG-modelled data on the wire. The model itself is encoding-independent. XML's prominence in NETCONF transports makes this tempting, but conflating the data encoding with the modelling language is the error.

  • ✓

    YANG supports hierarchical data structures using containers and lists.

    Why this is correct

    YANG models data as a tree: containers group related nodes, and lists hold multiple entries keyed for uniqueness. This hierarchy lets models represent nested configuration and state, which is fundamental to NETCONF and RESTCONF data handling.

  • ✗

    YANG modules are compiled into MIB files for SNMP.

    Why it's wrong here

    YANG models are consumed by NETCONF/RESTCONF agents and tooling such as pyang or gNMI; they are never compiled into SNMP MIBs, which use SMIv2 syntax. The tempting association is that both describe managed data, so MIB compilation would be the right mechanism only when modelling SNMP-managed objects.

  • ✓

    YANG includes built-in data types such as string, int32, and enumeration.

    Why this is correct

    YANG defines a standard set of built-in types, including string, int32, uint32, boolean and enumeration, which model statements reference when defining leaf nodes. These primitive types let models validate configuration and state data consistently across NETCONF and RESTCONF implementations.

About these practice questions

This 350-401 question is part of Courseiva's 1,923-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Cisco exam blueprint

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.