Palo Alto Networks Certified Security Automation Engineer (PCSAE) — Question 87
When creating an automation in XSOAR, what is the best way to create a log message?
Answer options
- A. Using a debug statement
- B. Using the demisto.debug() function
- C. Using a print statement
- D. Using the demisto.results() function
Correct answer: B
Explanation
The correct answer is B, as the demisto.debug() function is specifically designed for logging debug messages in XSOAR automations. Options A and C are less suitable because while debug statements and print statements can log information, they do not integrate with XSOAR's logging system effectively. Option D is incorrect as demisto.results() is used for sending results back to the user, not for logging purposes.