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 5 Question 99 Discussion

Posted by Catarina on Jun 12, 2025 at 03:17 AM

Refer to the exhibit.

OR

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

Suggested Answer: B

The issue shown in the sequence diagram is an HTTP 401 Unauthorized response. This suggests that the authentication credentials provided are incorrect or improperly formatted. The correct format for the credentials in a cURL command should be without quotes around the username and password. Hence, changing -u 'cisco

' to -u cisco

resolves the issue.


Get Premium 200-901 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
25 comments · newest first
RE
Rebecka 10 months ago
Surprised that D is even an option!
DA
Darrel 10 months ago
I think B makes more sense, though.
TI
Tiera 10 months ago
A is definitely the right choice!
EU
Eun 11 months ago
A seems like the most logical fix here.
LA
Lazaro 11 months ago
C is totally wrong, we need GET for this.
WI
Winfred 11 months ago
I vaguely recall that unnecessary headers can sometimes cause issues, so maybe removing the Accept header in option D could help?
MA
Mari 11 months ago
I feel like changing the request method to POST is not the right approach here. GET should be fine for retrieving data, right?
LA
Lacresha 11 months ago
I'm not entirely sure, but I think using the correct authentication format is important too. Option B sounds familiar from a practice question.
AV
Avery 12 months ago
I remember something about the Content-Type header being crucial for REST APIs, so maybe option A is the right choice?
NO
Nohemi 12 months ago
This is a good question to practice. I think I'll start by trying option A, adding the Content-Type header, and see if that resolves the issue. If not, I'll move on to the other options.
PH
Phyliss 1 year ago
I'm a bit confused by the different header options. I'll need to double-check the documentation on the Cisco IOS XE RESTCONF API to make sure I understand the correct headers to use.
BA
Basilia 1 year ago
Okay, the key here seems to be the Content-Type header. I'm pretty sure I'll need to add that to get the API request to work properly.
EL
Elvis 1 year ago
Hmm, the question mentions a GET request, but the options talk about changing the request method to POST. That seems a bit odd, I'll have to think through that one.
MI
Mike 1 year ago
This looks like a tricky question. I'll need to carefully review the sequence diagram and the API request details to figure out what's causing the issue.
AL
Albert 1 year ago
I see your point, but I still think A) makes more sense because it specifies the correct Content-Type.
VI
Vincent 1 year ago
I disagree, I believe the correct answer is C) Change the request method from -X 'GET' to -X 'POST'.
JA
Jamal 1 year ago
Wait, we're changing the request method from GET to POST? That's like trying to put a square peg in a round hole. Might as well just throw the whole API out the window and start over.
DI
Diane 1 year ago
↳ replying to Jamal
User3: Removing the Accept HTTP header could also help.
ST
Stefania 1 year ago
↳ replying to Jamal
User2: I think adding the Content-Type HTTP header might be the solution.
KI
Kimbery 1 year ago
↳ replying to Jamal
User1: Maybe changing the request method will fix the issue.
AL
Albert 1 year ago
I think the answer is A) Add Content-Type HTTP header with 'application/yang-data+json'.
MI
Miesha 1 year ago
Okay, so we need to add the 'Content-Type' header to the request. Seems like a pretty straightforward fix. As long as I don't accidentally type 'application/yang-data*json' instead, I should be good to go.
SH
Shaun 1 year ago
Haha, the 'cisco: cisco' username and password combo? Really? That's like the 'admin: admin' of network devices. I bet the security team would have a field day with that one.
BO
Bok 1 year ago
↳ replying to Shaun
User 2: Definitely, using default credentials is a big no-no.
DA
Dan 1 year ago
↳ replying to Shaun
User 1: Yeah, that's a major security risk.
0/2000 characters

Save Cancel