300-435 · Question #24
Refer to the exhibit. Which type of YANG container is described by the JSON instance provided? "Cisco-IOS-XR-ifmgr-cfg:interface-configurations": { "interface-configuration": [ { "active": "act"…
The correct answer is A. interface-configurations. The top-level key in a JSON representation of YANG data, often prefixed with a module name, typically represents the root container or list.
Question
Exhibit
Options
- Ainterface-configurations
- Bactive
- Cinterface-name
- Ddescription
How the community answered
(40 responses)- A93% (37)
- B5% (2)
- D3% (1)
Why each option
The top-level key in a JSON representation of YANG data, often prefixed with a module name, typically represents the root container or list.
In the provided JSON, `"Cisco-IOS-XR-ifmgr-cfg:interface-configurations"` is the top-level key that encapsulates the entire structure, indicating it is the root container or list defined by the YANG model for managing interface configurations. It contains a list of `interface-configuration` elements.
`"active"` is a leaf node within an `interface-configuration` entry, representing a specific attribute, not a container type itself.
`"interface-name"` is a leaf node within an `interface-configuration` entry, representing a specific identifier, not a container type itself.
`"description"` is a leaf node within an `interface-configuration` entry, representing a specific textual attribute, not a container type itself.
Concept tested: YANG model to JSON mapping
Source: https://www.rfc-editor.org/rfc/rfc7951#section-5.1
Topics
Community Discussion
No community discussion yet for this question.
