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 160/ 160
08. Data Quality, Governance, Security & AI Infrastructure

Capstone Project: End-to-End Batch & Streaming Lakehouse Platform

Build a capstone that combines batch + streaming into a governed lakehouse with quality and ops.

AdvancedCapstone · Batch+Stream · Lakehouse3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Domain, users, grain, SLO, and threat model. Next, batch/CDC ingestion into transactional tables. Finally, checkpoints, backfill, observability, FinOps, and failure drills.

Think of it like…

The capstone is a miniature operating company: data enters through multiple docks, every package has provenance and a quality stamp, finance and analysts consume one model, and drills prove the recovery plan.

Where you’ve seen it

Commerce events stream CDC through Kafka/Flink into Iceberg bronze/silver, a daily batch reconciles inventory, dbt builds governed daily/customer models, Trino/BI serves Gold, OpenLineage/GX track evidence, and all partitions can be replayed from a checkpoint.

Words you’ll hear

Capstone
A portfolio-scale, production-shaped project that demonstrates architecture decisions and operability, not every possible tool.
Batch+Stream
Complementary finite historical loads and continuous event/state paths converging on one governed data contract.
Lakehouse
A transactional object-table platform with medallion layers, serving engines, and operational metadata.
Operational boundary
A portfolio capstone may stitch demos without one logical business grain, or it may prove the happy path only while duplicate events, late data, schema drift, ACL bypass, cost spikes, and rollback remain unexplained. Choose one domain and end-to-end SLO, include source checkpoint and replay, implement idempotent stream/batch merges, version contracts/models, expose lineage/quality/cost, and rehearse duplicate, late, outage, migration, and privacy scenarios.

Visual diagram

Loading interactive diagram

Theory & deep dive

Capstone: the working mechanism

A capstone governed lakehouse integrates batch and CDC/stream feeds, transactional bronze/silver/gold tables, quality contracts, catalogs/ACLs, orchestration, online/BI serving, observability, and tested recovery.

Domain, users, grain, SLO, and threat model. Batch/CDC ingestion into transactional tables, then contract, tests, ACL, catalog, and BI/online output; this exposes the state governed by Lakehouse.

Capstone Project: End-to-End Batch & Streaming Lakehouse Platform in one concrete design

Commerce events stream CDC through Kafka/Flink into Iceberg bronze/silver, a daily batch reconciles inventory, dbt builds governed daily/customer models, Trino/BI serves Gold, OpenLineage/GX track evidence, and all partitions can be replayed from a checkpoint.

Key takeaway: A capstone governed lakehouse integrates batch and CDC/stream feeds, transactional bronze/silver/gold tables, quality contracts, catalogs/ACLs, orchestration, online/BI serving, observability, and tested recovery

Capstone Project: End-to-End Batch & Streaming Lakehouse Platform: failure mode and production response

A portfolio capstone may stitch demos without one logical business grain, or it may prove the happy path only while duplicate events, late data, schema drift, ACL bypass, cost spikes, and rollback remain unexplained.

Choose one domain and end-to-end SLO, include source checkpoint and replay, implement idempotent stream/batch merges, version contracts/models, expose lineage/quality/cost, and rehearse duplicate, late, outage, migration, and privacy scenarios. Track End-to-end freshness as "each source path to certified Gold target", and make Reconciliation visible to the dataset owner.

Key takeaway: Choose one domain and end-to-end SLO, include source checkpoint and replay, implement idempotent stream/batch merges, version contracts/models, expose lineage/quality/cost, and rehearse duplicate, late, outage, migration, and privacy scenarios.

How it works, step by step

Step 1 of 4
Capstone

1. Frame one product

Domain, users, grain, SLO, and threat model. A capstone governed lakehouse integrates batch and CDC/stream feeds, transactional bronze/silver/gold tables, quality contracts, catalogs/ACLs, orchestration, online/BI serving, observability, and tested recovery.

domain, users, grain, SLO, and threat model
Key numbers at this step
End-to-end freshness
each source path to certified Gold target
Batch+Stream
Complementary finite historical loads and continuous event/state paths converging on one governed data contract.

When to use it & trade-offs

What it is

A capstone governed lakehouse integrates batch and CDC/stream feeds, transactional bronze/silver/gold tables, quality contracts, catalogs/ACLs, orchestration, online/BI serving, observability, and tested recovery. Commerce events stream CDC through Kafka/Flink into Iceberg bronze/silver, a daily batch reconciles inventory, dbt builds governed daily/customer models, Trino/BI serves Gold, OpenLineage/GX track evidence, and all partitions can be replayed from a checkpoint.

Why it matters: A portfolio capstone may stitch demos without one logical business grain, or it may prove the happy path only while duplicate events, late data, schema drift, ACL bypass, cost spikes, and rollback remain unexplained. Choose one domain and end-to-end SLO, include source checkpoint and replay, implement idempotent stream/batch merges, version contracts/models, expose lineage/quality/cost, and rehearse duplicate, late, outage, migration, and privacy scenarios.

When to reach for it

  • Build a capstone that combines batch + streaming into a governed lakehouse with quality and ops.
  • Choose Capstone because it provides this capability: A portfolio-scale, production-shaped project that demonstrates architecture decisions and operability, not every possible tool.
  • Keep evidence for End-to-end freshness at "each source path to certified Gold target" so the last production stage-Operate - checkpoints, backfill, observability, FinOps, and failure drills-remains testable.

When to avoid or be careful

  • A portfolio capstone may stitch demos without one logical business grain, or it may prove the happy path only while duplicate events, late data, schema drift, ACL bypass, cost spikes, and rollback remain unexplained.
  • Do not conflate Batch+Stream with Capstone. The second concept contributes different behavior: Complementary finite historical loads and continuous event/state paths converging on one governed data contract.
  • Release only after this guardrail is in place: Choose one domain and end-to-end SLO, include source checkpoint and replay, implement idempotent stream/batch merges, version contracts/models, expose lineage/quality/cost, and rehearse duplicate, late, outage, migration, and privacy scenarios.

Capstone / Batch+Stream / Lakehouse - roles, limits, and operating cost

Capstone
Best for: A portfolio-scale, production-shaped project that demonstrates architecture decisions and operability, not every possible tool.

Strengths: A portfolio-scale, production-shaped project that demonstrates architecture decisions and operability, not every possible tool. A capstone governed lakehouse integrates batch and CDC/stream feeds, transactional bronze/silver/gold tables, quality contracts, catalogs/ACLs, orchestration, online/BI serving, observability, and tested recovery.

Watch out: A portfolio capstone may stitch demos without one logical business grain, or it may prove the happy path only while duplicate events, late data, schema drift, ACL bypass, cost spikes, and rollback remain unexplained.

Batch+Stream
Best for: Complementary finite historical loads and continuous event/state paths converging on one governed data contract.

Strengths: Complementary finite historical loads and continuous event/state paths converging on one governed data contract. In this workflow it supports: Govern/serve - contract, tests, ACL, catalog, and BI/online output.

Watch out: The operating cost is real: batch and stream business keys/totals converge.

Lakehouse
Best for: A transactional object-table platform with medallion layers, serving engines, and operational metadata.

Strengths: A transactional object-table platform with medallion layers, serving engines, and operational metadata. Its output can be checked with Recovery drill.

Watch out: Operating guardrail: Choose one domain and end-to-end SLO, include source checkpoint and replay, implement idempotent stream/batch merges, version contracts/models, expose lineage/quality/cost, and rehearse duplicate, late, outage, migration, and privacy scenarios.

Interview signals & numbers to know

When this topic comes up

  • “Where is the failure boundary for Capstone, and how would End-to-end freshness reveal it?”
  • “Why is Batch+Stream distinct from this behavior: a transactional object-table platform with medallion layers, serving engines, and operational metadata?”
  • Production clue: A portfolio capstone may stitch demos without one logical business grain, or it may prove the happy path only while duplicate events, late data, schema drift, ACL bypass, cost spikes, and rollback remain unexplained.
  • Design probe: Choose one domain and end-to-end SLO, include source checkpoint and replay, implement idempotent stream/batch merges, version contracts/models, expose lineage/quality/cost, and rehearse duplicate, late, outage, migration, and privacy scenarios.

Benchmarks & rules of thumb

End-to-end freshness -
each source path to certified Gold target
Reconciliation -
batch and stream business keys/totals converge
Recovery drill -
checkpoint rollback/backfill reproduces logical version with evidence

Common mistakes & follow-ups

Common interview mistakes

  • A portfolio capstone may stitch demos without one logical business grain, or it may prove the happy path only while duplicate events, late data, schema drift, ACL bypass, cost spikes, and rollback remain unexplained.
  • Reporting success from a job exit code without checking End-to-end freshness and Reconciliation.
  • Treating this example as complete without replay, rollback, or access boundaries: Commerce events stream CDC through Kafka/Flink into Iceberg bronze/silver, a daily batch reconciles inventory, dbt builds governed daily/customer models, Trino/BI serves Gold, OpenLineage/GX track evidence, and all partitions can be replayed from a checkpoint.

Likely interviewer follow-ups

  • How would you prove this contract instead of only checking that the command ran: A portfolio-scale, production-shaped project that demonstrates architecture decisions and operability, not every possible tool.
  • What does the recovery plan do when this occurs? A portfolio capstone may stitch demos without one logical business grain, or it may prove the happy path only while duplicate events, late data, schema drift, ACL bypass, cost spikes, and rollback remain unexplained.
  • When is Capstone insufficient for Reconciliation, and what does adding Batch+Stream cost in End-to-end freshness?
Interview tip: Lead with the data path and failure boundary: A capstone governed lakehouse integrates batch and CDC/stream feeds, transactional bronze/silver/gold tables, quality contracts, catalogs/ACLs, orchestration, online/BI serving, observability, and tested recovery. Then make the answer operational: Choose one domain and end-to-end SLO, include source checkpoint and replay, implement idempotent stream/batch merges, version contracts/models, expose lineage/quality/cost, and rehearse duplicate, late, outage, migration, and privacy scenarios.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Capstone Project: End-to-End Batch & Streaming Lakehouse Platform with data engineer interview Q&A and hands-on practice.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
Data Engineering System Design Interviews (Architecture Case Studies)