exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 75 discussion

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

DRAG DROP -


Refer to the exhibit. The Python script is supposed to make an API call to Cisco DNA Center querying a wireless profile for the `ChicagoCampus` and then parsing out its enable FlexConnect value. Drag and drop the parts of the Python code from the left onto the item numbers on the right that match the missing sections in the exhibit.
Select and Place:

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
garcesdavid88
Highly Voted 1 year, 7 months ago
import json file = open(WirelessProfile.json) profile = json.load(file) print(profile[0]['profileDetails']['ssidDetails'][0]['flexConnect']['enableFlexConnect']) Item 1 ====> ProfileName Item 2 ====> ProfileDetails Item 3 ====> ssidDetails Item 4 ====> 0 Item 5 ====> flexConnect Item 6 ====> enableFlexConne
upvoted 29 times
...
ashf4kbd
Highly Voted 1 year, 8 months ago
Answer Item 1 ====> ProfileName Item 2 ====> ProfileDetails Item 3 ====> ssidDetails Item 4 ====> 0 Item 5 ====> flexConnect Item 6 ====> enableFlexConnect https://dnacentersdk.readthedocs.io/en/latest/api/api.html#dnacentersdk.api.v1_3_0.non_fabric_wireless.NonFabricWireless.get_wireless_profile search for get_wireless_Profile
upvoted 11 times
...
Teringzooi
Most Recent 7 months, 2 weeks ago
Item 1 ====> ProfileName Item 2 ====> ProfileDetails Item 3 ====> ssidDetails Item 4 ====> 0 > to specify the position inside the Array ssidDetails Item 5 ====> flexConnect Item 6 ====> enableFlexConnect
upvoted 3 times
...
designated
8 months, 3 weeks ago
It is correct import json file = open(WirelessProfile.json) profile = json.load(file) print(profile[0]['profileDetails']['ssidDetails'][0]['flexConnect']['enableFlexConnect']) Item 1 ====> ProfileName Item 2 ====> ProfileDetails Item 3 ====> ssidDetails Item 4 ====> 0 > to specify the position inside the Array ssidDetails Item 5 ====> flexConnect Item 6 ====> enableFlexConnect
upvoted 1 times
...
CiscoRider
11 months, 3 weeks ago
Why did you use 0 on Item 4?
upvoted 2 times
designated
8 months, 3 weeks ago
Note: JSON Array is a list of items surrounded by square brackets. Each item in an array is separated by a comma and we must insert the position to be able to locate the item inside it.
upvoted 2 times
examtopicstroilevw
1 month, 3 weeks ago
Yes, this question tested understanding of JSON array [] versus JSON container {}. if you look closely, there is a [0] referring to the profileDetails initially, as it is also inside [] in the response.
upvoted 1 times
...
...
...
ferock
1 year ago
1. profileName 2. profileDetails 3. ssidDetails 4. 0 5. flexConnect 6. enableFlexConnect
upvoted 1 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