350-501 · Question #584
What are two purposes of a data-modeling language such as YANG? (Choose two.)
The correct answer is B. modeling notifications, data configuration and data status C. defining a hierarchical data scheme. Two primary purposes of a data-modeling language like YANG are to model configuration data, operational state, and notifications for network devices, and to define a strict hierarchical structure for this data.
Question
What are two purposes of a data-modeling language such as YANG? (Choose two.)
Options
- Adefining API calls, JSON format and XML structure
- Bmodeling notifications, data configuration and data status
- Cdefining a hierarchical data scheme
- Ddefining a semi-structured data scheme
- Edefining a relational-model data scheme
How the community answered
(33 responses)- B91% (30)
- D3% (1)
- E6% (2)
Why each option
Two primary purposes of a data-modeling language like YANG are to model configuration data, operational state, and notifications for network devices, and to define a strict hierarchical structure for this data.
While YANG models are used in conjunction with API calls and define the data structures for formats like JSON or XML, its core purpose is to model the data itself, not to define the API calls or the encoding formats.
YANG models are specifically designed to define and represent the configuration data, operational state data, and notifications that network devices utilize, enabling a structured and standardized approach to network management.
YANG establishes a hierarchical data scheme, organizing network device parameters and operational information into a tree-like structure, which provides a clear and programmatic way to access and manipulate data.
YANG defines a *structured* data scheme with strict rules and types, not a semi-structured one, which implies a less rigid organization.
YANG's data model is inherently hierarchical (tree-based), not a relational model, which is typically associated with traditional databases.
Concept tested: YANG data modeling language purposes
Source: https://developer.cisco.com/docs/ios-xe/#!netconf-yang-apis/yang-model-overview
Topics
Community Discussion
No community discussion yet for this question.