350-601 · Question #643
Refer to the exhibit. An engineer must create a Python script that uses the Cisco NX-API CLI to configure hostnames on a Cisco Nexus 9000 Series Switch. The output of the script must be encoded in…
The correct answer is A. application/json. The script in the exhibit is using the Cisco NX-API to send configuration commands to a Cisco Nexus 9000 Series Switch. Since the output_format in the XML body is specified as json (line 14), the appropriate content type for the headers should be application/json. This ensures…
Question
Refer to the exhibit. An engineer must create a Python script that uses the Cisco NX-API CLI to configure hostnames on a Cisco Nexus 9000 Series Switch. The output of the script must be encoded in JSON. Which snippet code on line 5 completes the script?
Exhibit
Options
- Aapplication/json
- Btext/json
- Capplication/xml
- Dtext/xml
How the community answered
(48 responses)- A94% (45)
- B2% (1)
- D4% (2)
Explanation
The script in the exhibit is using the Cisco NX-API to send configuration commands to a Cisco Nexus 9000 Series Switch. Since the output_format in the XML body is specified as json (line 14), the appropriate content type for the headers should be application/json. This ensures that the response from the switch is expected to be in JSON format and correctly processed by
Topics
Community Discussion
No community discussion yet for this question.
