nerdexam
Cisco

300-435 · Question #152

Refer to the exhibit. A Cisco Catalyst SD-WAN Fabric Policy must be created in a non-production environment. To implement this, a Python script that pulls the existing policy and updates the preferred

Sign in or unlock 300-435 to reveal the answer and full explanation for question #152. The question stem and answer options stay visible for context.

Controller-Based Network Automation

Question

Refer to the exhibit. A Cisco Catalyst SD-WAN Fabric Policy must be created in a non-production environment. To implement this, a Python script that pulls the existing policy and updates the preferred route to be over MPLS must be run during the Scripting window. Which code snippet must be added to the box in the code to complete the Python script? The initial part of the Python script is not shown.

Exhibit

300-435 question #152 exhibit

Options

  • Aresponse = requests.request( "PUT", url, headers=headers, data=json.dumps(policy), verify=False ) if response.ok:
  • Bresponse = requests.request( "POST", url, headers=headers, data=json.dumps(policy), verify=False ) if response.ok:
  • Cresponse = requests.request( "POST", url, headers=headers, data=json.dumps(policy), verify=True ) if response.ok:
  • Dresponse = requests.request( "PUT", url, headers=headers, data=json.dumps(policy), verify=True ) if response.ok:

Unlock 300-435 to see the answer

You've previewed enough free 300-435 questions. Unlock 300-435 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#REST API#Python requests library#SD-WAN Automation#HTTP Methods
Full 300-435 Practice