CCNP 350-401 ENCOR Question 592 DISCUSSION

  • 834 views
  • 2023-07-07
« Back to Main Menu

Based on the router's API output in JSON format below, which Python code will display the value of the `hostname` key?

Q592

A. 
json_data= json.loads(response.text)
print(json_data['response']['family'][hostname])

B. 
json_data = response.json()
print(json_data['response'][0]['hostname'])

C. 
json_data = json.loads(response.text)
print(json_data[response][0][hostname])

D. 
json_data = response.json()
print(json_data['response'][family][hostname])

Based on the router's API output in JSON format below, which Python code will display the value of the `hostname` key?

Q592

A. 
json_data= json.loads(response.text)
print(json_data['response']['family'][hostname])

B. 
json_data = response.json()
print(json_data['response'][0]['hostname'])

C. 
json_data = json.loads(response.text)
print(json_data[response][0][hostname])

D. 
json_data = response.json()
print(json_data['response'][family][hostname])

Correct Answer: B

Support AceITCert.com by buying stuff you need!

0 Comments

In order to participate in the comments you need to be logged-in.
You can sign-up or login (it's free).