nerdexam
Cisco

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.

Automation

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)
  • A
    5% (1)
  • B
    14% (3)
  • C
    77% (17)
  • D
    5% (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.

A{1}, {2}

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.

B{1}, {3}

The placeholders {{1}} and {{3}} are similarly unresolved template variables and cannot be used in a functional Python script.

Cconsole_ip, api_tokenCorrect

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.

Dconsole_ip, reference_set_name

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

#Python scripting#SIEM API#automation script#API authentication

Community Discussion

No community discussion yet for this question.

Full 350-201 Practice