exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 307 discussion

Actual exam question from Cisco's 350-401
Question #: 307
Topic #: 1
[All 350-401 Questions]

Refer to the exhibit.

Which HTTP JSON response does the Python code output give?

  • A. 7.0(3)|7(4)
  • B. 7.61
  • C. NameError: name 'json' is not defined
  • D. KeyError: 'kickstart_ver_str'
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
tafisto
Highly Voted 1 year, 11 months ago
how do i get to understand this
upvoted 9 times
Arodoeth
1 year, 8 months ago
You can interpret like this: What was the response in the JSON format to the request 'show version' made in the python script? The answer is the version of the kickstart image running on the Nexus9k switch.
upvoted 4 times
...
...
pmmg
Highly Voted 2 years, 1 month ago
Selected Answer: A
The last line says to print, and points to kickstart_ver_str. kickstart_ver_str is 7.0(3)7(4)
upvoted 9 times
...
AbdullahMohammad251
Most Recent 8 months, 2 weeks ago
Selected Answer: A
We're attempting to interact with the Cisco Nexus switch's API using Python to retrieve the version information. We need to drill down the JSON object, because it consists of nested dictionaries, to retrieve the required data (value of key 'kickstart_ver_str').
upvoted 1 times
...
[Removed]
10 months, 3 weeks ago
Selected Answer: A
A is correct look at the end of the Python script where Print is follow the steps to the key path, python will output the value of it ins_api > outputs > output > body > kickstart_ver_str Python will print the value of kickstart_ver_str which you can see on the right side ...................
upvoted 2 times
...
[Removed]
11 months, 3 weeks ago
A is correct look at the end of the Python script where Print is follow the steps to the key path, python will output the value of it
upvoted 1 times
[Removed]
11 months, 3 weeks ago
ins_api > outputs > output > body > kickstart_ver_str Python will print the value of kickstart_ver_str which you can see on the right side
upvoted 1 times
...
...
Badger_27
2 years, 1 month ago
Is this just a case of matching an answer to the body of response.json?
upvoted 2 times
...
echipbk
2 years, 3 months ago
Selected Answer: A
A is correct
upvoted 2 times
...
kthekillerc
3 years, 8 months ago
Provided answer is correct
upvoted 4 times
...
Dave513
4 years, 6 months ago
Many of API calls will return a JSON object containing another resource’s SID. Then the SID the right answer is A.
upvoted 4 times
...
jzjs
4 years, 9 months ago
sid is defferent may be D is true
upvoted 1 times
...
yhee
4 years, 11 months ago
comment
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago