Exam XSIAM-Engineer Topic 1 Question 50 Discussion

Actual exam question for Palo Alto Networks's XSIAM-Engineer exam
Question #: 50
Topic #: 1
A complex XSOAR playbook integrating with multiple external security tools (EDR, Firewall, IAM) is failing intermittently with a generic 'NoneType' object has no attribute 'get" error in a Python script task. The script processes data returned from a previous EDR query command. You've confirmed the EDR query command sometimes returns valid data and sometimes returns 'null' or an empty list. The script snippet causing the error is as follows:

Which of the following approaches will most effectively debug and resolve this issue while making the playbook more robust?

Suggested Answer: D Vote an answer

The error 'NoneType' object has no attribute 'get" at Line Y implies 'alert_details' is 'None'. The current 'if alert_details:' check should handle this if becomes *None' at that point. The problem is likely that 'details')' (Line X) itself is returning 'None' due to the EDR query's intermittent 'null' or empty list output. Option D directly addresses the root cause: the inconsistent output from the EDR query. By proactively handling these 'no data' scenarios before the script, the playbook becomes robust. Options A and B address potential 'NoneType' issues but don't solve the underlying data inconsistency. Option C is a reactive error handling, not a proactive solution. Option E attempts to force a default, but the EDR output itself needs robust handling.

by Ulysses at Aug 25, 2026, 10:16 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
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.

0
0
0
10