All jobs / Data engineer / Data Lakes
Data engineer interview question · 0–1 years
A streaming job wrote 200,000 tiny files for one day. What is the smell?
The strongest answer
Small-file tax — compact, or write larger rolls; I do not celebrate file count as throughput
Why it works
Exactly. Listing and opening files is the bill. File count is not a KPI.
What a good answer covers
- Compact tiny files.
- Write larger rolls.
- File count ≠ throughput.
- Listing is part of the cost.
Answers that fall short
- Close, but not the strongest: Proof the cluster is healthy
Healthy is fewer, fatter files for this access. - Weak: A reason to disable the table stats
Stats still matter. - Red flag: A reason to SELECT * so files get “used”
SELECT * pays the tax harder.
Who gets asked this
More Data Lakes questions
- 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?
- Bronze / silver / gold is on the slide. What makes it real?
- BI wants to query Parquet files in the lake. External table over the files, or load them into the warehouse?
- What must stay true so you can rebuild gold from 90 days ago?
- Why bother with a table format (Iceberg/Delta/Hudi) instead of a pile of Parquet?
- How do you implement erasure in a lake that time-travels?
- Streaming writes leave a trail of tiny files. What do you schedule?