All jobs / Data engineer / ETL / ELT
Data engineer interview question · 0–1 years
A load of a million rows has forty rows whose date does not parse. What do you do with them?
The strongest answer
Route the forty to a quarantine table with the reason, load the rest and alert — unless the contract says any bad row fails the load. I never silently drop or coerce them
Why it works
Exactly — bad rows are data about the source; keep them visible, keep the good rows moving, and make the choice explicit in the contract.
What a good answer covers
- Quarantine, do not drop.
- Keep bad rows with the reason.
- Alert on the quarantine count.
- Fail-or-quarantine is a contract decision.
Answers that fall short
- Close, but not the strongest: Fail the whole load so someone looks at it before anything goes downstream
Defensible for a financial load, but a policy of “forty bad rows stop everyone” fails the job most days; quarantine is usually the grown-up default. - Weak: Set the bad dates to NULL so the load goes through; forty out of a million will not change any number
Silently coercing to NULL is how a parsing bug becomes a wrong number six months later; the rows must be visible somewhere. - Red flag: Delete the forty rows in the transformation step; nobody will notice and the job stays green
Deleting rows to keep a job green is a data-integrity failure an interviewer will not forgive.
Who gets asked this
More ETL / ELT questions
- When is MERGE / upsert the right load?
- 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?