exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 69 discussion

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

Refer to the exhibit.

An administrator attempts to perform a GET using the Cisco IOS XE RESTCONF API to return the hostname of a device. The sequence diagram illustrates the
HTTP messages observed. Which change to the API request resolves the issue?

  • A. Remove the ג€"H 'Accept: application/yang-data+json' HTTP header because it is not required.
  • B. Add ג€"'u cisco:cisco' in the end of the cURL command
  • C. Change the request method from ג€"X ג€GETג€ to ג€"X ג€POSTג€
  • D. Add Content-Type HTTP header with 'application/yang-data+json' using ג€"H 'Content-Type: application/yang-data+json'
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
whiney
Highly Voted 1 year, 4 months ago
B is indeed correct. Basic authentication works for IOS XE RESTCONF
upvoted 11 times
...
anonymous1966
Most Recent 7 months, 2 weeks ago
with no special chars: A. Remove the -H ‘Accept: application/yang-data+json’ HTTP header because it is not required. B. Use -u cisco:cisco instead of -u ‘cisco:cisco’ C. Change the request method from -X “GET” to -X “POST” D. Add Content-Type HTTP header with ‘application/yang-data+json’ using -H ‘Content-Type: application/yang-data+json’
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago