Refer to the exhibit. A Python script has been created that calls the Cisco SD-WAN vManage Device Inventory API to get the list of vEdges. The JSON data that returns to a Python dictionary has been converted and assigned to a variable named `d`. A portion of the JSON is shown in the exhibit. Which code will complete the expression hostname= to access the hostname?

QuestionsCategory: 300-435Refer to the exhibit. A Python script has been created that calls the Cisco SD-WAN vManage Device Inventory API to get the list of vEdges. The JSON data that returns to a Python dictionary has been converted and assigned to a variable named `d`. A portion of the JSON is shown in the exhibit. Which code will complete the expression hostname= to access the hostname?
Admin Staff asked 7 months ago
Image
Refer to the exhibit. A Python script has been created that calls the Cisco SD-WAN vManage Device Inventory API to get the list of vEdges. The JSON data that returns to a Python dictionary has been converted and assigned to a variable named `d`. A portion of the JSON is shown in the exhibit. Which code will complete the expression hostname= to access the hostname?

A. d[ג€dataג€][0][ג€host-nameג€]

B. d[data][0][host-name]

C. d(ג€dataג€)[0](ג€host-nameג€)

D. d[ג€host-nameג€][ג€dataג€]{ג€0ג€}








 

Suggested Answer: A

The double-quotations are a necessary syntax of Python. And for the json portion doesnt use parentheses. It always uses brackets. d[ג€dataג€][0][ג€host-nameג€] is the only logical answer.

This question is in 300-435 Automating Cisco Enterprise Solutions (ENAUTO) Exam
For getting Cisco Certified DevNet Professional Certificate



Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Cisco.
Trademarks, certification & product names are used for reference only and belong to Cisco.
The website does not contain actual questions and answers from Cisco's Certification Exam.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.