Exam 350-401 All QuestionsBrowse all questions from this exam
Question 307

Refer to the exhibit.

Which HTTP JSON response does the Python code output give?

    Correct Answer: A

    The Python code sends an HTTP POST request to a specified URL with a JSON payload requesting the 'show version' command on a network device. The response JSON object contains various details about the device, including the 'kickstart_ver_str' key, which stores the version of the kickstart image. The Python code then extracts and prints the value associated with 'kickstart_ver_str'. According to the provided JSON response, 'kickstart_ver_str' has the value '7.0(3)7(4)'. Therefore, the correct answer is 7.0(3)7(4).

Discussion
tafisto

how do i get to understand this

Arodoeth

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.

pmmgOption: A

The last line says to print, and points to kickstart_ver_str. kickstart_ver_str is 7.0(3)7(4)

kthekillercOption: A

Provided answer is correct

Dave513Option: A

Many of API calls will return a JSON object containing another resource’s SID. Then the SID the right answer is A.

SeMo0o0oOption: 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 ...................

Badger_27

Is this just a case of matching an answer to the body of response.json?

echipbkOption: A

A is correct

SeMo0o0oOption: 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

SeMo0o0o

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

jzjsOption: D

sid is defferent may be D is true

yhee

comment