ExamGecko
Question list
Search
Search

Question 305 - 200-901 discussion

Report
Export

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 dat a. What must be added to the script where the code is missing to complete the requests?

A.

Option A

Answers
A.

Option A

B.

Option B

Answers
B.

Option B

C.

Option C

Answers
C.

Option C

D.

Option D

Answers
D.

Option D

Suggested answer: A

Explanation:


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'])

asked 07/10/2024
Francesco D'Agostino
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first