CSA Intro to Development & Implementation 2 — Questions and Answers
Question 1: Which ServiceNow development environment is used to write and test server-side JavaScript?
- Script Editor
- Background Scripts (Correct answer)
- Workflow Editor
- Studio IDE
Correct answer: Background Scripts
Background Scripts allow administrators to run server-side JavaScript directly in the browser for testing purposes.
Question 2: What is the primary purpose of Update Sets in ServiceNow?
- Schedule automated jobs
- Capture and migrate configuration changes between instances (Correct answer)
- Store user preference data
- Define access control rules
Correct answer: Capture and migrate configuration changes between instances
Update Sets capture configuration changes made on one instance so they can be moved to another instance, such as from dev to production.
Question 3: In ServiceNow, what does a Business Rule run on?
- Client browser only
- The ServiceNow server against database operations (Correct answer)
- Scheduled intervals only
- Email notification events only
Correct answer: The ServiceNow server against database operations
Business Rules are server-side scripts that execute automatically when a record is displayed, inserted, updated, or deleted in a database table.
Question 4: Which of the following is NOT a valid Business Rule timing option?
- Before
- After
- Async
- Scheduled (Correct answer)
Correct answer: Scheduled
Valid Business Rule timings are Before, After, Async, and Display; 'Scheduled' is not a timing option for Business Rules.
Question 5: What is the role of a Client Script in ServiceNow?
- Runs on the server to validate database entries
- Runs in the user's browser to enhance form behavior (Correct answer)
- Sends automated email notifications
- Manages scheduled background tasks
Correct answer: Runs in the user's browser to enhance form behavior
Client Scripts execute in the user's web browser and are used to manipulate form fields, validate input, and improve the user experience.
Question 6: Which type of Client Script fires when a specific field value changes on a form?
- onLoad
- onSubmit
- onChange (Correct answer)
- onCellEdit
Correct answer: onChange
The onChange Client Script type fires automatically when the value of a designated field is modified by the user.
Question 7: What is a Scripted REST API used for in ServiceNow?
- Creating custom inbound integrations over HTTP (Correct answer)
- Sending outbound SOAP messages
- Automating scheduled imports
- Managing update set merges
Correct answer: Creating custom inbound integrations over HTTP
Scripted REST APIs allow developers to create custom API endpoints that external systems can call to interact with ServiceNow data.
Which ServiceNow development environment is used to write and test server-side JavaScript?