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?

Posted by: Pdfprep Category: 300-435 Tags: , ,

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?
A . d[data][0][statusList][0][status]
B . d[‘data’][‘statusList’][‘status’]
C . d{‘data’}[0]{‘statusList’}[0]{‘status’}
D . d[‘data’][0][‘statusList’][0][‘status’]

Answer: D

Explanation:

The 0s in option AC and D are not logical in this scenario. The status tag already takes care of the error message.

Leave a Reply

Your email address will not be published.