Data Engineer Interview Prep
OverviewA 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
Top 100 Data Engineer Interview Questions and Answers
The questions most likely to actually be asked, ranked by likelihood, with pro-level model answers.104 Q&ATop 100 Data Engineer Practice MCQs
Quick multiple-choice self-checks covering the same high-value ground, with an explanation for every answer.100 MCQsThe 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
| Round | What it scores |
|---|---|
| Recruiter screen | Role fit and level only |
| SQL and modelling | Joins, window and aggregation logic; grain and keys stated before any schema |
| Pipeline design | Latency, scale and cost targets sized with numbers; partitioning, file format, orchestration and compute each justified |
| Failure and correctness | Idempotency, replay, deduplication, late data and schema evolution traced path by path |
| Python coding | Correct, testable transforms and the right data structure for the job |
| Manager / behavioural | An 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
- Where the transform runs (ETL vs ELT): what breaks on the wrong side at 1.8 TB and what you lose without raw landing.
- Change data capture merged with a snapshot: how two sources of history collapse into one without duplicate versions.
- Event time, watermarks and allowed lateness: what a window result claims at each point in time.
- Delivery guarantees and idempotent writes: at-least-once delivery, MERGE keys and partition overwrite.
- 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):
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:
Debezium rate from the prompt, as a check on the stream budget:
Freshness and lateness are different claims. The 15 min SLA is when a provisional figure lands. Allowed lateness is when the figure stops moving:
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.
Target file size is a table or platform setting. Name it when you use the formula.
Reference architecture
- 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
| Topic | Strong answer sounds like | Weak answer sounds like |
|---|---|---|
| Transform side | Land raw first, transform in the warehouse; raw stays for replay and the cost is compute on read | Spark is faster so it does the transform |
| Exactly-once | Effectively once: at-least-once delivery plus an idempotent MERGE on order_id and revision | Kafka gives us exactly-once |
| Watermark | Max event 10:07 minus 20 min is 09:47; windows before it are closed and late rows are routed out | The watermark is the current time |
| Late data | Results are revised for 2 h; later rows go to a quarantine table and reconcile nightly | We ignore late data |
| Backfill | INSERT OVERWRITE the partition; a rerun produces the same rows | Append it again and dedupe later |
| Green DAG | Green means tasks ran; row counts and totals for 2 March are a separate check | The DAG is green so the data is fine |
Interview tips
- State the grain and the key before you draw any table.
- For every failure, say what the pipeline emits: duplicates, gaps, a stale partition, or nothing.
- Put a number on every trade-off: rows per day, bytes per row, minutes of latency.
- Name the authoritative schema (registry subject or Git file) before answering questions about evolution.
- 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.