nerdexam
Splunk

SPLK-2003 · Question #9

Is it possible to import external Python libraries such as the time module?

The correct answer is C. Yes, in the global block. In Splunk SOAR, it is possible to import external Python libraries, such as the time module, within the scope of a playbook's global code block. The global block allows users to define custom Python code, including imports of standard Python libraries that are included in the…

Developing Playbooks

Question

Is it possible to import external Python libraries such as the time module?

Options

  • ANo.
  • BNo, but this can be changed by setting the proper permissions.
  • CYes, in the global block.
  • DYes. from a drop down menu.

How the community answered

(56 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    88% (49)
  • D
    7% (4)

Explanation

In Splunk SOAR, it is possible to import external Python libraries, such as the time module, within the scope of a playbook's global code block. The global block allows users to define custom Python code, including imports of standard Python libraries that are included in the Phantom platform's Python environment. This capability enables the extension of playbooks' functionality with additional Python logic, making playbooks more powerful and versatile in their operations.

Topics

#Python libraries#global block#playbook scripting#import

Community Discussion

No community discussion yet for this question.

Full SPLK-2003 Practice