Which two are benefits provided by YANG? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: It enforces configuration semantics., It enforces configuration constraints..
Why this is the answer
YANG (Yet Another Next Generation) is a data modeling language used to model configuration and state data, notifications, and RPCs for network devices. Its primary benefits include enforcing configuration semantics and constraints. By defining the structure, type, and relationships of data, YANG ensures that configurations are syntactically correct and semantically meaningful. This means it can prevent invalid configurations by defining rules like data type, range, and mandatory fields (enforcing constraints), and by ensuring that related configuration elements are consistent and make sense together (enforcing semantics). The other options are incorrect: YANG does not enforce a specific encoding format for NETCONF; NETCONF typically uses XML, but YANG models can be encoded in other formats like JSON. YANG is a data modeling language, not a tool for collecting statistical constraint-analysis information. A leaf-list in YANG contains a sequence of scalar values, not multiple leaf statements.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed