Courseiva
Use Case Planning And DevelopmentmediumMultiple ChoiceObjective-mapped

XSOAR-Engineer Use Case Planning And Development Practice Question

An XSOAR developer is planning a playbook task that runs a custom Python script. The script needs to accept a dynamic threshold value configured by the administrator without hardcoding it into the script source code. How should the developer design this?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Define script arguments in the script settings and access them via demisto.args() in Python.

Script arguments defined in the script metadata allow administrators to pass dynamic values from the playbook task configuration into the Python script.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Define script arguments in the script settings and access them via demisto.args() in Python.

    Why this is correct

    demisto.args() retrieves parameters passed from the playbook task configuration, enabling reusable and configurable scripts.

  • Hardcode the threshold value directly as a global variable in every script file.

    Why it's wrong here

    Hardcoding values prevents flexibility and requires code changes for any threshold adjustment.

  • Write the value to the server's /etc/passwd configuration file.

    Why it's wrong here

    Modifying system password files is insecure and unrelated to XSOAR script parameters.

  • Store the threshold inside a browser cookie on the analyst's machine.

    Why it's wrong here

    Browser cookies are inaccessible to backend Python script execution containers.

About these practice questions

One of 219 original XSOAR-Engineer practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Palo Alto Networks exam blueprint

This XSOAR-Engineer practice question is part of Courseiva's free Palo Alto Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XSOAR-Engineer exam.