Explain BigQuery's architecture (columnar storage, slot-based compute) and how it differs from traditional databases

Quick Overview

Asks how BigQuery is built, from columnar storage to slot-based query execution, and how that design differs from a traditional database. It tests understanding of separated storage and compute, distributed query stages, the bytes-scanned cost model, and which workloads fit a warehouse.

Explain BigQuery's architecture (columnar storage, slot-based compute) and how it differs from traditional databases

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

Explain BigQuery's architecture, including columnar storage and slot-based compute, and how it fundamentally differs from traditional databases. ```hint Follow one query Trace a single `GROUP BY` query from the SQL text down to the bytes on disk: where the data lives, what does the work, and what moves between the stages. ``` ```hint Compare the scaling story Take a single-server database such as PostgreSQL. Ask what has to grow when the data grows tenfold, and what has to grow when the query volume does. ``` ### What a Strong Answer Covers - How storage is laid out and where it lives, and why that layout suits analytical scans - What a slot is, how a query is split across slots, and how intermediate data moves between stages - What separating storage from compute changes for scaling, cost and fault tolerance - The workloads BigQuery suits and the ones a traditional transactional database handles better - What the architecture implies for writing fast, cheap queries ### Follow-up Questions - Why does adding `LIMIT 10` to a query not reduce the bytes billed on an unclustered table? - How do partitioning and clustering stand in for indexes, and when would you use each? - When would you choose slot reservations over on-demand pricing? - How would you load a high-frequency stream of row updates into BigQuery, and which limits would you watch?

Overview: Asks how BigQuery is built, from columnar storage to slot-based query execution, and how that design differs from a traditional database. It tests understanding of separated storage and compute, distributed query stages, the bytes-scanned cost model, and which workloads fit a warehouse.

General logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

Explain BigQuery's architecture, including columnar storage and slot-based compute, and how it fundamentally differs from traditional databases.

What a Strong Answer Covers Guidance

  • How storage is laid out and where it lives, and why that layout suits analytical scans
  • What a slot is, how a query is split across slots, and how intermediate data moves between stages
  • What separating storage from compute changes for scaling, cost and fault tolerance
  • The workloads BigQuery suits and the ones a traditional transactional database handles better
  • What the architecture implies for writing fast, cheap queries

Follow-up Questions Guidance

  • Why does adding LIMIT 10 to a query not reduce the bytes billed on an unclustered table?
  • How do partitioning and clustering stand in for indexes, and when would you use each?
  • When would you choose slot reservations over on-demand pricing?
  • How would you load a high-frequency stream of row updates into BigQuery, and which limits would you watch?