Medallion architecture illustration: a laptop showing bronze, silver, and gold data layers with data flowing upward
Career Development

Medallion Architecture Explained: Bronze, Silver, and Gold Layers

Medallion architecture is a way to organize data in a lakehouse into three layers: bronze for raw data, silver for cleaned and validated data, and gold for business-ready tables. Each layer improves the quality and structure of the data a step at a time, so problems are easier to find and fix.

This guide explains what each layer does, walks through a simple example, and covers the trade-offs and best practices data engineers should know before building one.

Key Points

  • Bronze keeps raw data as it arrived, so you can audit it and reprocess it later.
  • Silver cleans, deduplicates, and validates records while keeping one row per real-world event or entity.
  • Gold holds aggregated or modeled tables that analysts, dashboards, and machine learning workloads read directly.
  • The pattern is a design guideline, not a product feature; you can apply it on several platforms and adjust the number of layers.

Quick summary: Land everything in bronze, make it trustworthy in silver, and shape it for questions in gold.

Key takeaway: Because bronze keeps the original data, you can fix a bug in your silver or gold logic and rebuild those tables without losing anything.

What Is Medallion Architecture?

Medallion architecture is a data design pattern for a lakehouse, a platform that combines low-cost file storage with table features such as transactions and schema enforcement. The name comes from the bronze, silver, and gold labels used for its layers. Some teams also call it a multi-hop architecture, because data hops from one layer to the next.

The pattern is closely associated with Databricks and open table formats such as Delta Lake, but the idea is platform-neutral: separate raw, refined, and consumption-ready data so each has one clear job. The Microsoft Learn guide to the medallion lakehouse architecture describes the layers as bronze (raw), silver (validated), and gold (enriched) and notes that following the pattern is a recommended practice, not a requirement.

The Three Layers: Bronze, Silver, and Gold

Bronze layer: raw data as it arrived

The bronze layer stores source data in its original form. Records are usually appended over time, not updated, and the layer often adds metadata such as the source file name and load time. Little or no cleaning happens here.

Keeping raw history matters because it lets you rebuild silver and gold tables after a bug fix or a change in business rules, without asking the source system to send the data again.

Silver layer: cleaned, validated, and conformed

The silver layer reads from bronze and fixes what is wrong with the data. Typical work includes enforcing a schema, casting data types, handling nulls, removing duplicates, dealing with late or out-of-order records, and joining related sources.

Silver tables usually keep detail: one validated row per order, event, or customer. That makes silver useful for data engineers, analysts, and data scientists who need trustworthy records rather than summaries.

Gold layer: business-ready tables

The gold layer holds tables designed around questions the business asks. These can be aggregates, such as daily revenue by region, or dimensional models, such as fact and dimension tables in a star schema. Gold tables are what dashboards, reports, and many machine learning features read.

Gold usually contains fewer tables than silver, and each table has a clear owner and definition.

Here is how the three layers compare:

LayerMain jobTypical users
BronzeStore raw source data and its historyData engineers, audit and compliance teams
SilverClean, deduplicate, and validate recordsData engineers, analysts, data scientists
GoldAggregate and model data for decisionsAnalysts, BI developers, business teams

A Simple Medallion Architecture Example

Imagine an online store that receives order events from its website and a daily customer file from its customer system. Here is how the data could move through the layers.

Bronze: land the order events and customer file

Load every order event exactly as it arrives, including malformed records, into a table such as bronze.orders_raw. Load the customer file into bronze.customers_raw. Add columns for the source file and ingestion time so you can trace any row back to where it came from.

Silver: clean and join the records

Build silver.orders by parsing timestamps, casting amounts to numbers, removing duplicate events with the same order ID, and moving records that fail validation into a separate quarantine table for review. Build silver.customers with one current row per customer.

This is also where most checks belong. For example, confirm that every order has a customer ID and a positive amount. Our guide to data quality tests in SQL shows how to write checks for nulls, duplicates, ranges, and referential integrity.

Gold: build tables for the questions people ask

Create gold.daily_sales with revenue and order counts per day, and gold.customer_lifetime_value with total spend per customer. Dashboards read these tables directly, so their definitions should be documented and stable.

When a bug in the amount parsing is found, you fix the silver logic and rebuild silver and gold from bronze. No data is lost, because bronze kept the original events.

Medallion Architecture vs. a Traditional ETL Warehouse Flow

In a traditional extract, transform, load (ETL) flow, data is cleaned before it lands in the warehouse, and the raw version is often not kept. Medallion architecture usually follows an extract, load, transform (ELT) style instead: raw data is loaded first, then transformed inside the platform in stages.

Both approaches can produce the same gold-level tables. The main difference is that medallion keeps every stage as a queryable table, which helps with debugging, auditing, and reprocessing. For a deeper comparison of the two styles, read ETL vs. ELT explained.

Benefits and Trade-offs

Medallion architecture helps most when several teams share the same data and need to trust it. Its benefits and costs are worth weighing before you adopt it.

BenefitTrade-off
Raw history makes reprocessing and audits possibleStoring three layers uses more storage
Clear stages make failures easier to locateMore tables and jobs to orchestrate and monitor
Each layer has a defined purpose and audienceStrict layering can add delay for near-real-time needs
Quality improves step by step instead of all at onceTeams need naming and ownership rules to avoid clutter

Small projects with one source and one report may not need all three layers. The pattern earns its keep as sources, consumers, and rules multiply.

Best Practices for Building Medallion Pipelines

  • Keep bronze append-only. Avoid editing raw records so you always have a faithful copy of the source.
  • Make transformations rerunnable. Running the same batch twice should not create duplicates in silver or gold.
  • Put validation in silver. Quarantine bad records instead of silently dropping them, and track how many were rejected.
  • Design gold around questions. Start from the reports and metrics people need, not from the source tables.
  • Use consistent names. Separate layers with schemas or catalogs, such as bronze, silver, and gold, so every table shows its quality level.
  • Document ownership. Each gold table should have an owner, a definition, and a refresh schedule.

If you want to practice these steps on a real platform, our Databricks learning path for data engineers walks through building and scheduling a small pipeline with Delta tables.

How Medallion Architecture Comes Up in Data Engineering Interviews

Medallion architecture is a useful way to structure an answer to a pipeline design question. Be ready to explain:

  • why you keep raw data in bronze and what you would do if a source sends a bad batch;
  • where you would put data quality checks and how you would handle records that fail them;
  • how you would make a silver job safe to rerun after a failure;
  • when you would skip or merge layers to meet a freshness requirement.

Practicing with a full project helps you answer with specifics. Our article on system design projects for data engineers includes real project examples that use bronze, silver, and gold layers. If you want feedback on your own project or interview answers, DE Academy also offers personalized training.

Frequently Asked Questions

Is medallion architecture only for Databricks?

No. The term is most closely tied to Databricks, and the Databricks guide explains it, but the pattern works on any platform that can store raw and refined tables, including other lakehouse and warehouse tools.

Do you always need exactly three layers?

No. Three layers is the common starting point. Some teams add a landing zone before bronze or split gold into several data marts, while small projects may combine silver and gold.

Is the gold layer the same as a data warehouse?

Not exactly. The gold layer often plays the role of a warehouse presentation layer, with aggregates or star schema tables, but it lives in the same lakehouse as bronze and silver.

Where should data quality checks go?

Most checks belong in silver, where records are validated before anyone relies on them. Light checks in bronze, such as confirming a file arrived, and business rule checks in gold are also common.

Is medallion architecture ETL or ELT?

It usually follows ELT, because raw data is loaded first and transformed in stages inside the platform. You can still apply some transformations during ingestion when there is a clear reason.

Start With Bronze, Earn Trust in Silver, Deliver Value in Gold

Medallion architecture gives each layer of your data one clear job. Start by landing raw data safely, add validation and deduplication in silver, and build gold tables around real questions. A small project built this way is also a strong example to walk through in your next interview.

ABOUT THE AUTHOR