exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 215 discussion

Actual exam question from Cisco's 200-901
Question #: 215
Topic #: 1
[All 200-901 Questions]

Refer to the exhibit.

What is the value of the node defined by this YANG structure?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: C

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ssokol
Highly Voted 2 years, 1 month ago
As leranay said - this shiuld be one value of its member, but proper formating in jason to set value for "IpPeer" is a pair of "name":value (but if value is a string then it needs "") so in my opinion it's "C" - as it sets "IpPeer" to string that represents ipv4 adress -> and its proper formating according to: http://www.netconfcentral.org/modules/ietf-inet-types
upvoted 13 times
leranay
2 years, 1 month ago
Yep, I don't know where that "correct format" came from hahaha. Should be C which is a pure JSON object without an array. This is compatible if the return value is needed in XML format due arrays are not supported in XML. The array implies that you can have more than one IPV4 in an interface, which is VERY VERY unlikely, (but not impossible).
upvoted 3 times
...
...
leranay
Highly Voted 2 years, 1 month ago
I think the correct answer should be C. From the RFC6020 9.12 " The union built-in type represents a value that corresponds to one of its member types."
upvoted 10 times
leranay
2 years, 1 month ago
Sorry, the A is the correct answer with the correct format.
upvoted 3 times
...
...
macxsz
Most Recent 1 year ago
It should be C For union type the json format is: name:value
upvoted 3 times
...
anonymous1966
1 year, 2 months ago
Agree with C. " 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
upvoted 3 times
...
paulito
2 years ago
Should be C, it's a single IP address (because it's a leaf and not leaf list)
upvoted 6 times
udo2020
1 year, 11 months ago
But there is IPv4 and IPv6 mentioned. So I think there should be 2 IPs.
upvoted 2 times
kimo1234
1 year, 3 months ago
union indicates only 1 can hold a value at a time
upvoted 2 times
...
...
...
Deepzi
2 years, 1 month ago
I think it is D. Dont you need both IPv4 and IPv6 addresses ?
upvoted 7 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...