nerdexam
Cisco

200-901 · Question #7

Refer to the exhibit. What does the python function do?

The correct answer is C. It returns an authorization token. You need to retrieve information through the API, so we need to do a GET request; don’t forget the X-Auth-Token header containing the authorization token. https://developer.cisco.com/learning/lab/dnav3-dnac-nbapi-hello-world/step/4

Understanding and Using APIs

Question

Refer to the exhibit. What does the python function do?

Exhibit

200-901 question #7 exhibit

Options

  • AIt returns DNAC user and password.
  • BIt returns HTTP Basic Authentication.
  • CIt returns an authorization token.
  • DIt reads a token from a local JSON file and posts the token to the DNAC URL.

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    92% (22)

Explanation

You need to retrieve information through the API, so we need to do a GET request; don’t forget the X-Auth-Token header containing the authorization token. https://developer.cisco.com/learning/lab/dnav3-dnac-nbapi-hello-world/step/4

Topics

#Python#Authorization Token#API Authentication#Cisco DNA Center

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice