Skip to content
Tech Interview Prep

Data Engineer Interview Prep

Overview

A Data Engineer designs and operates the pipelines, storage, and data models that deliver trustworthy, timely data to the systems and people that depend on it.

Curated: · Written: · Reviewed:

Interview Q&A
104
Practice MCQs
100

The role in one line

A Data Engineer owns the pipelines, storage and data models that deliver trustworthy, timely data to consumers, and can state what each costs to run and what breaks when it fails.

The interview loop

RoundWhat it scores
Recruiter screenRole fit and level only
SQL and modellingJoins, window and aggregation logic; grain and keys stated before any schema
Pipeline designLatency, scale and cost targets sized with numbers; partitioning, file format, orchestration and compute each justified
Failure and correctnessIdempotency, replay, deduplication, late data and schema evolution traced path by path
Python codingCorrect, testable transforms and the right data structure for the job
Manager / behaviouralAn incident you owned and a trade-off you reversed with evidence

Check with your recruiter for the actual split and which rounds are on-site.

Five must-know areas

  1. Where the transform runs (ETL vs ELT): what breaks on the wrong side at 1.8 TB and what you lose without raw landing.
  2. Change data capture merged with a snapshot: how two sources of history collapse into one without duplicate versions.
  3. Event time, watermarks and allowed lateness: what a window result claims at each point in time.
  4. Delivery guarantees and idempotent writes: at-least-once delivery, MERGE keys and partition overwrite.
  5. Schema evolution and test ordering: which schema is authoritative and when tests run relative to the commit consumers read.

Numbers and formulas to have ready

Watermark for a bounded out-of-orderness source (labelled example, Flink-style semantics):

W=max⁡(tevent)−BW = \max(t_{event}) - B

With max event time 10:07 and B = 20 min, W = 09:47. Windows ending at or before 09:47 are closed; rows older than that go to a late path.

Operator watermark is the minimum across input partitions, so one silent partition holds every window open:

Wop=min⁡iWiW_{op} = \min_i W_i

Debezium rate from the prompt, as a check on the stream budget:

events/s=40,0003600≈11.1\text{events/s} = \frac{40{,}000}{3600} \approx 11.1

Freshness and lateness are different claims. The 15 min SLA is when a provisional figure lands. Allowed lateness is when the figure stops moving:

tfinal=twindow_end+Lallowedt_{final} = t_{window\_end} + L_{allowed}

With L = 2 h, a 09:00 window is final only after its lateness budget closes. The actual end depends on your watermark bound and is not a fixed number.

Daily volume and file count depend on your row width and compression. Measure bytes per row on a sample; do not quote a default.

files≈data sizetarget file size\text{files} \approx \frac{\text{data size}}{\text{target file size}}

Target file size is a table or platform setting. Name it when you use the formula.

Reference architecture

CDC log 02:00 snapshot OLTP orders DB Kafka topic Raw landing storage Stream job: dedup on order_id and revision Iceberg table: MERGE on order_id Batch reconcile job dbt tests before consumers read Consumers
  • The 02:00 snapshot and the CDC stream both write to the same table with one key, so there is one history.
  • Deduplication happens before MERGE; MERGE happens before the test gate.
  • Raw landing is kept so any window can be replayed.

Strong vs weak answers

TopicStrong answer sounds likeWeak answer sounds like
Transform sideLand raw first, transform in the warehouse; raw stays for replay and the cost is compute on readSpark is faster so it does the transform
Exactly-onceEffectively once: at-least-once delivery plus an idempotent MERGE on order_id and revisionKafka gives us exactly-once
WatermarkMax event 10:07 minus 20 min is 09:47; windows before it are closed and late rows are routed outThe watermark is the current time
Late dataResults are revised for 2 h; later rows go to a quarantine table and reconcile nightlyWe ignore late data
BackfillINSERT OVERWRITE the partition; a rerun produces the same rowsAppend it again and dedupe later
Green DAGGreen means tasks ran; row counts and totals for 2 March are a separate checkThe DAG is green so the data is fine

Interview tips

  1. State the grain and the key before you draw any table.
  2. For every failure, say what the pipeline emits: duplicates, gaps, a stale partition, or nothing.
  3. Put a number on every trade-off: rows per day, bytes per row, minutes of latency.
  4. Name the authoritative schema (registry subject or Git file) before answering questions about evolution.
  5. When a tool comes up, say which property it gives you and what it costs you.

Last-week checklist

  • Redo the watermark and window arithmetic on paper.
  • Trace one order_id through the 02:00 snapshot and the CDC merge across three states.
  • Confirm the Avro compatibility mode your producer team uses.
  • Say two failure traces aloud, end to end.
  • Practise Top 100 questions 1, 4, 11, 13 and 16 aloud, timed.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.