exam questions

Exam PCSAE All Questions

View all questions & answers for the PCSAE exam

Exam PCSAE topic 1 question 94 discussion

Actual exam question from Palo Alto Networks's PCSAE
Question #: 94
Topic #: 1
[All PCSAE Questions]

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?

  • A. Using the demisto_error() function
  • B. Using a print statement
  • C. Using the demisto.debug() function
  • D. Using the return_error() function
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
gabriel.alarcon0730
9 months, 1 week ago
Selected Answer: D
D is correct
upvoted 1 times
...
piipo
1 year, 1 month ago
Selected Answer: D
return_error()
upvoted 1 times
...
Iceman1
1 year, 8 months ago
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
upvoted 3 times
...
hassan1978
1 year, 10 months ago
Should be D
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago