Bird
0
0

Identify the error in this SOAR playbook snippet:

medium📝 Analysis Q6 of 15
Cybersecurity - Advanced Threat Protection
Identify the error in this SOAR playbook snippet:
if alert.status = 'active' then quarantine_device()
ANo error present
BUsing single '=' instead of '==' for comparison
CIncorrect function name
DMissing 'else' clause
Step-by-Step Solution
Solution:
  1. Step 1: Review conditional syntax

    Comparison requires '==' not single '=' which is assignment.
  2. Step 2: Confirm syntax error

    Using '=' causes syntax error in condition.
  3. Final Answer:

    Using single '=' instead of '==' for comparison -> Option B
  4. Quick Check:

    Comparison needs '==' not '=' [OK]
Quick Trick: Use '==' for comparison, '=' is assignment [OK]
Common Mistakes:
MISTAKES
  • Confusing '=' with '=='
  • Thinking else is mandatory
  • Assuming function name error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cybersecurity Quizzes