All jobs / Data engineer / Data Lakes
Data engineer interview question · 3–5 years
How do you implement erasure in a lake that time-travels?
The strongest answer
A delete that reaches current and the retained history you still expose, plus backups per policy — I do not say “it’s immutable so we cannot”
Why it works
Exactly. Policy reaches copies you can still query. Immutable-as-excuse and useful-forever history of a person are how you fail a review.
What a good answer covers
- Delete current and retained history you expose.
- Follow backup policy.
- Immutable ≠ we cannot.
- Keep the audit of the delete.
Answers that fall short
- Close, but not the strongest: A note that lakes are immutable, full stop
Formats that rewrite exist for this. - Weak: A delete of current only, and keep history forever because it is useful
Useful is not a lawful basis. - Red flag: A vacuum that also drops the audit of who deleted
Losing the audit is the other incident.
Who gets asked this
More Data Lakes questions
- Streaming writes leave a trail of tiny files. What do you schedule?
- Spark, a SQL engine and the BI tool each keep their own idea of which tables exist in the lake, and they…
- After a merger you have two lakes. How do you close it?
- Parquet or Avro — when do you use each in a pipeline?
- What is different about writing a table to S3 or GCS compared with writing to a local filesystem?
- A streaming job wrote 200,000 tiny files for one day. What is the smell?
- Two Parquet datasets hold the same rows. A filter on order_date reads a tenth of one and nearly all of the…
- Time travel is on and storage doubled. What do you set?