Cyber Monday 2024! 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 3 Question 79 Discussion

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

Maile
5 months ago
I bet the problem has something to do with the YANG data format. Let's try adding that Content-Type header and see if that does the trick.
upvoted 0 times
Kris
3 months ago
Let's give it a try and see if it works.
upvoted 0 times
...
Victor
3 months ago
Yeah, that might solve the issue.
upvoted 0 times
...
Bernardo
3 months ago
I think we should add the Content-Type header.
upvoted 0 times
...
Carry
3 months ago
Let's give it a try and see if it works.
upvoted 0 times
...
France
4 months ago
Yeah, that might solve the issue.
upvoted 0 times
...
Viki
4 months ago
I think we should add the Content-Type header.
upvoted 0 times
...
...
Cassandra
5 months ago
I'm not sure, but I think B) Replace -u cisco:cisco parameter with -u 'cisco:cisco' could also be a valid option.
upvoted 0 times
...
Inocencia
5 months ago
Haha, option C is just silly. Who would change a GET request to a POST? That's definitely not going to fix this.
upvoted 0 times
...
Nakita
5 months ago
Hmm, the GET request seems to be formatted properly. Maybe there's an authentication issue with the credentials. I'd try option B and see if that resolves the problem.
upvoted 0 times
Rosann
4 months ago
Option B suggests replacing the -u parameter. That might fix the authentication issue.
upvoted 0 times
...
Marla
5 months ago
I think the credentials might be the problem. Try changing the -u parameter.
upvoted 0 times
...
...
Denna
5 months ago
I disagree, I believe the answer is D) Add the -H 'Content-Type: application/yang-data+json' header.
upvoted 0 times
...
Gene
5 months ago
The HTTP headers in the sequence diagram look correct to me. I think the issue might be with the API endpoint URL or the device configuration.
upvoted 0 times
Kanisha
5 months ago
I agree, it's worth trying that change to see if it fixes the problem.
upvoted 0 times
...
Apolonia
5 months ago
I think option A) Remove the -H 'Accept: application/yang-data+json' header might resolve the issue.
upvoted 0 times
...
...
Jame
5 months ago
I think the correct answer is 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