Exam PCSAE All QuestionsBrowse all questions from this exam
Question 74

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?

    Correct Answer: D

    To return an error entry back into XSOAR if a particular command errors out, the correct approach is to use the return_error() function. This function is specifically designed to handle error messages and return them as error entries in the Cortex XSOAR system. Using print statements or the demisto.debug() function would not achieve this, as they are not intended for generating error entries. The demisto_error() function does not exist. Therefore, the correct answer is the return_error() function.

Discussion
Iceman1Option: D

D "To properly handle exceptions, wrap the commands with try/except in the main. The return_error() function receives error message and returns error entry back into Cortex XSOAR" https://xsoar.pan.dev/docs/integrations/code-conventions

hassan1978Option: D

Should be D

piipoOption: D

return_error()