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

Building an End-to-End Medallion Lakehouse Pipeline

Assemble bronze→silver→gold with quality checks, orchestration, and serving for a production-shaped path.

AdvancedE2E · Medallion · Pipeline3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

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

Loading interactive 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.

Building an End-to-End Medallion Lakehouse Pipeline in one concrete design

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.

Key takeaway: 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

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.

Key takeaway: 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.

How it works, step by step

Step 1 of 4
E2E

1. 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.

source cursor, raw payload, arrival metadata
Key numbers at this step
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

E2E
Best for: A complete pipeline path spanning source, durability, validation, modeling, serving, and operational evidence.

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.

Medallion
Best for: Bronze/silver/gold architecture whose layer boundaries correspond to measurable contracts rather than folder names.

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.

Pipeline
Best for: The orchestrated unit that can be tested for one partition, rerun without logical duplication, and backfilled with observable results.

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?
Interview tip: Lead with the data path and failure boundary: 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. Then make the answer operational: 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.

Knowledge check

Loading quiz

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.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
Migrating Legacy Data Lakes & Warehouses to Lakehouse Architecture
Next topic
ETL vs ELT in Modern Cloud Data Platforms