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 200-901 Exam - Topic 10 Question 52 Discussion

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?
B) Replace -u cisco:cisco parameter with -u 'cisco:cisco'.
A) Remove the -H 'Accept: application/yang-data+json' header.
C) Change the request method from -X 'GET' to -X 'POST'.
D) Add the -H 'Content-Type: application/yang-data+json' header.

Cisco 200-901 Exam - Topic 10 Question 52 Discussion

Actual exam question for Cisco's 200-901 exam
Question #: 52
Topic #: 10
[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:

0/2000 characters
Rolland
10 months ago
Just removing the Accept header might not fix it.
upvoted 0 times
...
Launa
10 months ago
Definitely need that Content-Type header, so D makes sense.
upvoted 0 times
...
Kristel
10 months ago
Wait, can you really change GET to POST? Seems odd.
upvoted 0 times
...
Alyce
11 months ago
No way, I believe D is the correct choice!
upvoted 0 times
...
Felicidad
11 months ago
I think option A is the way to go.
upvoted 0 times
...
Sheldon
11 months ago
I feel like the username format might be an issue, but I can't remember if it needs quotes or not. This is tricky!
upvoted 0 times
...
Dell
11 months ago
I think adding the Content-Type header could help, but I can't recall if it was necessary for GET requests specifically.
upvoted 0 times
...
Marguerita
11 months ago
This question feels similar to the practice ones we did on RESTCONF. I think changing the request method to POST is definitely not the right approach.
upvoted 0 times
...
Ronny
11 months ago
I remember we discussed the importance of the Accept header in REST APIs, but I'm not sure if removing it is the right solution here.
upvoted 0 times
...
Merissa
11 months ago
Hmm, I'm a little unsure about this one. The scenario covers a lot of ground, and I want to make sure I understand all the key details before selecting an answer. Let me re-read it carefully.
upvoted 0 times
...
Lourdes
11 months ago
I'm pretty sure the Splunk CIM Add-on uses XML format for its data models, so I'll go with option B.
upvoted 0 times
...
Adria
11 months ago
I got this! Unicode is 16-bit, so it takes 2 bytes to store each character.
upvoted 0 times
...

Save Cancel