nerdexam
Cisco

350-501 · Question #545

Refer to the exhibit. An operations team recently located an archive of scripts for deploying routine network changes with an error-free approach. A junior network engineer, who is working to modify t

The correct answer is A. Send a patch request to the API endpoint. E. Ignore SSL certificate verification.. The script uses requests.patch() against the RESTCONF URI, so it sends an HTTP PATCH to the API endpoint. By passing verify=False to the request, the script ignores SSL certificate validation.

Automation and Assurance

Question

Refer to the exhibit. An operations team recently located an archive of scripts for deploying routine network changes with an error-free approach. A junior network engineer, who is working to modify the scripts to support RESTCONF, has been asked to document the purpose of each updated script. Which two actions does the given script take? (Choose two.)

Exhibit

350-501 question #545 exhibit

Options

  • ASend a patch request to the API endpoint.
  • BPrint a fail message when the response code is 204.
  • CPass an xml data-format request in the API header.
  • DPrint a success message when the device receives a full-content response code.
  • EIgnore SSL certificate verification.

How the community answered

(37 responses)
  • A
    73% (27)
  • B
    3% (1)
  • C
    8% (3)
  • D
    16% (6)

Explanation

The script uses requests.patch() against the RESTCONF URI, so it sends an HTTP PATCH to the API endpoint. By passing verify=False to the request, the script ignores SSL certificate validation.

Topics

#RESTCONF#Network Automation#API Requests#Scripting

Community Discussion

No community discussion yet for this question.

Full 350-501 Practice