Chapter 12 of 12
Course Progress0 of 12 completed (0%)

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.

Data Engineering Capstone & Technical Interview: End-to-End Pipeline DesignSynthesize 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.UNDERSTANDIngest source dataFOLLOW THE FLOWTransform thepipelineAPPLY ITServe trusted tablesData Engineering Capstone & Technical Interview: End-to-End Pipeline DesignSynthesize 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.UNDERSTANDIngest source dataFOLLOW THE FLOWTransform thepipelineAPPLY ITServe trusted tables

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:

Step 1

Scope & Clarify

Establish latency SLAs (sub-second alerts vs. hourly BI), retention (3 yrs), and schema strictness.

Step 2

Capacity Math

Calculate ingress MB/s, daily raw TB, Parquet Zstd compression (~80% savings), and multi-year PB.

Step 3

High-Level Flow

Kafka → S3 + Iceberg (Bronze) → Spark/dbt Medallion (Silver SCD2 / Gold) → Warehouse / Redis.

Step 4

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

Real-time Flink → 30-day unbounded state → 500GB JVM Heap Crash!State explosion · Checkpoint recovery stall · High streaming complexity

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 → Bronze Parquet → Scheduled dbt / Spark SQL ModelsUnified event log · Lossless backfilling · Scalable compute isolation

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:

System Design Architecture Lab

Enterprise Data Platform Architect Simulator

Adjust event velocity and payload size to calculate network ingestion bandwidth, multi-year storage capacity, and infrastructure sizing.

Peak Throughput: 100,000 events/sec98 MB/s
10k /s (Mid startup)100k /s (Enterprise)500k /s (Global tier)
Average Payload: 1024 bytes1.0 KB/event
256 B (Sensor metric)1 KB (Clickstream)4 KB (Rich JSON payload)
Daily Raw Volume
8.05 TB/day
Uncompressed JSON ingestion
Compressed Parquet
1.61 TB/day
80% dictionary/snappy savings
3-Year Lakehouse Size
1.72 PB
Petabytes on S3/Iceberg
Est. Cloud Monthly Cost
$6,207
Storage + Managed Compute
End-to-End Modern Data Architecture Stack
1. Ingestion
Apache Kafka

3 AZ Replication · 32 Partitions

2. Storage
Apache Iceberg

S3 Object Storage · Parquet Format · ACID Snapshots

3. Compute
Spark & dbt

Bronze → Silver → Gold Medallion Data Marts

4. Orchestration
Apache Airflow

Hourly DAGs · TaskFlow · Backfills · SLA Alerts

5. Serving
Snowflake & Redis

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:

Interview Question

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?

What the Interviewer Evaluates:
  • 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.
Model Answer & Technical Explanation:
CSV and JSON store records row-by-row: selecting `SUM(revenue)` from a 200-column table still forces S3/disk to read and parse all 199 unneeded columns. Apache Parquet is a hybrid columnar format organized into horizontal Row Groups (e.g., 128MB) split vertically into Column Chunks and Pages. When you query 3 columns, the engine reads the file Footer metadata first and fetches only the byte ranges for those 3 columns (Column Pruning). Because values within a column share identical types and often repeat (like `country = 'US'`), Parquet applies Dictionary Encoding and Run-Length Encoding, routinely shrinking storage by 75–90%. Better yet, each Row Group stores `min`/`max` zone maps in the footer: `WHERE event_date = '2026-11-24'` skips every Row Group whose `[min, max]` range excludes that date (Predicate Pushdown).
-- 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;
Common Candidate Trap to Avoid:

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?

0 / 1 correct
  1. 1Select the production-grade remediation strategy:

Now fix the sizing conversion error, missing retry ceiling, and missing exponential backoff in the orchestration utility below:

Data Platform Capstone · Capacity Sizing & Failover Resilience
Python

🎯 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

Concept Check 1 of 2
1

What is the critical opening step in a Senior Data Engineering System Design interview?

Concept Check 2 of 2
2

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?

Enjoying this free lesson? Your support helps us build more free animated chapters.

Support Us