exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 59 discussion

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

Refer to the exhibit.

An API call is constructed to retrieve the inventory in XML format by using the API. The response to the call is 401 Unauthorized. Which two headers must be added to the API call? (Choose two.)

  • A. Bearer-Token: dXNlcm5hbWU6cGFzc3dvcmQ=
  • B. Content-Type: application/xml
  • C. Authentication: Bearer dXNlcm5hbWU6cGFzc3dvcmQ=
  • D. Accept: application/xml
  • E. Authorization: Bearer dXNlcm5hbWU6cGFzc3dvcmQ=
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

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
airone
Highly Voted 1 year, 6 months ago
Sould be D and E https://developer.mozilla.org/fr/docs/Web/HTTP/Headers/Accept
upvoted 19 times
aprettyparrot
1 year, 6 months ago
Its D+E. Accept is telling the server which format the response should be in, in this case XML
upvoted 5 times
...
...
Cheporing
Highly Voted 1 year, 4 months ago
Additional context: A. is Incorrect because there is no Bearer-Token header in HTTP B. is Incorrect, because the image shows Method GET, and Content-Type header defines the type of data you use in the payload of a Method POST C. is incorrect, because Authentication is not the correct HTTP header D. is correct, because Accept header defines the expected response data format of a Method GET E. is correct, because the header Authorization is the one used for OAuth and Basic Auth
upvoted 19 times
...
DASBOL
Most Recent 10 months, 1 week ago
Selected Answer: DE
Sould be D and E https://developer.mozilla.org/fr/docs/Web/HTTP/Headers/Accept
upvoted 2 times
...
DenskyDen
1 year, 6 months ago
Answer is B and E. Here is a sample of a CURL command $ curl --request GET 'http://localhost:8080/restconf/data/tailfncs: devices/device' \ --header 'Content-Type: application/yang-data+json' \ --header 'Authorization: Bearer YWRtaW46YWRtaW4='
upvoted 1 times
DenskyDen
1 year, 6 months ago
As mentioned below, they were right and I was wrong, D and E should be the correct answer.
upvoted 6 times
ImAlwaysRight
1 year, 5 months ago
Another crappy question, as on the documentation provided on the question it says the response type in XML is not supported ... But yeah, D and E make sense according to the question, not to the doc provided in the question
upvoted 3 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 ...