The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.
Tested this on Postman against CSR1K sandbox:
HTTP+right auth creds===> 400 Bad request
HTTPS+bad auth creds===> 401 Unauthorized
HTTP+bad auth cred===> 400 Bad request
I am inclined to D, I think they just used HTTP GET to specify the method because I dont recall seeing HTTPS GET or HTTPS POST anywhere.
I would say the correct answer is D.
The reason why I got the conclusion is that, by default, ISO XE needs to use HTTPS verbs. From documentation:
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/167/b_167_programmability_cg/restconf_programmable_interface.html#concept_hjq_bgx_51b
"Step 4
Device(config)# ip http secure-server
Enables a secure HTTP (HTTPS) server."
"Example: Configuring the RESTCONF Protocol
RESTCONF Requests (HTTPS Verbs):"
Yeap, here we can verify that RESTCONF uses HTTPS, so http should not work
RESTCONF runs over HTTPS. The following commands must be enabled to support RESTCONF over port 443:
https://developer.cisco.com/docs/ios-xe/#!enabling-restconf-on-ios-xe/authentication
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.200-901 Exam Questions
Log in to ExamTopics
Sign in:
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.
Requium
Highly Voted 4 years agoworking_on_hcip
9 months, 2 weeks agoAlan2036
Highly Voted 4 years agoTejas007
Most Recent 3 months agomoha413
1 year, 5 months agomacxsz
2 years, 1 month agoSAGA
3 years, 4 months agoblinksink
3 years, 6 months agouzbin
3 years, 6 months agogarcesdavid88
3 years, 8 months agonlakhani
3 years, 9 months ago5tuple
3 years, 9 months agoTechBrain
3 years, 10 months agoPhilbert919
3 years, 11 months ago73173v2
3 years, 9 months ago