Module 3: Medallion Architecture

Field engineers want raw readings. Analysts want clean aggregates. Compliance wants an audit trail. How do you serve everyone from one copy of the data?

in-progress

Your wind utility now has reliable Delta tables. But the data is a mess — raw SCADA readings, partially cleaned aggregates, and analyst-created CSV extracts all live in the same directory. Field engineers want the raw 10-minute readings so they can see exactly what a turbine reported before a failure. Analysts want hourly averages with outliers removed. The compliance team wants an immutable record of every reading that came in, even the bad ones, because NERC auditors will ask.

Everyone needs different views of the same data. If you give each team their own copy, the copies drift. If you force everyone to use one table, the transformations live in dashboard queries and break constantly.

The medallion architecture solves this by organizing data into layers: Bronze (raw, immutable, everything), Silver (cleaned, validated, trustworthy), and Gold (aggregated, business-ready, fast). Every Databricks customer conversation uses this vocabulary. Every data platform job listing assumes you know it.

This module teaches the pattern through the wind utility scenario — and honestly compares it to dbt’s staging/intermediate/marts pattern, which solves the same problem in a different way.

Prerequisites #

Complete Module 2: Delta Lake. You need to understand Delta’s ACID guarantees to see why Bronze can safely be append-only.

Exercises #

Exercises live in modules/03-medallion-architecture/exercises/. You’ll build a three-layer pipeline from raw SCADA readings to analyst-ready aggregates — and see what happens to bad readings.

Lectures

  1. Why one copy of the data isn't enough — Field engineers want raw SCADA readings. Analysts want clean hourly aggregates. Compliance wants immutable records. One table cannot serve all three — and the workarounds create worse problems.
  2. Bronze, Silver, Gold: what each layer actually does — Not just vocabulary — the mechanical definition of what belongs in each layer, why Bronze is sacred, what Silver cleaning means concretely, and why Gold does not mean small
  3. Medallion in practice: patterns, anti-patterns, and reprocessing — How to decide the grain at each layer, common mistakes that erode the architecture, idempotent reprocessing, and schema evolution across Bronze, Silver, and Gold
  4. Medallion vs other patterns: dbt, Snowflake, Lambda, and when medallion is overkill — An honest comparison of medallion with dbt's staging/intermediate/marts, Snowflake's approach, the historical Lambda architecture, and when simpler patterns are the right choice

Exercises

  • Exercises: Medallion Architecture — Build a three-layer pipeline from raw SCADA readings to analyst-ready aggregates — manually — so you feel exactly what DLT automates in Module 4

Knowledge Tests