350-701 · Question #817
Refer to the exhibit. Which task is the Python script performing by using the Cisco Umbrella API?
The correct answer is A. retrieving a list of the latest security events. The Python script shown in the exhibit is using the Cisco Umbrella Reporting API to retrieve information about recent security activity for a specific organization. The script does: 1. Authentication: It combines an API key and secret to create a Basic Authorization header…
Question
Refer to the exhibit. Which task is the Python script performing by using the Cisco Umbrella API?
Exhibit
Options
- Aretrieving a list of the latest security events
- Bsending a list of the latest security activity
- Ccreating a list of the latest security events
- Dcopying a list of the latest security activity
How the community answered
(25 responses)- A68% (17)
- B4% (1)
- C20% (5)
- D8% (2)
Explanation
The Python script shown in the exhibit is using the Cisco Umbrella Reporting API to retrieve information about recent security activity for a specific organization. The script does: 1. Authentication: It combines an API key and secret to create a Basic Authorization header after encoding it in base64. 2. Endpoint Setup: The script specifies a reporting URL that includes the organization ID and points to the endpoint, which is commonly used to fetch recent security /security-activity events or activity. 3. HTTP GET Request: It sends a GET request to this endpoint, which is typical when retrieving information rather than creating, copying, or sending data. 4. Response Handling: If the response status is 200 (success), it prints the retrieved output, which includes the latest security activity.
Topics
Community Discussion
No community discussion yet for this question.
