exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 90 discussion

Actual exam question from Cisco's 350-901
Question #: 90
Topic #: 1
[All 350-901 Questions]


Refer to the exhibit. Which code snippet is required in the headers to successfully authorize wireless information from Cisco DNA Center?

  • A. headers = {'X-auth-token':'fa8426a0-8eaf-4d22-8e13-7c1b16a9370c'}
  • B. headers = {'Authorization':'Basic YWRtaW46R3JhcGV2aW5IMQ=='}
  • C. headers = {'Authorization':'Bearer ASDNFALKJER23412RKDALSNKF'}
  • D. headers = {'Content-type':'application/json'}
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
captn_crench
Highly Voted 1 year, 9 months ago
A is correct. DNAC API utilizes tokens. https://github.com/CiscoDevNet/DNAC-Top5/blob/master/util.py line 23
upvoted 6 times
...
Teringzooi
Most Recent 8 months, 4 weeks ago
Selected Answer: A
Correct answer: A https://github.com/CiscoDevNet/DNAC-Top5/blob/master/util.py line 23: def get_url(url): if FAKE: return fake[url] url = create_url(path=url) print(url) token = get_auth_token() headers = {'X-auth-token' : token['token']}
upvoted 2 times
...
designated
10 months ago
Selected Answer: A
And the question is not gathering the token since the HTTP method is not POST, so we can understand that the token has already been gathered and we need to use the token X-Auth-Token in the remaining requests. Also, could it be D if there is no Authorization/Authentication mentioned in the question since the request GET must contain the Content-Type and the Accept in the header. https://developer.cisco.com/docs/dna-center/#!authentication-and-authorization/authentication-and-authorization-guide https://developer.cisco.com/docs/dna-center/#!get-wireless-profile
upvoted 1 times
...
designated
10 months ago
Selected Answer: A
Cisco DNA Center REST API requires user authentication (Basic authentication scheme) before making API calls. Once authenticated, the user receives a token from the API endpoint, which needs to be included in every request as the X-Auth-Token header
upvoted 1 times
...
designated
10 months ago
Selected Answer: A
A ia correct since DNA uses tokens to authenticate
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...