exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 237 discussion

Actual exam question from Cisco's 350-901
Question #: 237
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 Python script that uses RESTCOMF to add an IP address and subnet mask to an interface. 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
EvoRed
Highly Voted 1 year, 1 month ago
It's 1) https://10.0.0.20:443/ 2) ip/address/primary/address 3) json.dumps(ip_address)
upvoted 14 times
...
lznlxl
Highly Voted 1 year, 3 months ago
The given answer is incorrect. it should be 1) https://10.0.0.20:443/ 2) ip/address/primary/address 3) json.loads(ip_address)
upvoted 5 times
[Removed]
1 year, 2 months ago
You would never use json.loads to load a Python dictionary, this will throw a traceback error.
upvoted 3 times
Ra79
11 months, 2 weeks ago
yes you are right. json.dumps(ip_address) is correct. The difference between json.loads() and json.dumps() is that json.loads() converts a JSON encoded string into a Python object while json.dumps() converts a Python object into a JSON encoded one string converted. ip_address ={"address": "192..x." , "mask: 2255." } is a python objetct and we need json to configure
upvoted 1 times
...
...
...
al_mon
Most Recent 2 months, 2 weeks ago
Using ip/address/primary/address: This path would be used only if the YANG model explicitly required it, which is not the case for Cisco IOS-XE RESTCONF.
upvoted 1 times
...
Pecoto
8 months, 3 weeks ago
I will go with ip/address per documentation is ip/address/primary I assume that if you dont state primary it take as default
upvoted 1 times
...
[Removed]
1 year, 3 months ago
It's: 1. A - https://10.0.0.20:443/ 2. E - ip/address 3. B - json.dumps(ip_address)
upvoted 5 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