Building an End-to-End Medallion Lakehouse Pipeline
Assemble bronze→silver→gold with quality checks, orchestration, and serving for a production-shaped path.
In plain words
Source cursor, raw payload, arrival metadata. Next, schema, dedupe, dimensions, quarantine. Finally, lineage, freshness, permissions, compaction, and replay.
Think of it like…
The pipeline is an end-to-end factory with receiving receipts, quality gates, production records, and a service counter; success is a delivered certified product, not one machine spinning.
Where you’ve seen it
Airflow extracts Kafka/OLTP to Bronze, dbt/Spark performs keyed dedupe and quarantine, Iceberg publishes Gold facts, Trino serves them, and Great Expectations plus OpenLineage attach partition quality and lineage before release.
Words you’ll hear
- E2E
- A complete pipeline path spanning source, durability, validation, modeling, serving, and operational evidence.
- Medallion
- Bronze/silver/gold architecture whose layer boundaries correspond to measurable contracts rather than folder names.
- Pipeline
- The orchestrated unit that can be tested for one partition, rerun without logical duplication, and backfilled with observable results.
- Operational boundary
- A demo pipeline that works only on full refresh hides incremental duplicate bugs, no-manifest output can publish partial partitions, and a green transformation run can still serve stale or unauthorized data. Version a source checkpoint, use transactional table commits, write quarantine and reconciliation artifacts, orchestrate layer dependencies with SLAs, and validate backfill, late data, schema drift, and reader rollback in tests.
Visual diagram
Theory & deep dive
E2E: the working mechanism
An end-to-end medallion pipeline coordinates immutable bronze ingestion, validated silver dedupe/upserts, tested gold models, table maintenance, serving permissions, and observable recovery as one dependency graph.
Source cursor, raw payload, arrival metadata. Schema, dedupe, dimensions, quarantine, then grain/KPI tests, atomically committed partition; this exposes the state governed by Pipeline.
Airflow extracts Kafka/OLTP to Bronze, dbt/Spark performs keyed dedupe and quarantine, Iceberg publishes Gold facts, Trino serves them, and Great Expectations plus OpenLineage attach partition quality and lineage before release.
Building an End-to-End Medallion Lakehouse Pipeline: failure mode and production response
A demo pipeline that works only on full refresh hides incremental duplicate bugs, no-manifest output can publish partial partitions, and a green transformation run can still serve stale or unauthorized data.
Version a source checkpoint, use transactional table commits, write quarantine and reconciliation artifacts, orchestrate layer dependencies with SLAs, and validate backfill, late data, schema drift, and reader rollback in tests. Track Partition SLO as "arrival to published gold freshness", and make Reconciliation visible to the dataset owner.
How it works, step by step
Step 1 of 41. Ingest bronze
Source cursor, raw payload, arrival metadata. An end-to-end medallion pipeline coordinates immutable bronze ingestion, validated silver dedupe/upserts, tested gold models, table maintenance, serving permissions, and observable recovery as one dependency graph.
- Partition SLO
- arrival to published gold freshness
- Medallion
- Bronze/silver/gold architecture whose layer boundaries correspond to measurable contracts rather than folder names.
When to use it & trade-offs
What it is
An end-to-end medallion pipeline coordinates immutable bronze ingestion, validated silver dedupe/upserts, tested gold models, table maintenance, serving permissions, and observable recovery as one dependency graph. Airflow extracts Kafka/OLTP to Bronze, dbt/Spark performs keyed dedupe and quarantine, Iceberg publishes Gold facts, Trino serves them, and Great Expectations plus OpenLineage attach partition quality and lineage before release.
Why it matters: A demo pipeline that works only on full refresh hides incremental duplicate bugs, no-manifest output can publish partial partitions, and a green transformation run can still serve stale or unauthorized data. Version a source checkpoint, use transactional table commits, write quarantine and reconciliation artifacts, orchestrate layer dependencies with SLAs, and validate backfill, late data, schema drift, and reader rollback in tests.
When to reach for it
- Assemble bronze→silver→gold with quality checks, orchestration, and serving for a production-shaped path.
- Choose E2E because it provides this capability: A complete pipeline path spanning source, durability, validation, modeling, serving, and operational evidence.
- Keep evidence for Partition SLO at "arrival to published gold freshness" so the last production stage-Operate - lineage, freshness, permissions, compaction, and replay-remains testable.
When to avoid or be careful
- A demo pipeline that works only on full refresh hides incremental duplicate bugs, no-manifest output can publish partial partitions, and a green transformation run can still serve stale or unauthorized data.
- Do not conflate Medallion with E2E. The second concept contributes different behavior: Bronze/silver/gold architecture whose layer boundaries correspond to measurable contracts rather than folder names.
- Release only after this guardrail is in place: Version a source checkpoint, use transactional table commits, write quarantine and reconciliation artifacts, orchestrate layer dependencies with SLAs, and validate backfill, late data, schema drift, and reader rollback in tests.
E2E / Medallion / Pipeline - roles, limits, and operating cost
Strengths: A complete pipeline path spanning source, durability, validation, modeling, serving, and operational evidence. An end-to-end medallion pipeline coordinates immutable bronze ingestion, validated silver dedupe/upserts, tested gold models, table maintenance, serving permissions, and observable recovery as one dependency graph.
Watch out: A demo pipeline that works only on full refresh hides incremental duplicate bugs, no-manifest output can publish partial partitions, and a green transformation run can still serve stale or unauthorized data.
Strengths: Bronze/silver/gold architecture whose layer boundaries correspond to measurable contracts rather than folder names. In this workflow it supports: Publish gold - grain/KPI tests, atomically committed partition.
Watch out: The operating cost is real: bronze valid rows minus quarantine equals silver source population.
Strengths: The orchestrated unit that can be tested for one partition, rerun without logical duplication, and backfilled with observable results. Its output can be checked with Recovery drill.
Watch out: Operating guardrail: Version a source checkpoint, use transactional table commits, write quarantine and reconciliation artifacts, orchestrate layer dependencies with SLAs, and validate backfill, late data, schema drift, and reader rollback in tests.
Interview signals & numbers to know
When this topic comes up
- “Where is the failure boundary for E2E, and how would Partition SLO reveal it?”
- “Why is Medallion distinct from this behavior: the orchestrated unit that can be tested for one partition, rerun without logical duplication, and backfilled with observable results?”
- Production clue: A demo pipeline that works only on full refresh hides incremental duplicate bugs, no-manifest output can publish partial partitions, and a green transformation run can still serve stale or unauthorized data.
- Design probe: Version a source checkpoint, use transactional table commits, write quarantine and reconciliation artifacts, orchestrate layer dependencies with SLAs, and validate backfill, late data, schema drift, and reader rollback in tests.
Benchmarks & rules of thumb
- Partition SLO
- arrival to published gold freshness
- Reconciliation
- bronze valid rows minus quarantine equals silver source population
- Recovery drill
- a checkpoint rollback and replay produces identical gold keys/totals
Common mistakes & follow-ups
Common interview mistakes
- A demo pipeline that works only on full refresh hides incremental duplicate bugs, no-manifest output can publish partial partitions, and a green transformation run can still serve stale or unauthorized data.
- Reporting success from a job exit code without checking Partition SLO and Reconciliation.
- Treating this example as complete without replay, rollback, or access boundaries: Airflow extracts Kafka/OLTP to Bronze, dbt/Spark performs keyed dedupe and quarantine, Iceberg publishes Gold facts, Trino serves them, and Great Expectations plus OpenLineage attach partition quality and lineage before release.
Likely interviewer follow-ups
- How would you prove this contract instead of only checking that the command ran: A complete pipeline path spanning source, durability, validation, modeling, serving, and operational evidence.
- What does the recovery plan do when this occurs? A demo pipeline that works only on full refresh hides incremental duplicate bugs, no-manifest output can publish partial partitions, and a green transformation run can still serve stale or unauthorized data.
- When is E2E insufficient for Reconciliation, and what does adding Medallion cost in Partition SLO?
Knowledge check
Put it into practice
Practice related interview Q&A
Apply Building an End-to-End Medallion Lakehouse Pipeline with data engineer interview Q&A and hands-on practice.