Data Lake Architecture (Bronze, Silver, Gold Medallion Architecture)
Layer raw bronze, cleaned silver, and curated gold tables so quality and contracts improve by stage.
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
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.
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.
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.
How it works, step by step
Step 1 of 41. 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.
- 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
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.
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.
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_dailywith 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?
Knowledge check
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.