Q: 9
Refer to the exhibit.
Cisco SD-WAN deployment must be troubleshooted using vManage APIs. A call to vEdge Hardware
Health API returns the data in the exhibit (only a portion is shown). If this JSON is converted to a
Python dictionary and assigned to the variable “d”, how the status is accessed that is indicated on
line 16?
Cisco SD-WAN deployment must be troubleshooted using vManage APIs. A call to vEdge Hardware
Health API returns the data in the exhibit (only a portion is shown). If this JSON is converted to a
Python dictionary and assigned to the variable “d”, how the status is accessed that is indicated on
line 16?Options
Discussion
D. you need to use both string keys and integer indices when you have lists like this in nested JSON.
Makes sense from the JSON structure, you need to index into the lists using [0] and use string keys for the dictionaries. D is correct here, pretty sure that's also what shows up in similar practice questions.
Not seeing why B wouldn't work here. If both data and statusList are dicts, B looks right to me.
My vote is D. As long as data and statusList are both lists at those points, that should work. Not 100 percent sure though.
D, Saw this pattern in Cisco official labs, always use string keys for dicts and index with [0] for lists.
Be respectful. No spam.