All jobs / Data engineer / Data Warehousing
Data engineer interview question · 0–1 years
A cloud warehouse such as Snowflake or BigQuery does not rely on B-tree indexes on fact tables the way an OLTP database does. How do queries over a billion rows still come back quickly?
The strongest answer
Columnar storage reads only the columns asked for, and blocks carry min/max metadata so a filter skips most of them; partitioning and clustering by the filter columns make that skipping effective
Why it works
Exactly — column pruning plus block-level metadata pruning is the engine; partitioning and clustering exist to make the pruning bite.
What a good answer covers
- Prune columns and blocks, not index rows.
- Columnar: read only needed columns.
- Block min/max metadata skips data.
- Partition and cluster for the filters.
Answers that fall short
- Close, but not the strongest: They are massively parallel — the query is split across many machines, so even a full scan is fast
Parallelism helps, but a full scan of a billion rows is still slow and expensive; pruning is what avoids the scan. - Weak: They index everything automatically behind the scenes, so you never have to think about it
Warehouses keep block statistics, not row-level indexes; whether a filter can use them depends on how you laid the data out. - Red flag: They do not; you should copy the hot data into a normal relational database to query it properly
Moving analytics into an OLTP engine reverses the reason the warehouse exists.
Who gets asked this
More Data Warehousing questions
- A teammate points the app’s primary key lookups at the warehouse. What do you say?
- Snowflake, BigQuery and Databricks all separate storage from compute. What does that actually buy a data team?
- A job’s bill doubled. bytes_scanned doubled. What do you inspect first?
- In an MPP warehouse where you choose how a table is distributed across nodes (Redshift, Synapse), how do you…
- When do you cluster / Z-order instead of adding another partition column?
- What most likely happened in the demo, and how do you benchmark honestly?
- Warehouse spend is everyone’s and no one’s. What do you install?
- At 09:00 hundreds of small BI queries queue for minutes. The nightly transform, one heavy query, also takes…