exam questions

Exam 300-435 All Questions

View all questions & answers for the 300-435 exam

Exam 300-435 topic 1 question 74 discussion

Actual exam question from Cisco's 300-435
Question #: 74
Topic #: 1
[All 300-435 Questions]


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']
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Wocilon
Highly Voted 3 years, 1 month ago
Answer is D. 0 are needed due they are inside lists. d["data"][0]["statusList"][0]["status"]
upvoted 13 times
...
sushil_bhattacharjee
Most Recent 7 months, 2 weeks ago
Selected Answer: D
Testing in a python script and D is definitely correct: d = { "data": [ { "count": 4, "detailsURL": "", "status": "error", "statusList": [ { "count": 4, "detailsURL": "/dataservice/device/hardwarehealth/detail?state=normal", "message": "normal", "status": "up" } ] } ] } print(d['data'][0]['statusList'][0]['status'])
upvoted 3 times
...
ThePokemonNuzlockingMaster
10 months, 2 weeks ago
Testing in a python script and D is definitely correct: d = { "data": [ { "count": 4, "detailsURL": "", "status": "error", "statusList": [ { "count": 4, "detailsURL": "/dataservice/device/hardwarehealth/detail?state=normal", "message": "normal", "status": "up" } ] } ] } print(d['data'][0]['statusList'][0]['status'])
upvoted 1 times
...
mrbrainwavez
1 year, 11 months ago
It's D
upvoted 1 times
...
Lyndongarcia09
2 years, 11 months ago
Answer shoulb be D, because you are querying an item inside a list.
upvoted 4 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 ...