SNOW-CAD Core Application Development Practice Question
This SNOW-CAD practice question tests your understanding of core application development. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Refer to the exhibit.
Business Rule script:
(function executeRule(current, previous /*null when async*/) {
var gr = new GlideRecord('incident');
gr.addQuery('category', 'network');
gr.query();
while (gr.next()) {
gr.setValue('priority', 2);
gr.update();
}
})(current, previous);
The Business Rule above runs on the 'incident' table. It is set to run 'before' update. What is the most likely issue with this script?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "most likely"
Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Refer to the exhibit.
Business Rule script:
(function executeRule(current, previous /*null when async*/) {
var gr = new GlideRecord('incident');
gr.addQuery('category', 'network');
gr.query();
while (gr.next()) {
gr.setValue('priority', 2);
gr.update();
}
})(current, previous);
A
The script should use 'current' instead of 'gr' to update records.
Why wrong: The script is intended to update multiple records, not just the current one.
B
The script has a syntax error: missing semicolon after the while loop.
Why wrong: The while loop does not require a semicolon after the closing brace.
C
The script will cause a recursive loop because it updates incident records within a Business Rule that runs on the same table.
Updating incident records inside a before update Business Rule on incident can trigger the rule again.
D
The script does not commit the changes because it uses 'gr.update()' instead of 'current.update()'.
Why wrong: gr.update() commits changes to the database.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The script will cause a recursive loop because it updates incident records within a Business Rule that runs on the same table.
Option C is correct because updating the same table (incident) within a 'before update' Business Rule that runs on that table creates a recursive loop. Each time the script calls gr.update() on an incident record, it triggers the same Business Rule again, leading to infinite recursion until the system enforces a governor limit or stack overflow. ServiceNow detects and prevents such loops by throwing an error, but the design is fundamentally flawed.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
The script should use 'current' instead of 'gr' to update records.
Why it's wrong here
The script is intended to update multiple records, not just the current one.
✗
The script has a syntax error: missing semicolon after the while loop.
Why it's wrong here
The while loop does not require a semicolon after the closing brace.
✓
The script will cause a recursive loop because it updates incident records within a Business Rule that runs on the same table.
Why this is correct
Updating incident records inside a before update Business Rule on incident can trigger the rule again.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
✗
The script does not commit the changes because it uses 'gr.update()' instead of 'current.update()'.
Why it's wrong here
gr.update() commits changes to the database.
Common exam traps
Common exam trap: answer the scenario, not the keyword
ServiceNow often tests the concept of recursive loops in Business Rules, and the trap here is that candidates focus on syntax or object usage (like 'current' vs 'gr') instead of recognizing that any update to the same table within a before/after update rule will cause recursion unless explicitly prevented.
Detailed technical explanation
How to think about this question
ServiceNow Business Rules have a 'Run script' condition that can be set to prevent recursion (e.g., checking if the record is already being updated), but by default, any update to the same table from within the rule will re-trigger the rule. The platform uses a stack depth limit (typically 10) to abort recursive calls, but this still results in an error and aborted transaction. In real-world scenarios, developers often use a 'condition' script like 'current.operation() != 'update'' or set a flag on the record to break the loop.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the SNOW-CAD exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Core Application Development — This question tests Core Application Development — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The script will cause a recursive loop because it updates incident records within a Business Rule that runs on the same table. — Option C is correct because updating the same table (incident) within a 'before update' Business Rule that runs on that table creates a recursive loop. Each time the script calls gr.update() on an incident record, it triggers the same Business Rule again, leading to infinite recursion until the system enforces a governor limit or stack overflow. ServiceNow detects and prevents such loops by throwing an error, but the design is fundamentally flawed.
What should I do if I get this SNOW-CAD question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This SNOW-CAD 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-CAD exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.