350-401 · Question #1335
350-401 Question #1335: Real Exam Question with Answer & Explanation
The correct answer is D: It enforces configuration constraints.. YANG and Configuration Constraints YANG (Yet Another Next Generation) is a data modeling language used with NETCONF and RESTCONF that enforces configuration constraints, ensuring that only valid, consistent configurations can be applied to network devices - for example, requiring
Question
What are a benefit of YANG?
Options
- AIt enforces the use of a specific encoding format for NETCONF.
- BIt collects statistical constraint analysis information.
- CIt enables multiple leaf statements to exist within a leaf list.
- DIt enforces configuration constraints.
Explanation
YANG and Configuration Constraints
YANG (Yet Another Next Generation) is a data modeling language used with NETCONF and RESTCONF that enforces configuration constraints, ensuring that only valid, consistent configurations can be applied to network devices - for example, requiring that a value falls within a specific range or that dependent fields are populated correctly.
Why the distractors are wrong:
- Option A is incorrect because YANG is encoding-agnostic; it works with multiple formats (XML, JSON), and does not enforce a single encoding format for NETCONF.
- Option B is a fabricated benefit - YANG does not perform "statistical constraint analysis," which is not a real YANG function.
- Option C is incorrect because a
leaf-listin YANG allows multiple instances of a single leaf type, but it does not mean multiple different leaf statements exist within it - this misrepresents how leaf-list works.
Memory Tip: Think of YANG as a rulebook for your network configuration - just like a bouncer enforces rules at a door, YANG enforces what data is valid before it enters the device. If your config breaks a rule, YANG rejects it. "YANG = Your Accurate Network Guardian."
Topics
Community Discussion
No community discussion yet for this question.