exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 134 discussion

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


Refer to the exhibit. A Python script must list network clients in the Cisco Meraki API that have used a network with an ID of 2. The number of client entries per returned page is restricted to 1,000 according to the API specification. Network 2 has 2,500 clients. What must be added where the code is missing to print the content of each response?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: D

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
duracell
Highly Voted 2 years, 4 months ago
Correct answer is B.
upvoted 25 times
...
NetGirl
Highly Voted 1 year, 7 months ago
B is correct D is incorrect > startingAfter needs an identifier, not the number of the next item. On another note, none of the answers give you all 2500 items but only 2000 of them.
upvoted 5 times
jithin1234
1 year ago
yes b is correct. <https://api.meraki.com/api/v1/networks/N_1234/bluetoothClients?perPage=5&startingAfter=0>; rel=first,
upvoted 2 times
...
...
examtopicstroilevw
Most Recent 1 month, 3 weeks ago
Answer: B rationale: D will not work. it starts after 1000. great, but the API is currently limiting to 1000 per page, and you need to get 2500 total, so you'll still be missing 500 recrods. C is wrong because you can only get 1000 per page, you can't dictate to the site what it will give you. Nice try, though. Like the creativity. A. i do not recognize this syntax, was expecting response.links['next']['url'], but if that was the case, it would be answer B, which is the correct one. B is the correct one, as long as there is a next, keep pumping out the urls
upvoted 1 times
...
ThePokemonNuzlockingMaster
10 months, 2 weeks ago
B is correct. Nothing wrong with D in terms of syntax, it just would only return the next 1000 results, meaning that the first call would retrieve clients 0-1000 and the second (answer D) would retrieve only clients 1000-2000. Option B will return information for every client
upvoted 3 times
...
designated
1 year, 8 months ago
I think only D is correct since B is not mentioning any value to pagination there while D is doing that.
upvoted 2 times
examtopicstroilevw
1 month, 3 weeks ago
@designated D will not work. it starts after 1000. great, but the API is currently limiting to 1000 per page, and you need to get 2500 total, so you'll still be missing 500 records.
upvoted 1 times
...
...
ferock
2 years ago
Opinion: B is the correct
upvoted 2 times
ferock
1 year, 12 months ago
B and D are correct How does pagination work in the Dashboard API? A paginated endpoint in the API accepts in 3 special query parameters: perPage: The number of entries to be returned in the page (the current request) startingAfter: A token used by our server to indicate the starting "identifier" of the page (i.e. the data we return in this request will start immediately after the entry with this "identifier") endingBefore: A token used by our server to indicate the ending "identifier" of the page (i.e. the data we return in this request will end immediately before the entry with this "identifier") https://developer.cisco.com/meraki/api-v1/#!pagination/how-does-pagination-work-in-the-dashboard-api
upvoted 1 times
examtopicstroilevw
1 month, 3 weeks ago
@ferock D will not work. it starts after 1000. great, but the API is currently limiting to 1000 per page, and you need to get 2500 total, so you'll still be missing 500 records.
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