Skip to the page

Data engineering · 24 concepts

Data engineering: modelling, Spark, pipelines and streaming

Data modelling and warehousing, Spark, Airflow and dbt, streaming and CDC, cloud platforms and table formats, and running pipelines in production.

Asked in these mock interviews

Part 1 · 4 concepts

Data modelling

  1. 01

    Grain, facts and the star schema

    A warehouse model starts with the grain of the fact table: what one row means. Facts hold measures, dimensions hold descriptions, and a star schema with flat dimensions…

  2. 02

    Slowly changing dimensions

    A dimension attribute can change. SCD type 1 overwrites, type 2 keeps history as new rows, type 3 keeps one previous value. The choice decides whether old reports change.

  3. 03

    Surrogate keys, Kimball, Data Vault and one big table

    Warehouses use their own surrogate keys, not source ids. Modelling methods differ in who they serve: Kimball marts for users, Data Vault for audit and many sources, one…

  4. 04

    Lake, warehouse, lakehouse, medallion and partitioning

    A lake holds cheap files, a warehouse holds managed tables, and a lakehouse puts transactions on files with an open table format. Partitioning and clustering decide how…

Part 2 · 5 concepts

Spark

  1. 05

    How a Spark job runs: jobs, stages and tasks

    The driver plans the work, executors run tasks, and a shuffle splits a job into stages. Transformations are lazy and only actions start a job.

  2. 06

    Partitions, repartition, coalesce and small files

    The number and size of partitions decides speed and file count. repartition shuffles and balances; coalesce only merges. Thousands of tiny files slow every read.

  3. 07

    Joins, broadcast, skew and adaptive execution

    Join strategy and key distribution decide most Spark run time. Broadcast the small side, find the hot key when one task is slow, and know what adaptive query execution…

  4. 08

    Caching, memory, plans and slow jobs

    When a job is slow or killed, read the evidence: the plan, the stage that grew, the memory error type. Cache only reused data, avoid Python UDFs and fix the cause, not…

  5. 09

    Spark coding patterns and the Spark 4 upgrade

    Two patterns appear in almost every interview: top N per group and keep the latest record then MERGE. The Spark 4 upgrade turned ANSI mode on, which exposes bad data.

Part 3 · 5 concepts

Orchestration and dbt

  1. 10

    How Airflow runs a DAG and what changed in Airflow 3

    Airflow is an orchestrator: the scheduler decides what is ready, an executor sends tasks to workers, and all state lives in the metadata database. Airflow 3 changed the…

  2. 11

    Idempotent loads, reruns and backfills

    A task that can run twice with the same result is idempotent. Use the run's own date, not the wall clock, and overwrite or merge instead of appending, so retries and…

  3. 12

    Timeouts, sensors and alerts that fire

    A task that hangs never fails, so no retry and no alert happen. Put timeouts on every task and outside call, use deferrable or rescheduled sensors, and alert on things…

  4. 13

    dbt models, refs and tests

    dbt is the transformation step inside the warehouse: SQL models run in dependency order with tests. It does not extract or load data and is not a scheduler.

  5. 14

    dbt incremental models and snapshots

    An incremental model needs a key and a lookback window or it loses and repeats rows. Snapshots record history but only what they see at run time.

Part 4 · 4 concepts

Streaming and CDC

  1. 15

    Kafka ingestion into the lakehouse and choosing an engine

    A clickstream pipeline needs the right number of partitions, a schema contract, a stream consumer that commits to a table, a dead-letter path and replay from the bronze…

  2. 16

    Delivery guarantees, idempotent sinks and state

    Exactly-once stops at the edge of the system that supports it. Real pipelines use at-least-once delivery with idempotent writes, stable checkpoints and bounded state.

  3. 17

    Event time, watermarks and windows

    Event time is when something happened, processing time is when the job sees it. A watermark says how late data may be, closes windows and bounds state. Late events…

  4. 18

    Change data capture with Debezium

    Log-based CDC reads the database change log, so it sees every insert, update and delete in order. Apply changes by log position, never by deduplicating on a key.

Part 5 · 3 concepts

Cloud data platforms

  1. 19

    File formats and why Parquet is fast

    Choose the format by use: Parquet for analytics, Avro or Protobuf for messages, CSV only at the edges. Parquet is fast because queries read fewer columns and skip row…

  2. 20

    Delta Lake, Iceberg, Hudi and commits

    A table format turns a folder of Parquet files into a table with atomic commits, time travel and MERGE. Delta, Iceberg and Hudi differ in metadata design, engine…

  3. 21

    Choosing a platform, cost models and migration

    Choose a platform from workload, team skills and bill predictability. Know how Snowflake and BigQuery charge, and how filters and refresh settings change the bill.

Part 6 · 3 concepts

Data pipelines in production

  1. 22

    When a pipeline breaks or the numbers are wrong

    In an incident, tell users early, contain the damage, find the cause layer by layer, repair the data safely and add a check so it cannot repeat. Tell the story with…

  2. 23

    Data quality, contracts and shared metrics

    Quality checks run at ingestion, after transforms and before publishing. Contracts stop silent schema changes. One owned definition in a shared layer stops two teams…

  3. 24

    PII in the lake and erasing a customer's data

    Personal data in a lake must be found, locked down, masked and truly deleted, including old table versions. Contain a leak without destroying evidence and let security…

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview