Courseiva
Core Application DevelopmenteasyMultiple ChoiceObjective-mapped

SNOW-CAD Core Application Development Practice Question

A developer needs to create a record in the 'task' table when a specific condition is met in a Business Rule. The new record should be linked back to the current record via a reference field. What is the best practice to ensure the new record is created in the same transaction?

⚠ Common exam trap

Test-takers frequently think asynchronous methods like Flow Designer are 'best practice' for decoupling, but the question explicitly requires same-transaction creation, which only synchronous GlideRecord insert provides.

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

Use GlideRecord with newRecord() and set values, then call insert().

Using GlideRecord with newRecord() and insert() within the same Business Rule ensures the new 'task' record is created in the same database transaction as the current record. This guarantees atomicity: if the insert fails, the entire transaction rolls back, preventing orphaned records. The reference field linking back to the current record is set synchronously before the insert, maintaining data integrity.

Answer analysis

Option-by-option breakdown

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

  • Use GlideRecord with newRecord() and set values, then call insert().

    Why this is correct

    This is the standard way to create records in the same transaction within a Business Rule.

  • Use Flow Designer to create the record asynchronously.

    Why it's wrong here

    Flow Designer actions are asynchronous and run in a different transaction, which may cause timing issues.

  • Use the GlideRecord updateMultiple() method.

    Why it's wrong here

    updateMultiple() updates existing records, not inserts new ones.

  • Call a Scripted REST API to insert the record.

    Why it's wrong here

    Using a REST API is inefficient and also runs in a separate transaction.

About these practice questions

This SNOW-CAD question is part of Courseiva's 481-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.