Interview's MateData Engineer
Interview's Mate

Data Engineer

SQL · Spark · Lakehouse · Streaming

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Data Engineer topics
Lesson 52/ 160
03. Data Warehousing & Data Modeling

Cloud Data Warehouses Overview (Snowflake, BigQuery, Redshift, Databricks SQL)

Compare leading cloud warehouses on separation of storage/compute, pricing, and SQL dialect.

BeginnerSnowflake · BigQuery · Redshift3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Bytes, joins, skew, and concurrency. Next, storage and compute separation controls. Finally, identity, SLO, cost controls, and exit path.

Think of it like…

These warehouses are freight hubs with different billing meters: some charge by rented loading crews, some by cargo passed or reserved belts, and all require pallets packed for their machinery.

Where you’ve seen it

Snowflake sizes a virtual warehouse to a workload, BigQuery bills bytes or reserved slot capacity, Redshift distributes/sorts rows, and Databricks SQL charges DBU-backed serverless/provisioned warehouses.

Words you’ll hear

Snowflake
A service with separate storage and virtual compute warehouses, micro-partitions, and account-level sharing features.
BigQuery
Google's Dremel-derived serverless warehouse with scan or capacity pricing, declarative partitioning, and clustering.
Redshift
AWS's columnar warehouse where distribution, sort keys, RA3 storage separation, and concurrency affect performance.
Operational boundary
A vendor comparison based only on query price omits table scan bytes, idle warehouse hours, slot reservations, maintenance, data locality, and ecosystem migration costs. Benchmark representative skew, concurrency, partitioning, and stored-data patterns using the same warehouse edition/region, then evaluate total cost, identity, operations, open-format and vendor-exit constraints.

Visual diagram

Loading interactive diagram

Theory & deep dive

Snowflake: the working mechanism

Snowflake, BigQuery, Redshift, and Databricks SQL all provide managed analytical SQL but separate capacity, scaling, metadata, pricing, concurrency, and dialect controls differently.

Bytes, joins, skew, and concurrency. Storage and compute separation controls, then same data, edition, region, and cold/warm cache; this exposes the state governed by Redshift.

Cloud Data Warehouses Overview in one concrete design

Snowflake sizes a virtual warehouse to a workload, BigQuery bills bytes or reserved slot capacity, Redshift distributes/sorts rows, and Databricks SQL charges DBU-backed serverless/provisioned warehouses.

Key takeaway: Snowflake, BigQuery, Redshift, and Databricks SQL all provide managed analytical SQL but separate capacity, scaling, metadata, pricing, concurrency, and dialect controls differently

Cloud Data Warehouses Overview: failure mode and production response

A vendor comparison based only on query price omits table scan bytes, idle warehouse hours, slot reservations, maintenance, data locality, and ecosystem migration costs.

Benchmark representative skew, concurrency, partitioning, and stored-data patterns using the same warehouse edition/region, then evaluate total cost, identity, operations, open-format and vendor-exit constraints. Track Cold/warm query as "measure both cache states explicitly", and make Concurrency visible to the dataset owner.

Key takeaway: Benchmark representative skew, concurrency, partitioning, and stored-data patterns using the same warehouse edition/region, then evaluate total cost, identity, operations, open-format and vendor-exit constraints.

How it works, step by step

Step 1 of 4
Snowflake

1. Model workload

Bytes, joins, skew, and concurrency. Snowflake, BigQuery, Redshift, and Databricks SQL all provide managed analytical SQL but separate capacity, scaling, metadata, pricing, concurrency, and dialect controls differently.

bytes, joins, skew, and concurrency
Key numbers at this step
Cold/warm query
measure both cache states explicitly
BigQuery
Google's Dremel-derived serverless warehouse with scan or capacity pricing, declarative partitioning, and clustering.

When to use it & trade-offs

What it is

Snowflake, BigQuery, Redshift, and Databricks SQL all provide managed analytical SQL but separate capacity, scaling, metadata, pricing, concurrency, and dialect controls differently. Snowflake sizes a virtual warehouse to a workload, BigQuery bills bytes or reserved slot capacity, Redshift distributes/sorts rows, and Databricks SQL charges DBU-backed serverless/provisioned warehouses.

Why it matters: A vendor comparison based only on query price omits table scan bytes, idle warehouse hours, slot reservations, maintenance, data locality, and ecosystem migration costs. Benchmark representative skew, concurrency, partitioning, and stored-data patterns using the same warehouse edition/region, then evaluate total cost, identity, operations, open-format and vendor-exit constraints.

When to reach for it

  • Compare leading cloud warehouses on separation of storage/compute, pricing, and SQL dialect.
  • Choose Snowflake because it provides this capability: A service with separate storage and virtual compute warehouses, micro-partitions, and account-level sharing features.
  • Keep evidence for Cold/warm query at "measure both cache states explicitly" so the last production stage-Choose operations - identity, SLO, cost controls, and exit path-remains testable.

When to avoid or be careful

  • A vendor comparison based only on query price omits table scan bytes, idle warehouse hours, slot reservations, maintenance, data locality, and ecosystem migration costs.
  • Do not conflate BigQuery with Snowflake. The second concept contributes different behavior: Google's Dremel-derived serverless warehouse with scan or capacity pricing, declarative partitioning, and clustering.
  • Release only after this guardrail is in place: Benchmark representative skew, concurrency, partitioning, and stored-data patterns using the same warehouse edition/region, then evaluate total cost, identity, operations, open-format and vendor-exit constraints.

Snowflake / BigQuery / Redshift - roles, limits, and operating cost

Snowflake
Best for: A service with separate storage and virtual compute warehouses, micro-partitions, and account-level sharing features.

Strengths: A service with separate storage and virtual compute warehouses, micro-partitions, and account-level sharing features. Snowflake, BigQuery, Redshift, and Databricks SQL all provide managed analytical SQL but separate capacity, scaling, metadata, pricing, concurrency, and dialect controls differently.

Watch out: A vendor comparison based only on query price omits table scan bytes, idle warehouse hours, slot reservations, maintenance, data locality, and ecosystem migration costs.

BigQuery
Best for: Google's Dremel-derived serverless warehouse with scan or capacity pricing, declarative partitioning, and clustering.

Strengths: Google's Dremel-derived serverless warehouse with scan or capacity pricing, declarative partitioning, and clustering. In this workflow it supports: Pilot fairly - same data, edition, region, and cold/warm cache.

Watch out: The operating cost is real: queries sustained within interactive p95 SLO.

Redshift
Best for: AWS's columnar warehouse where distribution, sort keys, RA3 storage separation, and concurrency affect performance.

Strengths: AWS's columnar warehouse where distribution, sort keys, RA3 storage separation, and concurrency affect performance. Its output can be checked with TCO unit.

Watch out: Operating guardrail: Benchmark representative skew, concurrency, partitioning, and stored-data patterns using the same warehouse edition/region, then evaluate total cost, identity, operations, open-format and vendor-exit constraints.

Interview signals & numbers to know

When this topic comes up

  • “Where is the failure boundary for Snowflake, and how would Cold/warm query reveal it?”
  • “Why is BigQuery distinct from this behavior: AWS's columnar warehouse where distribution, sort keys, RA3 storage separation, and concurrency affect performance?”
  • Production clue: A vendor comparison based only on query price omits table scan bytes, idle warehouse hours, slot reservations, maintenance, data locality, and ecosystem migration costs.
  • Design probe: Benchmark representative skew, concurrency, partitioning, and stored-data patterns using the same warehouse edition/region, then evaluate total cost, identity, operations, open-format and vendor-exit constraints.

Benchmarks & rules of thumb

Cold/warm query -
measure both cache states explicitly
Concurrency -
queries sustained within interactive p95 SLO
TCO unit -
stored TB plus queried TB/slots/compute and engineering operations

Common mistakes & follow-ups

Common interview mistakes

  • A vendor comparison based only on query price omits table scan bytes, idle warehouse hours, slot reservations, maintenance, data locality, and ecosystem migration costs.
  • Reporting success from a job exit code without checking Cold/warm query and Concurrency.
  • Treating this example as complete without replay, rollback, or access boundaries: Snowflake sizes a virtual warehouse to a workload, BigQuery bills bytes or reserved slot capacity, Redshift distributes/sorts rows, and Databricks SQL charges DBU-backed serverless/provisioned warehouses.

Likely interviewer follow-ups

  • How would you prove this contract instead of only checking that the command ran: A service with separate storage and virtual compute warehouses, micro-partitions, and account-level sharing features.
  • What does the recovery plan do when this occurs? A vendor comparison based only on query price omits table scan bytes, idle warehouse hours, slot reservations, maintenance, data locality, and ecosystem migration costs.
  • When is Snowflake insufficient for Concurrency, and what does adding BigQuery cost in Cold/warm query?
Interview tip: Lead with the data path and failure boundary: Snowflake, BigQuery, Redshift, and Databricks SQL all provide managed analytical SQL but separate capacity, scaling, metadata, pricing, concurrency, and dialect controls differently. Then make the answer operational: Benchmark representative skew, concurrency, partitioning, and stored-data patterns using the same warehouse edition/region, then evaluate total cost, identity, operations, open-format and vendor-exit constraints.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Cloud Data Warehouses Overview (Snowflake, BigQuery, Redshift, Databricks SQL) with data engineer interview Q&A and hands-on practice.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
One Big Table (OBT) Modeling & Modern Columnar Trade-offs
Next topic
Snowflake Architecture (Storage, Virtual Warehouses, Micro-Partitions, Clustering)