exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 279 discussion

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



Refer to the exhibit. An engineer sends the request to collect data over Cisco AMP for Endpoints API. The Engineer must list guide and hostname data for all computers, but the first request returns only 500 items out of 2,000. Then, the engineer adds the loop to collect all the data. What must be added to the script where the code is missing to complete the requests?

  • A.
  • B.
  • C.
  • D.
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
mellohello
Highly Voted 1 year, 4 months ago
Selected Answer: A
Must be next_url = response_json['metadata']['links']['next']
upvoted 7 times
...
FJK92
Highly Voted 1 year, 4 months ago
A is the correct answer https://github.com/CiscoSecurity/amp-03-pagination/blob/master/01_paginate.py while 'next' in response_json['metadata']['links']: next_url = response_json['metadata']['links']['next'] response = session.get(next_url) response_json = response.json() for computer in response_json['data']: print(computer['connector_guid'], computer['hostname'])
upvoted 6 times
...
Nicetomeetyou
Most Recent 10 months ago
Selected Answer: A
100% A a = { "layer1": { "layer2": { "layer3": "value" } } } while "layer3" in a["layer1"]["layer2"]: print(a["layer1"]["layer2"]["layer3"])
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