Courseiva
Data Migration →easyMultiple Choice

SF-Data-Arch Data Migration Practice Question

A data architect is migrating 500,000 records into a custom object that has a validation rule requiring the 'Status__c' field to be either 'Active' or 'Inactive'. The legacy data contains some records with a blank Status__c. The architect needs to ensure the migration succeeds without modifying the validation rule. What should be done?

⚠ Common exam trap

The trap here is believing that Bulk API bypasses validation rules or that deactivating rules is an acceptable workaround, when the requirement explicitly states not to modify the validation rule.

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

✓

Transform the legacy data by setting a default value of 'Inactive' for any records with a blank Status__c before loading.

The validation rule requires Status__c to be 'Active' or 'Inactive'. The most straightforward solution is to transform the legacy data by setting a default value of 'Inactive' for blank entries. This ensures all records pass validation without altering the validation rule or adding custom code. Data transformation during migration is a best practice to meet target system requirements and maintain 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.

  • ✗

    Temporarily deactivate the validation rule during the data load, then reactivate it afterward.

    Why it's wrong here

    Deactivating the validation rule is a common workaround, but it is risky because it allows invalid data to be loaded. If the rule is reactivated, existing records with blank Status__c may cause issues in future updates. The requirement is to succeed without modifying the validation rule, so this approach violates that constraint.

  • ✗

    Load the records with blank Status__c using the Data Loader's 'Bulk' mode, which bypasses validation rules.

    Why it's wrong here

    Bulk API does not bypass validation rules. All validation rules are enforced regardless of the API used. This is a common misconception. The load would fail for records with blank Status__c. The correct approach is to transform the data before loading.

  • ✓

    Transform the legacy data by setting a default value of 'Inactive' for any records with a blank Status__c before loading.

    Why this is correct

    This is correct because the validation rule requires a specific value. Transforming the data to populate a valid default ensures that all records pass validation. This approach is simple, does not require changing the validation rule, and maintains data quality. It is a standard data cleansing step in migration projects.

  • ✗

    Create a before insert trigger to set a default value for Status__c when it is blank.

    Why it's wrong here

    A before insert trigger can set default values, but it adds unnecessary complexity and may not be allowed if the requirement is to avoid code changes. It also does not address the root cause: the data needs to be cleansed before loading. The simplest solution is to transform the data during extraction or before load. Triggers also consume governor limits.

About these practice questions

This SF-Data-Arch question is part of Courseiva's 222-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 September 2026 · checked against the official Salesforce exam blueprint

This SF-Data-Arch 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 SF-Data-Arch exam.