Cisco
200-901 · Question #129
Refer to the exhibit. What is the value of the node defined by this YANG structure? A. B. C. D.
The correct answer is C. { "IPPeer": "10.1.1.1" }. When a string representing a union data type is validated, the string is validated against each member type, in the order they are specified in the "type" statement, until a match is found. https://datatracker.ietf.org/doc/html/rfc6020#page-132
Understanding and Using APIs
Question
Refer to the exhibit. What is the value of the node defined by this YANG structure? A. B. C. D.
Exhibit
Options
- A{ "IPPeer": [ "10.1.1.1" ] }
- B{ "IPPeer": "10.1.1.1 2001:db::1" }
- C{ "IPPeer": "10.1.1.1" }
- D{ "IPPeer": [ "10.1.1.1", "2001:db::1" ] }
How the community answered
(33 responses)- A6% (2)
- B6% (2)
- C73% (24)
- D15% (5)
Explanation
When a string representing a union data type is validated, the string is validated against each member type, in the order they are specified in the "type" statement, until a match is found. https://datatracker.ietf.org/doc/html/rfc6020#page-132
Topics
#YANG#Data Modeling#API Data Models#Network Programmability
Community Discussion
No community discussion yet for this question.
