Data Engineering · Chapter 12 · ~15 min · Senior & Staff Capstone
Data Engineering Capstone: End-to-End System Design & Interview Prep
The definitive Senior & Staff Data Engineering interview guide. Synthesize Parquet columnar storage, Kafka event streaming, Spark skew mitigation, dbt dimensional modeling, Airflow idempotency, and Apache Iceberg lakehouses into crisp system design answers.
- 12 Senior Data Engineering interview questions across Chapters 1–12
- Formulate storage and network capacity math for multi-petabyte systems
- Navigate trade-offs across Parquet, Kafka, Spark, dbt, and Iceberg
- Design resilient Kappa + Lakehouse platforms with WAP & DLQ safeguards
Data Engineering Capstone & Technical Interview: End-to-End Pipeline Design: learn it visually
Synthesize the entire data engineering journey: architect an enterprise-scale clickstream and transactional platform. Capacity estimations, ingestion, lakehouse storage, dbt modeling, Airflow orchestration, and interview framework.
1The 4-Step End-to-End Data System Design Framework
In Senior and Staff Data Engineering interviews, open-ended prompts like "Design an analytics platform handling 100,000 events/sec" evaluate structured trade-off reasoning. Walk through these 4 steps before naming tools:
Scope & Clarify
Establish latency SLAs (sub-second alerts vs. hourly BI), retention (3 yrs), and schema strictness.
Capacity Math
Calculate ingress MB/s, daily raw TB, Parquet Zstd compression (~80% savings), and multi-year PB.
High-Level Flow
Kafka → S3 + Iceberg (Bronze) → Spark/dbt Medallion (Silver SCD2 / Gold) → Warehouse / Redis.
Resilience & Ops
Address Spark partition skew, small-file compaction, data contracts, WAP gates, and idempotent backfills.
Throughput & Storage Quick Reference
100,000 events/s × 1 KB = 100 MB/s → 8.44 TB/day raw → ~1.69 TB/day compressed Parquet (~1.85 PB / 3 yrs).
Wrong idea: Execute heavy multi-table window joins directly in streaming RAM
Attempting to join 30-day historical user history inside Apache Flink state memory for millions of concurrent users. Worker heap memory exhausts, checkpoint size explodes, and recovery takes hours.
Real system: Adopt Kappa Architecture: Append-only log + Lakehouse tiering
Kafka ingests raw clickstream and appends to Lakehouse Bronze tables immediately. Complex historical joins run in fast batch lakehouse tiers (Spark/dbt), while streaming handles strictly real-time window metrics.
2Hands-On: Capacity Sizing & Broker Outage Simulator
Scale event velocity up to 500k events/sec and toggle an Availability Zone broker outage to verify how replication keeps ingestion durable while Parquet compression bounds lakehouse costs:
Enterprise Data Platform Architect Simulator
Adjust event velocity and payload size to calculate network ingestion bandwidth, multi-year storage capacity, and infrastructure sizing.
3 AZ Replication · 32 Partitions
S3 Object Storage · Parquet Format · ACID Snapshots
Bronze → Silver → Gold Medallion Data Marts
Hourly DAGs · TaskFlow · Backfills · SLA Alerts
Reverse ETL to CRM & 2ms Client API Lookups
3Senior Data Engineering Interview Question Bank (12 Questions)
Filter questions across the 5 core data engineering domains. Practice explaining the storage, shuffle, and consistency mechanics before expanding the rubric and traps:
Why is querying 3 columns out of a 200-column Apache Parquet file orders of magnitude faster and cheaper than scanning a gzipped CSV or JSONL file on S3?
- Row-oriented (CSV/JSON/Postgres) reads every byte of every unused column; Columnar (Parquet) groups identical column types contiguously for Column Pruning.
- High compression ratios via Dictionary Encoding, Run-Length Encoding (RLE), and bit-packing on homogeneous column pages.
- Predicate Pushdown: Row Group min/max statistics in the Parquet footer let query engines (DuckDB, Spark, Trino) skip entire 128MB Row Groups without reading them.
-- Column pruning + Parquet Row Group min/max predicate pushdown in DuckDB:
SELECT country, SUM(amount_cents) / 100.0 AS revenue
FROM read_parquet('s3://lake/events/*.parquet')
WHERE event_date = '2026-11-24'
GROUP BY country;Writing millions of tiny 50 KB Parquet files from streaming micro-batches — the 'small files problem' destroys S3 LIST/GET performance and bloats Parquet footer overhead; target 128MB–512MB compacted files.
4Instant Challenge & Sizing/Resilience Bug Hunt
Staff Data Engineering Interview: The Skewed Lakehouse Pipeline
Your hourly Spark job joining 2 billion clickstream events with a 50MB users table stalls at 99% (199/200 tasks complete) due to null user_id skew, while downstream BI dashboards intermittently show partial writes during table updates. Which fix solves both?
1Select the production-grade remediation strategy:
Now fix the sizing conversion error, missing retry ceiling, and missing exponential backoff in the orchestration utility below:
🎯 Find and fix the bugs in the code above, then press Run & verify to test your solution.
Need a hint?
- Divide total daily bytes by
(1024 ** 4)to compute binary Terabytes accurately. - Add a ceiling check:
if attempt >= max_retries: raise Exception(...). - Include
time.sleep(2 ** attempt)for exponential backoff between retries.
5Data Engineering Knowledge Checks
What is the critical opening step in a Senior Data Engineering System Design interview?
Why does modern enterprise data platform design prefer the Kappa + Lakehouse architecture over the older Lambda architecture?
6Recap: Senior Data Signals & Course Graduation
- Foundations (Ch 1–3): OLTP vs. OLAP row/column stores, batch vs. streaming semantics, and Apache Parquet column pruning + predicate pushdown.
- Modeling & Contracts (Ch 4–7): ELT Medallion tiers, Kimball Star Schemas + SCD Type 2, incremental dbt lookbacks, and Write-Audit-Publish data contracts.
- Streaming & Compute (Ch 8–9): Kafka per-key partitioning, event-time watermarks, Spark broadcast joins, and AQE/salting for skew mitigation.
- Lakehouse & Serving (Ch 10–12): ACID Snapshot Isolation with Apache Iceberg/Delta Lake, Reverse ETL change diffing, and capacity-driven architecture.
Congratulations! You've Completed Modern Data Engineering
You have mastered the complete 12-chapter curriculum: from OLTP vs OLAP columnar formats and Airflow DAGs to Kafka event streams, Spark partitions, Delta/Iceberg lakehouses, and reverse ETL APIs.
Ready to claim your graduation milestone?