Refer to the exhibit.

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

Suggested Answer: C
Get Premium 200-901 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
The YANG structure shown defines a leaf IPPeer that can be either an IPv4 address or an IPv6 address. The third JSON example correctly represents this union type by using an array with both possible types included:
'IPPeer': [
'10.1.1.1',
'2001:db::1'
]
}
This correctly reflects the YANG definition, where IPPeer can be either type specified in the union.
YANG - Data Modeling Language
Cisco YANG Models
15 comments · newest first
GL
Glenn
1 month ago
I just can't visualize it well. Need more practice.
TY
Tyra
2 months ago
Option A seems more straightforward to me.
JA
Janessa
2 months ago
Option B has the right attributes, I’m confident.
GL
Glenn
2 months ago
I feel confused. Maybe Option C? Not sure though.
TY
Tyra
2 months ago
I'm leaning towards Option A. The structure matches.
JA
Janessa
2 months ago
I think it's Option B. Looks correct.
CA
Carmelina
2 months ago
I agree with Lucina, B makes the most sense!
IL
Ilda
3 months ago
Wait, is this really how YANG works? Seems off.
SA
Sabra
3 months ago
Nah, I think it's definitely Option A.
LU
Lucina
3 months ago
I'm pretty sure it's Option B!
SH
Sheron
3 months ago
The YANG structure defines a node value based on the given options.
FL
Florinda
3 months ago
I vaguely recall that the value could be related to the leaf nodes, but I can't remember if it's A or C. I wish I had reviewed more examples!
JO
Jolene
3 months ago
I feel like I should know this, but the details are a bit fuzzy. I think the node value depends on the data types defined in the structure.
YO
Yolande
4 months ago
This question reminds me of a similar practice one we did about node values in YANG. I think I might lean towards Option B, but I'm not confident.
HU
Huey
4 months ago
I remember studying YANG structures, but I'm not entirely sure how to interpret this specific node value.