Question 263 of 500
Creating and customizing tables and datamediumMultiple SelectObjective-mapped

Quick Answer

The answer is to use a default value on the state field, a business rule with an abort action on delete, and a business rule with a warning message on state change. The default value declaratively sets 'Open' on new records without scripting, while the delete restriction requires a business rule that aborts the operation when state is 'Closed'. The warning on changing from 'In Progress' to 'Closed' is implemented via a business rule that returns a warning message using the `gs.addErrorMessage()` or `current.setAbortAction(true)` with a user prompt. On the ServiceNow CAD exam, this tests your ability to distinguish between declarative field configuration and scripted business rules—a common trap is trying to use a business rule for the default value when a simple field default suffices. Remember the memory tip: "Default for creation, abort for deletion, warn for transition."

SNOW-CAD Creating and customizing tables and data Practice Question

This SNOW-CAD practice question tests your understanding of creating and customizing tables and data. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A developer is creating a custom table 'u_project_risk' to track risks associated with projects. The table must: (1) Automatically set the 'state' field to 'Open' when a new record is created. (2) Prevent deletion of records if the state is 'Closed'. (3) Display a warning message when a user changes the state from 'In Progress' to 'Closed'. Which THREE approaches should the developer use?

Question 1mediummulti select
Full question →

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 a default value for the 'state' field to 'Open'

Option A is correct because setting a default value on the 'state' field to 'Open' ensures that whenever a new record is created in the 'u_project_risk' table, the field automatically populates with 'Open' without requiring any script or business rule. This is a declarative, low-code approach that leverages the platform's built-in default value functionality at the field level, guaranteeing the requirement is met even if the record is created via web services or import sets.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 a default value for the 'state' field to 'Open'

    Why this is correct

    Default value sets initial state.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Create a before business rule to check state on update

    Why it's wrong here

    A before business rule runs before save, but a before delete rule is needed for deletion.

  • Create a client script that shows a warning on state change

    Why this is correct

    An onChange client script can show a message.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Create a business rule that aborts the delete operation on condition state='Closed'

    Why this is correct

    A before delete business rule can abort.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Define a reference qualifier on the 'project' field

    Why it's wrong here

    Reference qualifiers filter reference fields.

Common exam traps

Common exam trap: answer the scenario, not the keyword

ServiceNow often tests the distinction between server-side and client-side logic; the trap here is that candidates might think a 'before' business rule on update (Option B) is needed for the warning, but warnings must be client-side (Option C), and deletion prevention must be server-side (Option D).

Detailed technical explanation

How to think about this question

Default values in ServiceNow are stored in the 'sys_dictionary' table and are applied at the database layer when a new record is inserted, meaning they work even if the record is created via REST API, import sets, or background scripts. The 'before' business rule runs server-side before the record is saved, but for deletion prevention, a business rule with the 'delete' trigger and an 'abort action' is the correct approach, as it can check the current state and cancel the operation. Client scripts run in the browser and can use 'g_form.addErrorMessage()' to display warnings, but they cannot enforce server-side deletion prevention.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the SNOW-CAD exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SNOW-CAD practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SNOW-CAD practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SNOW-CAD question test?

Creating and customizing tables and data — This question tests Creating and customizing tables and data — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Set a default value for the 'state' field to 'Open' — Option A is correct because setting a default value on the 'state' field to 'Open' ensures that whenever a new record is created in the 'u_project_risk' table, the field automatically populates with 'Open' without requiring any script or business rule. This is a declarative, low-code approach that leverages the platform's built-in default value functionality at the field level, guaranteeing the requirement is met even if the record is created via web services or import sets.

What should I do if I get this SNOW-CAD question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.