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 11 Question 74 Discussion

Actual exam question for Cisco's 350-601 exam
Question #: 74
Topic #: 11
[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:

Cory
1 months ago
Option A looks like the winner to me. Time to move on to the next question and hopefully get back to coding soon.
upvoted 0 times
...
Marla
1 months ago
Is this a trick question? I feel like the engineers who write these exams are just trying to mess with us.
upvoted 0 times
...
Marsha
2 months ago
If it's Cisco, it's gotta be complicated. I bet the answer is not as straightforward as it seems.
upvoted 0 times
Mila
23 days ago
No, I don't think option B is correct. It seems like we need to use json.loads instead of json.dumps.
upvoted 0 times
...
Theodora
26 days ago
B) >>> output = json.dumps(clid('show ip eigrp neighbors')) >>> output['TABLE_asn']['ROW_asn']['asn']
upvoted 0 times
...
Annabelle
1 months ago
I think option A is correct. It looks like the right way to retrieve the 'asn' key.
upvoted 0 times
...
Lavonda
1 months ago
A) >>> output = json.loads(clid('show ip eigrp neighbors')) >>> output['TABLE_asn']['ROW_asn']['asn']
upvoted 0 times
...
...
Ashleigh
2 months ago
I'm not sure about the output structure here. Shouldn't we be looking for the 'asn' key under the 'ROW_asn' dictionary?
upvoted 0 times
Ranee
29 days ago
B) No, we should use json.loads to convert the output to a dictionary before accessing the 'asn' key.
upvoted 0 times
...
Pamella
1 months ago
A) That's correct. We need to access the 'asn' key under 'ROW_asn' in the output.
upvoted 0 times
...
...
Laurel
2 months ago
Okay, I see your point. I'll go with option A as well.
upvoted 0 times
...
Doretha
2 months ago
I agree with Mari, option A is the correct one.
upvoted 0 times
...
Tandra
2 months ago
Option A looks good. Using json.loads() to parse the output of the 'show ip eigrp neighbors' command should give us access to the 'asn' key.
upvoted 0 times
Verdell
1 months ago
User3: Let's go with option A then.
upvoted 0 times
...
Huey
2 months ago
User2: Yes, json.loads() is used to parse the output and access the 'asn' key.
upvoted 0 times
...
Adelina
2 months ago
User1: I agree, option A is the correct one.
upvoted 0 times
...
...
Mari
3 months ago
But option A uses 'json.loads' to load the JSON data, which is needed to access nested keys.
upvoted 0 times
...
Laurel
3 months ago
I disagree, I believe the answer is D.
upvoted 0 times
...
Mari
3 months ago
I think the correct answer is 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