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 Exam 300-535 Topic 16 Question 49 Discussion

Actual exam question for Cisco's 300-535 exam
Question #: 49
Topic #: 16
[All 300-535 Questions]

Refer to the exhibit.

A Python script is created to add a new device on Cisco NSO using RESTCONF API. The device is added successfully, but a 405 Method Not Allowed RESTCONF error code has received as the line to fetch SSH keys runs. Which code is missing to complete the script?

Show Suggested Answer Hide Answer
Suggested Answer: A, E

Contribute your Thoughts:

Coral
15 hours ago
Wait, wait, wait... 'fetch-host-keys'? Is this some kind of secret agent mission? I thought we were just adding a device to Cisco NSO! Oh well, I'll go with option B and hope I don't get any more spy-like surprises.
upvoted 0 times
...
Carey
3 days ago
I'm pretty sure the correct answer is B. The question states that the device was added successfully, so the issue must be with the fetch-host-keys operation. Using POST instead of PUT should resolve the 405 error.
upvoted 0 times
...
Annamaria
18 days ago
Hmm, the 405 error is a bit tricky. I guess the developers of this API don't want us to use the PUT method for the fetch-host-keys operation. Maybe they want us to use POST instead? Let's go with option B and see if that works.
upvoted 0 times
...
Freeman
18 days ago
But option A uses 'put' method, not 'post' as required in the question.
upvoted 0 times
...
Ligia
21 days ago
The 405 Method Not Allowed error code indicates that the HTTP method used (PUT or POST) is not allowed for the specified resource. Since the question mentions that the device was added successfully, the issue seems to be with the fetch-host-keys operation. Therefore, I believe the correct answer is B) response = requests.post(baseUriOperation + '/devices/device=ios-device/ssh/fetch-host-keys', auth=auth, headers=headers).
upvoted 0 times
Latrice
4 days ago
User1: I think the correct answer is B.
upvoted 0 times
...
...
Lucia
23 days ago
I disagree, I believe the missing code is option D.
upvoted 0 times
...
Freeman
28 days ago
I think the missing code is option A.
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