exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 202 discussion

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


Refer to the exhibit. A network engineer must collect information from the network. The engineer prepares a script to automate workflow by using Cisco Meraki
API. The script must run over nested loops to collect organization and network information and uses the collected data for final collection. Which process is being automated by using the Python script?

  • A. Collect the IDs of the clients on the BLDG21 network.
  • B. List the IDs from the ACME organization.
  • C. Provide the BLDG21 network information if it is part of the ACME organization.
  • D. Gather the IDs of the ACME organization, the BLDG21 network, and the clients on the network.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
anonymous1966
Highly Voted 2 years, 7 months ago
Selected Answer: B
Realy confusing. Only first_loop function is called. There are no "nested loops". 1) 'response' is the list of organizations 2) 'info' calls the function 'first_loop' that filters only ACME organizations and returns all 'networks' of ACME. 3) the last 'for' prints the IDs of those networks. So, in my opinion, the result is a list of the IDs of networks of organizations ACME, in other words, "B".
upvoted 8 times
beefeater
2 years ago
The second_loop is called on the last line of first_loop in the return statement. That calls the second_loop which in turn calls the third_loop. This is called recursion. The answer is D
upvoted 3 times
...
Emil7
2 years, 4 months ago
Agreed, excellent points.
upvoted 1 times
...
...
mrroboto
Highly Voted 2 years, 10 months ago
Selected Answer: A
It's actually printing out all the client id's for the BLDG21 network under ACME org. So wouldn't A be more accurate?
upvoted 8 times
czifraj2
2 years, 10 months ago
Its D, because mybe other org have a same network name BLDG21.
upvoted 1 times
...
...
herrmann69
Most Recent 10 months ago
Selected Answer: D
The code is only printing the first ID of the BLDG21 network of the ACME org. The IDs of the different loops are not collected together in one list and then printed - the code returns on the first match. It might not even run, since the returned item from line 25 is then used in another loop in line 29. If this item is no collection, it will throw an error there. Even if its an collection, I doubt that every item in line 30 will then have a key "id". If we take a look at the question again: "The script must run over nested loops to collect organization and network information and uses the collected data for final collection. Which process is being automated by using the Python script?" By executing the script, we are gathering: - organization information (we need the ID of the ACME org for our next API call in line 12) - network information (we need the ID of the BLDG21 network for the API call in line 19) Even if we are not returning the IDs of ACME and BLDG21, we are still gathering it. Same with the clients. So, I would choose answer D.
upvoted 2 times
...
louisvuitton12
10 months, 2 weeks ago
The code searches for organizations with the name "ACME," then looks for networks with the name "BLDG21," and finally prints the identifiers of the found elements. The final answer is C actually
upvoted 1 times
...
louisvuitton12
10 months, 2 weeks ago
Selected Answer: D
The code searches for organizations with the name "ACME," then looks for networks with the name "BLDG21," and finally prints the identifiers of the found elements.
upvoted 1 times
...
working_on_hcip
1 year, 2 months ago
Selected Answer: D
each loop gets ID, Net ID, client ID and Org ID
upvoted 1 times
...
evilgoat
1 year, 9 months ago
Another amazing use of semantics, the script will return the client ids on the network BLDG21 for the ACME organization But it's basically semantics to figure out which answer is actually that: A. This seems correct but incomplete, as it doesn't mention that it's only for the ACME org D. For D, there is also such a thing as org ID and network ID, is D implying those or the client IDs on that network It's really nice when the exam tests you on your interpretation of semantics as opposed to understanding of exam topics like python ...
upvoted 2 times
...
Husorabi
1 year, 11 months ago
this code should return the id of the first client in the network BLDG21 in the org ACME, as it users "return", so i think the whole exercise is incorrect
upvoted 4 times
...
SR_Cisco
2 years, 2 months ago
Selected Answer: B
Should be B When line 28 invokes line 9 function, it extracts ACME networks and returns these values to 'info' in line 28 instead of running line 16's function
upvoted 1 times
...
Emil7
2 years, 4 months ago
Selected Answer: B
Only "first_loop" function is being called by info.
upvoted 2 times
...
macxsz
2 years, 5 months ago
Selected Answer: A
The question is confusing. Only the IDs of the clients are collected so D is incorrect
upvoted 4 times
...
ThePokemonNuzlockingMaster
2 years, 6 months ago
Selected Answer: A
It's A. First loop checks if Org is ACME and if so returns the output of the second loop. Second loop checks if network within ACME is BLDG21 and if so returns the output of the third loop. Third loop returns the clients within BLDG21. The only thing that is returned is therefore the clients within BLDG21 and that's the only thing that is printed
upvoted 5 times
...
[Removed]
2 years, 8 months ago
It's A. I did the test using meraki sandbox
upvoted 2 times
...
babaKazoo
2 years, 9 months ago
Selected Answer: C
C. First loop checks for ACME, second loop checks for BLDG21, if both are met third loop runs.
upvoted 1 times
...
designated
2 years, 9 months ago
Selected Answer: D
The correct answer is D..
upvoted 2 times
...
testernr1
2 years, 10 months ago
First and second loops act like filters. First loop filter allows only org ACME, second loop allows only clients from network BLDG21. Third loop is irrelevant. (return inside a for loop 1'st inside a loop 2'st inside a loop 3'st inside a class is why cisco has so many bugs).
upvoted 2 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 ...