SNOW-CAD Core Application Development Practice Question
Which TWO of the following are true about client-callable script includes? (Choose two.)
⚠ Common exam trap
ServiceNow often tests the misconception that client-callable script includes can be called synchronously or directly, but the GlideAjax API is mandatory for all client-side calls to server-side script includes, and there is no synchronous alternative.
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
✓
They must have a function that returns a value.
Client-callable script includes must have at least one function that returns a value. This is required because the GlideAjax API processes the response asynchronously and expects a return value to be sent back to the client via the callback function. Without a return value, the client-side callback would receive undefined or null, breaking the intended data flow.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
They must have a function that returns a value.
Why this is correct
The client script expects a response from the script include.
- ✗
They can only be used in scoped applications.
Why it's wrong here
They can be used in global as well.
- ✓
They must be accessed using the GlideAjax API.
Why this is correct
GlideAjax is the standard way to call client-callable script includes from client scripts.
- ✗
They cannot be used in UI policies.
Why it's wrong here
They can be used in UI policies via GlideAjax.
- ✗
They can be called directly without GlideAjax if marked as synchronous.
Why it's wrong here
There is no synchronous call; GlideAjax is async.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every SNOW-CAD question from scratch — 481 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.