Courseiva
Application Rules, ACL and NotificationseasyMultiple ChoiceObjective-mapped

SNOW-CSA Application Rules, ACL and Notifications Practice Question

Exhibit

(function evaluateRule(current) {
    return current.state == 2 || current.state == 3;
})(current);

Refer to the exhibit. This condition script is used in a notification. For which states will the notification trigger?

⚠ Common exam trap

Many exam-takers confuse `changesTo()` with a static state check, assuming it behaves like `current.state == 3`, and thus incorrectly think the notification only triggers for state 2 or only for state 3.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Both state 2 and state 3

The condition script uses `current.state.changesTo(3)` which returns true only when the state transitions to 3 from a different state. Since the script also includes `current.state == 2`, the notification triggers for state 2 as well. Therefore, both state 2 and state 3 will cause the notification to fire.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Only state 3

    Why it's wrong here

    It also triggers for state 2.

  • Both state 2 and state 3

    Why this is correct

    The logical OR returns true for either condition.

  • Only state 2

    Why it's wrong here

    It also triggers for state 3.

  • Neither state 2 nor state 3

    Why it's wrong here

    The script returns true for both.

About these practice questions

One of 504 original SNOW-CSA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SNOW-CSA practice question is part of Courseiva's free ServiceNow certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SNOW-CSA exam.