exam questions

Exam PCSAE All Questions

View all questions & answers for the PCSAE exam

Exam PCSAE topic 1 question 125 discussion

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

When creating an automation in XSOAR, what is the best way to create a log message?

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

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
Jai_ke
8 months, 1 week ago
Selected Answer: B
demisto.results() function: This is used to return results from the script, not for logging debug messages. The demisto.debug() function is specifically designed for logging debug messages in Cortex XSOAR automations.
upvoted 2 times
...
heromanxxx
12 months ago
it should be B https://xsoar.pan.dev/docs/integrations/code-conventions#main-function
upvoted 2 times
...
piipo
1 year, 1 month ago
Selected Answer: D
demisto.results()
upvoted 1 times
...
Iceman1
1 year, 8 months ago
D Printing to the War Room# Let's face it, a mountain of print statements are often useful in figuring out what the issue is. To do this, simply add the following: error_msg = "Here's your completely broken code" demisto.results(error_msg) This will print the statement in the War Room, where you will be able to see it. Just remember to remove these statements so you can maintain the illusion of your bug never happening. https://xsoar.pan.dev/docs/integrations/debugging
upvoted 1 times
...
Sarppp
1 year, 8 months ago
Answer should be D, you may see an error message with demisto.results() function. For instance: you may create a variable, myautomationmessage="This is an error msg", then I can return it via results command, demisto.results(myautomationmessage)
upvoted 1 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