Courseiva
Core Application DevelopmenteasyMultiple ChoiceObjective-mapped

SNOW-CAD Core Application Development Practice Question

A ServiceNow developer is working on a new application that requires a custom table to store project information. The table needs to have fields for project name, start date, end date, and project manager (reference to sys_user). The developer creates the table using the Application Creator and adds the fields. After creating the table, the developer wants to automatically generate a unique project ID in the format 'PROJ-00001' for each new record. The developer considers using a Business Rule with a script or a Default Value with a scripted function. Which approach would be the most efficient and maintainable for generating the project ID?

⚠ Common exam trap

Test-takers frequently choose a Business Rule (Before or After Insert) because they think it gives more control, but they overlook that a Default Value script is simpler, more efficient, and avoids the extra update overhead or race condition issues.

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

Create a Default Value for the project ID field using a script that calls a helper function.

A Default Value script runs before the record is saved, allowing the unique ID to be generated without an extra update. Using a helper function promotes reusability and maintainability, and the script can query the current count of records to generate the next sequential ID in the desired format.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create an After Insert Business Rule that updates the project ID after the record is saved.

    Why it's wrong here

    Inefficient: Requires an extra update after the initial save.

  • Create a Before Insert Business Rule that uses a script to query the current count of records and generate the next ID.

    Why it's wrong here

    Plausible but less efficient due to extra query each time.

  • Create a calculated field that uses a scripted formula to generate the ID.

    Why it's wrong here

    Incorrect: Calculated fields are read-only and cannot be set on insert.

  • Create a Default Value for the project ID field using a script that calls a helper function.

    Why this is correct

    Correct: Sets value before insert without extra update, and reusable.

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 →

How Courseiva writes practice questions · Editorial policy

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.