All jobs / Data engineer / ETL / ELT
Data engineer interview question · 0–1 years
When is MERGE / upsert the right load?
The strongest answer
When the same business key can arrive again — I do not append a second truth for the same order
Why it works
Exactly. Keys that retry need a merge. Always/never is ideology. Hiding deletes is a different (named) policy.
What a good answer covers
- Upsert on retryable keys.
- Append immutable events.
- Do not ideology either verb.
- Name how deletes appear.
Answers that fall short
- Close, but not the strongest: Always; append is outdated
Append is right for immutable events. - Weak: Never; MERGE is slow so I always append
Slow is a reason to tune, not to double facts. - Red flag: When I want to hide deletes
Deletes deserve a tombstone you can explain.
Who gets asked this
More ETL / ELT questions
- What is CDC for, versus a nightly dump?
- You need to reload 90 days. What do you not do?
- An incremental load pulls rows where updated_at is greater than the last run’s maximum. Where does it lose…
- A backfill and the daily job write the same partition. What do you require?
- A new optional column appears in JSON events. How do you evolve the table?
- Log-based CDC (reading the database’s transaction log) versus polling a table for changes — what does each…
- When is an incremental model wrong?
- What does a late-data policy contain?