350-201 · Question #139
An analyst received multiple alerts on the SIEM console of users that are navigating to malicious URLs. The analyst needs to automate the task of receiving alerts and processing the data for further…
The correct answer is C. console_ip, api_token. This question tests knowledge of the required variables to authenticate and connect to a SIEM API (such as IBM QRadar) using a Python requests script.
Question
An analyst received multiple alerts on the SIEM console of users that are navigating to malicious URLs. The analyst needs to automate the task of receiving alerts and processing the data for further investigations. Three variables are available from the SIEM console to include in an automation script: console_ip, api_token, and reference_set_name. What must be added to this script to receive a successful HTTP response? #!/usr/bin/python import sys import requests
Options
- A{1}, {2}
- B{1}, {3}
- Cconsole_ip, api_token
- Dconsole_ip, reference_set_name
How the community answered
(22 responses)- A5% (1)
- B14% (3)
- C77% (17)
- D5% (1)
Why each option
This question tests knowledge of the required variables to authenticate and connect to a SIEM API (such as IBM QRadar) using a Python requests script.
The placeholders {{1}} and {{2}} are unresolved template variables, not valid Python identifiers, so they would cause a syntax or runtime error rather than a successful HTTP response.
The placeholders {{1}} and {{3}} are similarly unresolved template variables and cannot be used in a functional Python script.
To make a successful HTTP request to a SIEM REST API, the script must know where to send the request and how to authenticate it. The console_ip forms the base URL of the API endpoint, and the api_token is passed as an authentication header (e.g., SEC token) to authorize the request. Without both, the HTTP call will either fail to reach the server or be rejected with a 401 Unauthorized response.
The reference_set_name identifies which data set to query after authentication is established, but it does not provide the server address or credentials needed to form and authorize the initial HTTP connection.
Concept tested: SIEM REST API authentication with console IP and token
Source: https://www.ibm.com/docs/en/qsip/7.5?topic=api-restful-overview
Topics
Community Discussion
No community discussion yet for this question.