Courseiva
Developer FundamentalshardMultiple SelectObjective-mapped

SALESFORCE-PD1 Developer Fundamentals Practice Question

A developer is writing an Apex trigger that needs to execute logic only when records are updated and a specific custom field 'Status__c' changes from 'Draft' to 'Submitted'. Which THREE elements are required to implement this check correctly? (Choose three.)

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

Compare the prior status value with the new status value from Trigger.new.

Checking for field value changes across update contexts requires comparing Trigger.oldMap with Trigger.new and checking the specific context.

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 the Trigger.isInsert context variable to capture the initial draft creation.

    Why it's wrong here

    Insert contexts do not have prior values in oldMap, so transition logic applies to updates.

  • Iterate through Trigger.old instead of Trigger.new.

    Why it's wrong here

    Trigger.new holds the updated field values needed for comparison against oldMap.

  • Compare the prior status value with the new status value from Trigger.new.

    Why this is correct

    Comparing old and new field values confirms whether a transition took place.

  • Verify that the trigger context is either Trigger.isUpdate or check Trigger.isExecuting.

    Why this is correct

    Old values are only available during update contexts.

  • Access the prior value using Trigger.oldMap.get(record.Id).Status__c.

    Why this is correct

    Trigger.oldMap provides access to the pre-update version of the sObject records.

About these practice questions

This SALESFORCE-PD1 question is part of Courseiva's 493-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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Salesforce exam blueprint

This SALESFORCE-PD1 practice question is part of Courseiva's free Salesforce 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 SALESFORCE-PD1 exam.