exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 269 discussion

Actual exam question from Cisco's 350-901
Question #: 269
Topic #: 1
[All 350-901 Questions]

DRAG DROP
-

Drag and drop the code from the bottom onto the box where the code is missing to configure a router that runs Cisco IOS XE by using RESTCONF. The API call is made to the management URL of the IOS XE device and on a registered port number. Errors that are caught during HTTP operation are registered. Not all options are used.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
fb48
Highly Voted 1 year, 3 months ago
ios-xe-mgmt 9443 requests.post 201
upvoted 12 times
...
johndaa
Highly Voted 1 year, 3 months ago
https://github.com/CiscoDevNet/restconf-examples/blob/master/restconf-102/create_static.py
upvoted 6 times
...
ThePokemonNuzlockingMaster
Most Recent 10 months, 1 week ago
PATCH is the method used to add static routes. I've been testing it in labs and I can't get it to work with POST. The example shared by johndaa also is very similar to the exhibit and it uses patch
upvoted 1 times
ThePokemonNuzlockingMaster
10 months, 1 week ago
Update: IT ACTUALLY IS POST!!!! When I tried it before I was targeting a level deeper in the URL: https://192.168.2.56//restconf/data/native/ip/route/ip-route-interface-forwarding-list When you include the "ip-route-interface-forwarding-list" you can only "patch" it, but when you target the layer above (like in the question) then it's a post!
upvoted 4 times
...
...
[Removed]
1 year, 3 months ago
ios-xe-mgmt 9443 requests.patch 201
upvoted 3 times
fb48
1 year, 3 months ago
The correct answer is: requests.post motivation: "to configure a router" means create new and not to change a configuration. Create new = POST change config = PUT
upvoted 2 times
Fedesarucho
10 months, 1 week ago
Are you sure? Are you tested it? it's say "to configure a router" BUT the URL is to configure a static route (....ip/route) and you cannot make POST to a the route list, it's an existing list, so POST will give you an error. PATCH is the right method for me.
upvoted 1 times
Fedesarucho
10 months ago
My bad. You can make a POST to that url. I think I will choose POST too
upvoted 1 times
Fedesarucho
10 months ago
I will add a reason to choose POST. When you make a POST the response is 201 (as show the question) and when you make a PATCH the response is 204
upvoted 1 times
...
...
...
[Removed]
1 year, 2 months ago
You're right, I'm gonna change my answer to: ios-xe-mgmt 9443 requests.post 201 Thanks.
upvoted 2 times
...
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago