DEA-C02 Data Transformation Practice Question
A Data Engineer needs to ensure that data in a target table is updated with changes from a source table while handling potential duplicate records. Which command should be used?
⚠ Common exam trap
Candidates often suggest using INSERT or UPDATE separately, failing to realize that MERGE is the only atomic way to handle both inserts and updates while avoiding duplicate records.
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
✓
MERGE INTO target USING source ON ... WHEN MATCHED THEN UPDATE...
The MERGE command is specifically designed for complex DML operations that combine insert, update, and delete actions in a single pass. By joining the source and target on a primary key, it ensures that new records are inserted while existing records are updated, preventing duplicates and ensuring data consistency. This is the standard method for slowly changing dimensions and incremental data synchronization in modern data warehousing pipelines.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
INSERT INTO ... SELECT DISTINCT
Why it's wrong here
The INSERT statement cannot handle updates to existing records. It would only result in appending new rows, leading to duplicate entries if the key already exists in the target. This approach is inefficient for synchronization scenarios requiring state reconciliation between source and target datasets over time.
- ✓
MERGE INTO target USING source ON ... WHEN MATCHED THEN UPDATE...
Why this is correct
The MERGE command allows for conditional logic based on match status, which is ideal for deduplication and incremental updates. By defining specific matching criteria, it ensures that target table data remains accurate without creating duplicate rows, which is a common requirement in ETL/ELT pipelines.
- ✗
UPDATE target SET ... FROM source
Why it's wrong here
While an UPDATE statement can modify records, it fails to handle new records that do not yet exist in the target table. An UPDATE-only strategy requires a separate INSERT statement to handle new data, which is less efficient than using a single atomic MERGE operation.
- ✗
CREATE OR REPLACE TABLE target AS SELECT ...
Why it's wrong here
Replacing a table is destructive and ignores the existing data. It is not an incremental transformation strategy, as it requires reloading the entire dataset every time. This approach consumes excessive compute resources and causes downtime, making it unsuitable for production environments where data availability is critical.
About these practice questions
One of 229 original DEA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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 Snowflake exam blueprint
This DEA-C02 practice question is part of Courseiva's free Snowflake 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 DEA-C02 exam.