SNOW-CAD Practice Question: Automating application logic with business rules and scripts
A company has a business rule that runs after a record is inserted on the Change Request table. The rule creates a related task record. Recently, the rule stopped working for some users. The developer discovers that the rule fails silently when the logged-in user lacks the 'change_request.create' role. What is the best way to fix this?
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
✓
Set the rule to run as the system user
Setting the business rule to run as the system user bypasses role-based restrictions. Option A would prevent execution. Option C does not handle the error. Option D is unnecessary.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Set the rule to run as the system user
Why this is correct
Running as the system user grants full rights and avoids role checks.
- ✗
Use gs.hasRole('change_request.create') to check and abort if false
Why it's wrong here
This would cause the rule to not run at all for users without the role, not fixing the issue.
- ✗
Move the script to a script action that runs in the background
Why it's wrong here
This would not address the permission issue.
- ✗
Use current.setAbortAction(false) to ignore the error
Why it's wrong here
setAbortAction does not handle permission errors.
Go deeper
Related to this question
About these practice questions
One of 481 original SNOW-CAD 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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.