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 81/ 160
05. Data Lakehouses & Open Table Formats

Data Lake Architecture (Bronze, Silver, Gold Medallion Architecture)

Layer raw bronze, cleaned silver, and curated gold tables so quality and contracts improve by stage.

BeginnerBronze · Silver · Gold3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Immutable source payload, provenance, and arrival. Next, schema, dedupe, joins, and quality quarantine. Finally, replay bronze with versioned code and contracts.

Think of it like…

Medallion layers are assay stages in a refinery: raw ore is preserved, impurities are recorded during refining, and certified bullion has a grade that consumers can trust.

Where you’ve seen it

Bronze stores raw CDC envelopes and file metadata, silver MERGEs by business key into valid typed orders, and gold publishes fact_sales_daily with checks; rejected raw payloads remain queryable with a reason code.

Words you’ll hear

Bronze
The raw/replayable layer retaining source representation and enough metadata for inspection and rebuild.
Silver
A cleaned, conformed, deduplicated layer whose identity and schema are stable enough for shared transformation.
Gold
A consumer model at declared grain, often dimensions/facts or aggregates, with explicit product SLOs.
Operational boundary
Treating every dataset as mandatory three copies multiplies storage and latency, while a silver table that silently discards rejected records makes raw recovery and impact analysis impossible. Assign a purpose and SLO to each layer, keep immutable source evidence and quarantine in bronze, enforce schema and quality before silver, and version gold grain/metrics for consumers.

Visual diagram

Loading interactive diagram

Theory & deep dive

Bronze: the working mechanism

A medallion lakehouse promotes data through bronze raw evidence, silver conformed and deduplicated records, and gold consumer-facing facts/aggregates with increasing validation and business contracts.

Immutable source payload, provenance, and arrival. Schema, dedupe, joins, and quality quarantine, then business grain, metrics, and serving interface; this exposes the state governed by Gold.

Data Lake Architecture in one concrete design

Bronze stores raw CDC envelopes and file metadata, silver MERGEs by business key into valid typed orders, and gold publishes fact_sales_daily with checks; rejected raw payloads remain queryable with a reason code.

Key takeaway: A medallion lakehouse promotes data through bronze raw evidence, silver conformed and deduplicated records, and gold consumer-facing facts/aggregates with increasing validation and business contracts

Data Lake Architecture: failure mode and production response

Treating every dataset as mandatory three copies multiplies storage and latency, while a silver table that silently discards rejected records makes raw recovery and impact analysis impossible.

Assign a purpose and SLO to each layer, keep immutable source evidence and quarantine in bronze, enforce schema and quality before silver, and version gold grain/metrics for consumers. Track Layer freshness as "per-stage time to curated publication", and make Reject rate visible to the dataset owner.

Key takeaway: Assign a purpose and SLO to each layer, keep immutable source evidence and quarantine in bronze, enforce schema and quality before silver, and version gold grain/metrics for consumers.

How it works, step by step

Step 1 of 4
Bronze

1. Bronze

Immutable source payload, provenance, and arrival. A medallion lakehouse promotes data through bronze raw evidence, silver conformed and deduplicated records, and gold consumer-facing facts/aggregates with increasing validation and business contracts.

immutable source payload, provenance, and arrival
Key numbers at this step
Layer freshness
per-stage time to curated publication
Silver
A cleaned, conformed, deduplicated layer whose identity and schema are stable enough for shared transformation.

When to use it & trade-offs

What it is

A medallion lakehouse promotes data through bronze raw evidence, silver conformed and deduplicated records, and gold consumer-facing facts/aggregates with increasing validation and business contracts. Bronze stores raw CDC envelopes and file metadata, silver MERGEs by business key into valid typed orders, and gold publishes fact_sales_daily with checks; rejected raw payloads remain queryable with a reason code.

Why it matters: Treating every dataset as mandatory three copies multiplies storage and latency, while a silver table that silently discards rejected records makes raw recovery and impact analysis impossible. Assign a purpose and SLO to each layer, keep immutable source evidence and quarantine in bronze, enforce schema and quality before silver, and version gold grain/metrics for consumers.

When to reach for it

  • Layer raw bronze, cleaned silver, and curated gold tables so quality and contracts improve by stage.
  • Choose Bronze because it provides this capability: The raw/replayable layer retaining source representation and enough metadata for inspection and rebuild.
  • Keep evidence for Layer freshness at "per-stage time to curated publication" so the last production stage-Recover - replay bronze with versioned code and contracts-remains testable.

When to avoid or be careful

  • Treating every dataset as mandatory three copies multiplies storage and latency, while a silver table that silently discards rejected records makes raw recovery and impact analysis impossible.
  • Do not conflate Silver with Bronze. The second concept contributes different behavior: A cleaned, conformed, deduplicated layer whose identity and schema are stable enough for shared transformation.
  • Release only after this guardrail is in place: Assign a purpose and SLO to each layer, keep immutable source evidence and quarantine in bronze, enforce schema and quality before silver, and version gold grain/metrics for consumers.

Bronze / Silver / Gold - roles, limits, and operating cost

Bronze
Best for: The raw/replayable layer retaining source representation and enough metadata for inspection and rebuild.

Strengths: The raw/replayable layer retaining source representation and enough metadata for inspection and rebuild. A medallion lakehouse promotes data through bronze raw evidence, silver conformed and deduplicated records, and gold consumer-facing facts/aggregates with increasing validation and business contracts.

Watch out: Treating every dataset as mandatory three copies multiplies storage and latency, while a silver table that silently discards rejected records makes raw recovery and impact analysis impossible.

Silver
Best for: A cleaned, conformed, deduplicated layer whose identity and schema are stable enough for shared transformation.

Strengths: A cleaned, conformed, deduplicated layer whose identity and schema are stable enough for shared transformation. In this workflow it supports: Gold - business grain, metrics, and serving interface.

Watch out: The operating cost is real: quarantined rows divided by attempted rows.

Gold
Best for: A consumer model at declared grain, often dimensions/facts or aggregates, with explicit product SLOs.

Strengths: A consumer model at declared grain, often dimensions/facts or aggregates, with explicit product SLOs. Its output can be checked with Replay coverage.

Watch out: Operating guardrail: Assign a purpose and SLO to each layer, keep immutable source evidence and quarantine in bronze, enforce schema and quality before silver, and version gold grain/metrics for consumers.

Interview signals & numbers to know

When this topic comes up

  • “Where is the failure boundary for Bronze, and how would Layer freshness reveal it?”
  • “Why is Silver distinct from this behavior: a consumer model at declared grain, often dimensions/facts or aggregates, with explicit product SLOs?”
  • Production clue: Treating every dataset as mandatory three copies multiplies storage and latency, while a silver table that silently discards rejected records makes raw recovery and impact analysis impossible.
  • Design probe: Assign a purpose and SLO to each layer, keep immutable source evidence and quarantine in bronze, enforce schema and quality before silver, and version gold grain/metrics for consumers.

Benchmarks & rules of thumb

Layer freshness -
per-stage time to curated publication
Reject rate -
quarantined rows divided by attempted rows
Replay coverage -
retained bronze plus code covers the selected gold horizon

Common mistakes & follow-ups

Common interview mistakes

  • Treating every dataset as mandatory three copies multiplies storage and latency, while a silver table that silently discards rejected records makes raw recovery and impact analysis impossible.
  • Reporting success from a job exit code without checking Layer freshness and Reject rate.
  • Treating this example as complete without replay, rollback, or access boundaries: Bronze stores raw CDC envelopes and file metadata, silver MERGEs by business key into valid typed orders, and gold publishes fact_sales_daily with checks; rejected raw payloads remain queryable with a reason code.

Likely interviewer follow-ups

  • How would you prove this contract instead of only checking that the command ran: The raw/replayable layer retaining source representation and enough metadata for inspection and rebuild.
  • What does the recovery plan do when this occurs? Treating every dataset as mandatory three copies multiplies storage and latency, while a silver table that silently discards rejected records makes raw recovery and impact analysis impossible.
  • When is Bronze insufficient for Reject rate, and what does adding Silver cost in Layer freshness?
Interview tip: Lead with the data path and failure boundary: A medallion lakehouse promotes data through bronze raw evidence, silver conformed and deduplicated records, and gold consumer-facing facts/aggregates with increasing validation and business contracts. Then make the answer operational: Assign a purpose and SLO to each layer, keep immutable source evidence and quarantine in bronze, enforce schema and quality before silver, and version gold grain/metrics for consumers.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Data Lake Architecture (Bronze, Silver, Gold Medallion Architecture) with data engineer interview Q&A and hands-on practice.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
Distributed Processing Alternatives (Dask, Ray Data)
Next topic
Cloud Object Storage Fundamentals (AWS S3, GCS, Azure Blob Storage)