exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 379 discussion

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



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

  • A. Remove the -H 'Accept: application/yang-data+json’ header.
  • B. Replace -u cisco:cisco parameter with -u ‘cisco:cisco’.
  • C. Change the request method from -X ‘GET’ to -X ‘POST’.
  • D. Add the -H ‘Content-Type: application/yang-data+json’ header.
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
Woonesuf
1 year, 9 months ago
Selected Answer: B
Not A. This header is required to specify the encoding type. Not C. We are viewing the hostname so a GET request is correct. Not D. This is only needed for PUT and POST requests. Answer B. Replace -u cisco:cisco parameter with -u ‘cisco:cisco’. There is likely a typo somewhere because quotes are required around the credentials. Source: https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/restapi/restapi/RESTAPIintro.html
upvoted 2 times
herrmann69
9 months, 4 weeks ago
quotes are not required around the credentials, but recommended, since bash might otherwise interpret special characters like ! or $ which will result in unexpected behaviour.
upvoted 1 times
...
...
outrageous7
1 year, 11 months ago
it is already like that in the picture
upvoted 2 times
nospampls
1 year, 10 months ago
i think there is a type on the answer but -u ‘cisco':'cisco’ could work
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 ...