Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Cisco Certified DevNet Associate (DEVASC) · Cisco
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
I think this might be another trick question. The requests module allows a shorthand for basic auth that would normally render answer B to also be correct. If you don't specify HTTPBasicAuth, then the auth parameter automatically assumes it. However, there appears to be a typo in answer B where there's a space between json and (), which would cause an error.
See this link to confirm the shorthand for basic auth with the requests module. https://requests.readthedocs.io/en/latest/user/authentication/
A because of requests and of auth=HTTPBasciAuth https://developer.cisco.com/docs/dna-center/#!api-quick-start/authentication