CAD practice question 17 of 35

Which one of the following is NOT an example of when an application might use a Scheduled Script Execution (Scheduled Job)?

Full set: 264 questions
Answer options
A: The application needs to send weekly email reminders to requestors for all records on a table
B: The application needs to run a clean up script on the last day of every month
C: The application needs to query the database every day to look for unassigned records
D: The application needs to run a client-side script at the same time every day Correct answer
Correct Answer:
D. The application needs to run a client-side script at the same time every day
Explanation

Scheduled Script Executions run server-side JavaScript on a time-based schedule. They are intended for background activities such as data maintenance, record queries, report generation, and notification e-mails that execute on the server. Running a client-side script (which executes in the user’s browser) is outside their purpose and technically impossible from a Scheduled Script Execution. Therefore option D, which describes a client-side script scheduled daily, is the only scenario that is NOT appropriate for a Scheduled Script Execution.

Why Incorrect

A. Sending weekly reminder e-mails is a classic server task; handled perfectly by a Scheduled Script Execution.
B. End-of-month cleanup is a background server operation ideally triggered by a Scheduled Script Execution.
C. Daily database queries for unassigned records are server-side background work suited to a Scheduled Script Execution.

References

1. ServiceNow Documentation: “Scheduled script executions (Scheduled jobs) run server-side JavaScript at the time and frequency you specify.” ServiceNow Product Docs, Platform → Automating with Scripts → Scheduled script execution (Tokyo), paragraph 1.

2. ServiceNow Developer Site: “Typical uses include: sending periodic notifications, performing data cleanup, generating reports.” Developer Site, Scheduled Script Executions, section “Use cases”, bullets 1-3.

3. ServiceNow System Administration training manual, Module “Server-side Scripting”, sub-section “Scheduled Script Executions”, p. 6: “Runs only on the server; cannot execute client scripts.”

Scroll to Top