Palo Alto Networks Certified Security Automation Engineer (PCSAE) — Question 70

The XSOAR administrator is writing an automation and would like to return an error entry back into XSOAR if a particular command errors out. How can this be achieved?

Answer options

Correct answer: C

Explanation

The correct answer is C, as the demisto.debug() function is specifically designed to log debug information, which can include error messages. Option A, while it sounds relevant, is not the correct function for this purpose. Option B will not return an error to XSOAR, and option D is misleading since it does not fit the context of returning debug information.