All jobs / Data engineer / Data Lakes
Data engineer interview question · 1–3 years
Two Parquet datasets hold the same rows. A filter on order_date reads a tenth of one and nearly all of the other. Why?
The strongest answer
Parquet keeps min/max statistics per row group; data written sorted or partitioned by order_date gives each row group a narrow range the reader can skip, while random order makes every row group cover every date
Why it works
Right — predicate pushdown works through row-group statistics; layout (sort or partition by the filter column) is what makes the statistics selective.
What a good answer covers
- Layout makes statistics selective.
- Row groups carry min/max per column.
- Sort or partition by the filter column.
- Check rows read, not just seconds.
Answers that fall short
- Close, but not the strongest: One dataset was partitioned by date into folders and the other was not
Partitioning is one way to get there; sorting within files gives the same skipping via row-group statistics, and both are about layout. - Weak: One dataset is compressed better, so there are fewer bytes to read
Compression changes bytes per row, not which rows must be read; a tenfold difference is skipping, not codecs. - Red flag: The engine is caching the first dataset; I would rerun both a few times and average
Averaging reruns hides a layout problem you could fix; look at rows read and row groups skipped.
Who gets asked this
More Data Lakes questions
- 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?
- Spark, a SQL engine and the BI tool each keep their own idea of which tables exist in the lake, and they…