Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco Exam 200-901 Topic 1 Question 66 Discussion

Actual exam question for Cisco's 200-901 exam
Question #: 66
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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Alishia
6 months ago
Great, I think option D is the way to go. Let's go with that and see if we can get the hostname returned properly.
upvoted 0 times
...
Ahmed
6 months ago
Aha, that makes sense! If the server is expecting a specific content type, we need to let it know what we're sending. Adding the 'Content-Type' header should do the trick.
upvoted 0 times
...
Jess
6 months ago
Exactly, POST is used for creating or updating resources, not just for fetching data. That leaves us with option D, adding the 'Content-Type' header.
upvoted 0 times
Willetta
5 months ago
D: Exactly, that's the correct solution. Option D is the answer.
upvoted 0 times
...
Buck
5 months ago
C: Add the -H 'Content-Type: application/yang-data+json' header.
upvoted 0 times
...
Adrianna
5 months ago
B: Incorrect. POST is not the correct method for this operation.
upvoted 0 times
...
Celestina
5 months ago
A: Change the request method from -X 'GET' to -X 'POST'.
upvoted 0 times
...
Barney
5 months ago
D: That's not the solution. The issue is with the request method.
upvoted 0 times
...
Jenise
5 months ago
C: Replace -u cisco:cisco parameter with -u 'cisco:cisco'.
upvoted 0 times
...
Moon
5 months ago
B: No, that won't work. It's not related to the issue.
upvoted 0 times
...
Emile
5 months ago
A: Remove the -H 'Accept: application/yang-data+json' header.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77