Q: 11
Refer to the exhibit.
A Python script must be created to deactivate vSmart Policy Cisco SD-WAN vManage Configuration
APIs. The documentation states the URL is as shown in the exhibit for this REST call using POST, and
that “policyId” is a required request parameter. Which line of Python code makes this call, assuming
the variable “s” is a valid Requests session object and the variable “policy-id” is the policyId?
A Python script must be created to deactivate vSmart Policy Cisco SD-WAN vManage Configuration
APIs. The documentation states the URL is as shown in the exhibit for this REST call using POST, and
that “policyId” is a required request parameter. Which line of Python code makes this call, assuming
the variable “s” is a valid Requests session object and the variable “policy-id” is the policyId?Options
Discussion
Option B Saw a very similar SD-WAN REST call on practice, and it needs the policyId as part of the URL path with the POST method. The others either use wrong params or data structure. Pretty sure, but let me know if you see different.
I get why D is tempting since a lot of APIs want params in the data body, but the SD-WAN docs show policyId in the URL path for this endpoint. So it's B here. Seen this match up on some hands-on practice too, but open if I've missed something.
My vote is it's B, because vManage API usually expects the policyId in the URL path, not as post data. I saw a similar question on a practice exam and B matched the documentation. Not 100 percent but that's how most SD-WAN REST calls are structured. Anyone disagree?
D imo. Usually for REST APIs, passing parameters like policyId in the POST body is pretty standard. Official guide and some hands-on labs show similar patterns. Not fully sure though, anyone else run into this on the exam?
B not D. The trap is thinking it should go in the data field, but in SD-WAN API specs, policyId is part of the URL path here. Saw this approach on some exam reports.
C or D, both seem plausible given the use of POST with policyId, but not totally sure.
Be respectful. No spam.