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 350-601 Topic 10 Question 72 Discussion

Actual exam question for Cisco's 350-601 exam
Question #: 72
Topic #: 10
[All 350-601 Questions]

Refer to the exhibit.

Refer to the exhibit. An engineer uses Python in Cisco NX-OS guest shell to retrieve the configuration of the EIGRP ASN on interface eth1/1.

The engineer has written this script:

>>> import json

>>> from cli import*

Which command set must be used to retrieve the value of the 'asn' key?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Dana
2 months ago
I agree with Ahmad, A is the correct answer because 'json.loads' is used to load the JSON data.
upvoted 0 times
...
Ahmad
2 months ago
But A uses 'json.loads' to load the JSON data, which is needed to access nested keys.
upvoted 0 times
...
Ilene
3 months ago
I'm with Ines on this one, option A is the way to go. It's the only one that properly navigates the JSON structure.
upvoted 0 times
Sabina
2 months ago
Yes, option A is the only one that correctly accesses the 'asn' key in the JSON structure.
upvoted 0 times
...
Annmarie
2 months ago
I agree, option A is definitely the correct choice.
upvoted 0 times
...
...
Margart
3 months ago
I disagree, I believe the correct answer is D.
upvoted 0 times
...
Delbert
3 months ago
Haha, option B is a real head-scratcher! Trying to use 'json.dumps' on the output of 'clid' is just asking for trouble.
upvoted 0 times
Irene
2 months ago
User1: I think you're right, option A seems to be the way to go.
upvoted 0 times
...
Nathan
2 months ago
User3: Option A looks like the correct command set to retrieve the value of the 'asn' key.
upvoted 0 times
...
Devora
2 months ago
User2: I agree, using 'json.dumps' on the output of 'clid' is a mistake.
upvoted 0 times
...
Jani
3 months ago
User1: Yeah, option B is definitely not the right choice.
upvoted 0 times
...
...
Ahmad
3 months ago
I think the answer is A.
upvoted 0 times
...
Vernice
3 months ago
I think option A is the way to go, it looks like the most straightforward way to access the 'asn' value.
upvoted 0 times
...
Ines
3 months ago
The 'asn' key is clearly in the 'TABLE_asn' and 'ROW_asn' structures, so option A is the correct choice.
upvoted 0 times
Amie
2 months ago
User 2: Yeah, I agree. The 'asn' key is in the 'TABLE_asn' and 'ROW_asn' structures.
upvoted 0 times
...
Alyce
2 months ago
User 1: I think option A is correct.
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