BetaJobprepping.com is in beta and still under construction. New sign-ups are closed.
Start practising
Data Engineer

How to Prepare for a Data Engineer Interview in 2 Weeks

How to prepare for a data engineer interview in 14 days, with daily SQL sets, pipeline design drills, a story bank, timed mocks and a 3-day crash version.

Updated

How to prepare for a data engineer interview in two weeks: work through four strands, SQL sets, Python transformations on messy records, pipeline design drills spoken aloud and a bank of six true stories, with ten minutes of out-loud practice every day. Take timed mocks of 30, 45 and 60 minutes on Days 1, 7 and 12, and let each scorecard choose the next days' work.

The plan assumes roughly 75 minutes on most days and two hours on the three mock days (Days 1, 7 and 12). Start on a Monday so Days 6, 7, 13 and 14 fall at weekends. It goes deeper than the one-week outline in the data engineer interview guide, which explains the rounds and how they are scored. If your interview is in three days, skip to the compressed 3-day version.

How to prepare for a data engineer interview: what the loop tests#

Most loops have four kinds of round, and the mix decides where your hours go.

  • A SQL and Python screen, often in a plain shared editor with no autocomplete. Some companies fit both languages into a single screen, so speed on standard patterns matters.
  • Pipeline or system design: batch versus streaming, storage layout, orchestration, late data, backfills and quality checks.
  • Data modelling: grain, keys, facts and dimensions, and history that changes. Some loops give modelling a round of its own, where you design tables for a product feature and then query them.
  • Behavioural. Amazon's interview-prep pages on amazon.jobs recommend the STAR method (situation, task, action, result) for framing answers to its Leadership Principle questions, and the structure works well in any behavioural round.

Circle the stack the job description names: dbt, Snowflake and Airflow call for a different emphasis from Kafka, Spark Structured Streaming and Iceberg. Keep one document with four headings: SQL patterns, design prompts, stories and repeated mistakes.

Week 1, find the gaps and build the base#

Day 1, a cold 30-minute mock and a baseline#

Take a 30-minute mock before you revise anything, to see your true starting point. You can practise a timed 30, 45 or 60 minute Data Engineer mock interview on this site; each paper scores pipelines, coding, design, wrangling, SQL, modelling, reliability and communication.

Write down the two weakest skills and one sentence on why. "Froze when asked how a rerun would behave" is useful; "need more SQL" is not. Then list every pipeline you have touched, however small, to feed Day 2.

Day 2, write the story bank#

Behavioural rounds for data engineers reward specific, technical stories. Write six, one for each of these:

  1. A pipeline you designed or rebuilt end to end.
  2. A data quality incident: wrong numbers reached someone before you caught it.
  3. A backfill or migration you ran without breaking downstream users.
  4. A disagreement about freshness, cost or scope with an analyst, product manager or finance team.
  5. A schema change from upstream that you did not see coming.
  6. A time you cut cost or runtime on a slow job.

The story-bank template, which you fill in for each story:

Title:            (five words you will remember under pressure)
Situation:        system, data volume, who depended on it
Task:             what you personally owned, and the deadline
Action:           3 decisions you made, each with the option you rejected
Result:           one number (runtime, cost, rows, hours saved, error rate)
Detection:        how the problem was found, and how fast
What I changed:   the check, alert or test added afterwards
Follow-ups:       2 questions an interviewer will ask, with answers
Fits:             ownership / conflict / failure / ambiguity / impact

The "option you rejected" field is the one most people skip, and it is what makes a story sound like engineering judgement rather than a narration of tasks. Here is one filled in, so you can see the level of detail to aim for:

Title:            Nightly orders job tripled
Situation:        Airflow job loading 40M order rows into Snowflake
                  for finance, 6am SLA
Task:             I owned the job and the fix, due before month-end close
Action:           1. Switched append to partition overwrite (rejected
                     delete-then-insert, which left an empty window)
                  2. Added a dedup step on order_id plus updated_at
                     (rejected DISTINCT, because rows differed by status)
                  3. Moved the partition key from load date to order date
Result:           runtime 94 to 31 minutes, zero duplicate rows over 60 days
Detection:        finance spotted revenue at 3x, a day later
What I changed:   a dbt unique test on order_id and a row-count check
                  against the trailing 7-day average

Keep the uncomfortable detection line; admitting a data consumer found it first makes the story credible.

Day 3, a SQL set on windows and deduplication#

Write ten queries in 60 minutes against invented orders, customers and status events, in PostgreSQL or DuckDB. PostgreSQL topped the Stack Overflow Developer Survey's admired and desired database rankings in 2023, 2024 and 2025, so its syntax is a safe default. Cover:

  • latest row per key with ROW_NUMBER() and a deterministic tie-breaker
  • running totals and seven-day moving averages with explicit window frames
  • first and last event per user with FIRST_VALUE and LAST_VALUE (and why LAST_VALUE needs a frame clause)
  • top N per group
  • month-on-month change with LAG
  • a gaps-and-islands problem, such as consecutive days a user was active

Here is the gaps-and-islands pattern worth having in your fingers:

WITH days AS (
  SELECT DISTINCT user_id, activity_date
  FROM user_activity
),
grouped AS (
  SELECT user_id, activity_date,
         activity_date - (ROW_NUMBER() OVER (
           PARTITION BY user_id ORDER BY activity_date))::int AS streak_key
  FROM days
)
SELECT user_id, MIN(activity_date) AS streak_start,
       MAX(activity_date) AS streak_end, COUNT(*) AS streak_days
FROM grouped
GROUP BY user_id, streak_key;

Say aloud why the DISTINCT is there: two events on one day would break the arithmetic.

Day 4, Python on messy records#

Spend 60 minutes on plain Python, no pandas, since many screens give you a bare editor. Build a function that takes a list of event dictionaries and returns cleaned output:

  • parse timestamps with datetime.fromisoformat, convert everything to UTC once, and reject naive timestamps (before Python 3.11, fromisoformat rejects a trailing Z, as in 2026-03-29T01:30:00Z, so replace it with +00:00 first and say why)
  • deduplicate on a natural key, keeping the latest version by a version field, then by ingestion time
  • skip and count malformed rows instead of raising
  • return results sorted by key and event time

Then write six tests with assert: a duplicate, an out-of-order pair, a missing field, a timestamp with an offset, an empty input, and one daylight saving edge, such as 01:30 on 29 March 2026 in Europe/London, a local time that never existed. Finish by explaining the time complexity in one sentence. Most clean solutions are one pass into a dictionary, then a sort, so O(n log n).

Day 5, build a small idempotent pipeline#

Pull from any paginated public API, land the raw JSON unchanged in a date-partitioned folder, transform it, and load it with a merge so a second run changes nothing. Airflow, Dagster or plain cron is fine; the behaviour matters, not the tooling. The load step:

MERGE INTO dim_product AS t
USING staging_product AS s
  ON t.product_id = s.product_id
WHEN MATCHED AND s.source_updated_at > t.source_updated_at THEN
  UPDATE SET name = s.name, price = s.price,
             source_updated_at = s.source_updated_at
WHEN NOT MATCHED THEN
  INSERT (product_id, name, price, source_updated_at)
  VALUES (s.product_id, s.name, s.price, s.source_updated_at);

Run it twice and check the row count is unchanged. Then insert the same product twice into staging with different timestamps and run again. PostgreSQL 15 and later rejects the statement with "MERGE command cannot affect row a second time", because one target row would be updated twice; other warehouses either error or pick a row unpredictably. Fix it by deduplicating staging first, keeping rows where ROW_NUMBER() OVER (PARTITION BY product_id ORDER BY source_updated_at DESC) = 1, and say this aloud in the interview.

Finally, kill the job halfway, rerun, and note what happened to raw, staging and target. That gives you a real answer to "what if the job fails halfway?", a standard follow-up in pipeline design rounds.

Day 6, rehearse stories and one design drill#

Say each story aloud in two minutes. Record two, listen back and replace every "we" with what you personally decided.

Then do a 25-minute design drill aloud: "Design a daily pipeline loading orders from an operational PostgreSQL database into a warehouse for finance reporting." Use the six-step design structure below. Keep it batch; finance cares about correctness, not seconds of latency. Say how you extract changed rows: an updated_at filter misses hard deletes, change data capture does not.

Day 7, the 45-minute mock and a modelling session#

Take a 45-minute mock. Compare the scorecard with Day 1 skill by skill. Anything that has not moved goes to the top of Week 2.

Then spend 30 minutes on data modelling. Ralph Kimball and Margy Ross's "The Data Warehouse Toolkit" is the standard reference for dimensional modelling. Practise these steps out loud for a business you know, such as a food delivery app:

  1. State the business process (orders delivered).
  2. Declare the grain in one sentence ("one row per order line per delivery").
  3. List the dimensions (customer, restaurant, courier, date, item).
  4. List the facts (quantity, price, discount, delivery minutes).
  5. Decide which dimensions change over time and how you keep history: overwrite (type 1) or new effective-dated rows (type 2).

Then write one analyst query against it; if it double counts, the grain is wrong.

Week 2, pressure, depth and polish#

Day 8, a second SQL set, timed and reviewed#

Repeat Day 3 with harder problems and a stopwatch: eight queries, seven minutes each. Include at least one of each:

  • a join on date ranges, such as matching orders to the price that was valid at the time (order_ts >= valid_from AND order_ts < valid_to)
  • a query that fans out because of a one-to-many join, which you then fix by aggregating before joining
  • sessionisation: new session when the gap between events exceeds 30 minutes
  • a retention cohort: share of users active again in week 1, week 2 and week 4

Then practise reviewing: plant a subtle bug in a Day 3 answer (a LEFT JOIN turned inner by a WHERE clause on the right table), leave it an hour, then find and explain it as if reviewing a pull request.

Day 9, streaming, late data and Spark performance#

Streaming questions are about time, not tools. Revise the vocabulary and be able to explain each with an example:

  • Event time versus processing time. A smart meter buffers readings during a network outage and sends six hours of them at once.
  • Windows. Tumbling, sliding and session windows, and which question each answers.
  • Watermarks. The system's estimate that all events up to time T have arrived, and what happens to events behind it.
  • Delivery guarantees. At-least-once delivery plus an idempotent sink is the usual practical answer; exactly-once is end-to-end and depends on every component.

Chapter 11, "Stream Processing", of Martin Kleppmann's "Designing Data-Intensive Applications" (first edition) is worth a focused hour. Then drill for 20 minutes: "Count page views per article per minute for a live dashboard, where some events arrive more than ten minutes late." Say what the dashboard shows before late data lands, and how a batch job corrects it.

Spend the last 20 minutes on Spark performance. Explain aloud why one task runs for an hour while the other 199 finish in a minute:

  1. Read the stage view in the Spark UI: one task with a huge shuffle read means skew.
  2. Find the hot key, often null or a default such as an "unknown" customer.
  3. Name the fixes: handle nulls separately, broadcast the smaller side of the join, rely on adaptive query execution's skew-join handling (on by default since Spark 3.2), or salt the hot key.

Then explain why 10,000 small columnar files slow every query (per-file overhead and too many tiny tasks) and how compaction, including Delta Lake's or Iceberg's own, fixes it. The data engineer interview questions post has a skew question to test yourself on.

Day 10, reliability, incidents, backfills and a stakeholder call#

Rehearse three invented scenarios aloud, 10 minutes each:

  1. The job succeeded, but one source region contributed zero rows.
  2. An upstream team renamed a column overnight and the job silently wrote nulls.
  3. A bug has inflated a revenue table for six weeks, and finance has already used it.

For each, answer in this order: contain (stop the bleeding, pause downstream jobs or flag the table), diagnose (break counts down by source, region and partition, because a total can look normal while one slice is empty), repair the data as well as the code, communicate (who needs to know, in what words), and prevent (which check would have caught it). Name real checks: row count against a trailing seven-day average per source, null rate per column, freshness, and uniqueness of the primary key. Tools such as dbt tests or Great Expectations implement exactly these, so mention them if you have used them.

For the backfill scenario, rehearse a sentence like: "I would backfill by date partition, oldest first, with overwrite semantics so each partition is safe to rerun, throttle it so it does not starve the daily job, and compare totals before and after for a sample of days."

Finish with one five-minute stakeholder call, aloud. A product manager asks for a real-time dashboard. Ask what decision it drives and how often someone looks at it, propose an hourly batch with a freshness SLA, and state the cost difference. A strong line: "If the team reviews this every morning, an hourly refresh with an alert when it is more than 90 minutes stale gives you the same decision for a fraction of the streaming cost."

Day 11, a full system design rehearsal#

Do one 40-minute design end to end, out loud, on a whiteboard or paper. Pick a prompt that matches the job description, for example: "Ingest clickstream events from a mobile app and a website into a lakehouse, serving hourly product dashboards and a daily machine learning feature table."

Start with a back-of-envelope estimate, because interviewers notice when you size the problem before choosing tools:

Daily events:        50 million
Average event size:  1 KB raw JSON
Raw volume per day:  about 50 GB
Average rate:        50,000,000 / 86,400 = about 580 events per second
Peak (assume 5x):    about 3,000 events per second
Retention 2 years:   about 36 TB raw, much less once stored in a compressed columnar format

That arithmetic tells you a single Kafka topic with a handful of partitions copes easily, and that the harder questions are deduplication, late events, partitioning by event date and keeping file sizes healthy. Finish by naming the two things most likely to break and how you would know.

Day 12, the 60-minute mock#

Take the full 60-minute mock, including the incident, modelling and stakeholder sections, with notes closed. Copy the quoted evidence for every skill still below Hire-ready into your mistakes list, then review for as long as the mock took.

Day 13, targeted repair#

Work only on the weakest two skills from Day 12. Rewrite the answers the scorecard quoted, then redo one drill in each weak area. If communication was flagged, explain a partition overwrite to an imagined finance manager in under a minute, without the words "partition" or "idempotent".

Day 14, light review and questions to ask#

Re-read the story bank and mistakes list; learn nothing new. Prepare three questions only a data engineer would ask:

  • "Who is paged when a table is late, and how often does that happen?"
  • "How do you find out a source schema has changed, before or after the load breaks?"
  • "What share of the team's time goes to new pipelines versus keeping existing ones running?"

A design drill structure for every prompt#

Use the same six steps on every drill so the structure becomes automatic:

  1. Clarify consumers and freshness. Who reads this, how stale can it be, and what decision does it support? Ask before drawing anything.
  2. Size it. Volume per day, peak rate, retention and growth, with arithmetic said aloud.
  3. Land raw data unchanged. Keep an immutable copy so any bug can be replayed.
  4. Transform with explicit keys and grain. Name the deduplication key, the partition column (event date, not arrival date) and the merge rule.
  5. Orchestrate and recover. Retries, idempotent writes, backfills and what happens if a run fails halfway.
  6. Observe. Freshness, completeness and uniqueness checks, owners, and where alerts go.

How to use timed mock interviews#

Each length does a different job.

  • 30 minutes, Day 1: a diagnostic, to find the gap while there is time to close it.
  • 45 minutes, Day 7: a progress check; its fundamentals round exposes vocabulary gaps such as watermarks.
  • 60 minutes, Day 12: a stamina rehearsal. Answers often get vaguer in the last third; this shows whether yours do.

Review for as long as the mock took. Sort each weak moment into a bucket: did not know (study it), could not say it clearly (rehearse aloud), or ran out of time (practise with a timer). When you finish the plan, take a full-length Data Engineer practice interview one more time to confirm the weak areas from Day 12 have moved.

What to practise out loud every day#

Ten minutes a day, separate from the main session:

  • One story from the bank in two minutes, then one follow-up answered cold.
  • One concept explained to an imagined non-engineer: idempotency, a slowly changing dimension, or why a green job can still be wrong.
  • One "what could go wrong" list for any pipeline you use at work: late data, duplicates, schema drift, time zones and daylight saving changes.

On Days 4, 6, 9 and 13, add three timed SQL problems to this block, seven minutes each. With Days 3 and 8, that brings the fortnight to about 30 problems.

For a full set of practice prompts by type, use the data engineer interview questions post. Before you apply, check the things to know before applying for a data engineer job, which covers the role itself rather than the interview.

Should you get a certification before the interview?#

No, not inside this fortnight; it helps most when you are changing fields or the posting names a cloud. Per each provider's official exam page:

  • AWS Certified Data Engineer, Associate (DEA-C01): 65 questions in 130 minutes, 150 US dollars.
  • Google Cloud Professional Data Engineer: two hours, 40 to 50 multiple-choice and multiple-select questions, 200 US dollars.
  • Databricks Certified Data Engineer Associate: 45 scored questions in 90 minutes, 200 US dollars.

If you already hold one, tie each exam domain to a real project in your story bank.

What the day before and the morning of should look like#

The day before#

  • Map each tool in the job description to one sentence about where you used it.
  • Read your six story titles and result numbers only.
  • Do one easy SQL warm-up, such as top N per group.
  • If remote, test a shared editor such as CoderPad, and keep paper for estimates.

The morning of#

  • Do one five-minute warm-up query and explain it aloud.
  • Write the six design steps and the incident order (contain, diagnose, repair, communicate, prevent) on a sticky note.
  • Open every technical prompt with one clarifying question. For a design prompt: "Who reads this table, and how stale can it be before it changes a decision?" For a SQL prompt: "Can a key appear twice with the same timestamp?"

The compressed 3-day plan#

If your interview is in three days, cut breadth and keep the mocks.

Crash day 1, baseline and stories#

Take a 30-minute mock. Write three stories only (a pipeline you owned, an incident, a disagreement) using the template above. Do a 30-minute SQL set covering ROW_NUMBER deduplication, window frames and one date-range join.

Crash day 2, design and code#

Do one 30-minute design drill out loud using the six steps, including a sizing estimate. Then do one Python cleaning problem with tests, and rehearse the "job failed halfway" answer, including the duplicate-staging-row MERGE trap, until it takes under a minute.

Crash day 3, rehearse and rest#

Take a 45-minute mock in the morning. Fix the single weakest answer it flags. Prepare your three questions for the interviewer, then stop.

Frequently asked questions#

How long does it take to prepare for a data engineer interview?#

Two weeks of daily practice is enough for most working engineers who already write SQL and Python. If you are changing roles, or have not done system design before, allow three to four weeks and repeat the design and modelling days. Three days works only if you are already interviewing and use the time for mocks, stories and SQL, not new topics.

What should I study first for a data engineer interview?#

Start with SQL window functions and deduplication, because SQL usually appears in the first screen and failing it ends the loop early. Then move to Python transformations on messy records, then pipeline design covering idempotent loads, late data and backfills. Leave certifications and new tools until after the interview, since depth on fundamentals is scored more than breadth.

How many SQL questions should I practise before a data engineer interview?#

About 30 well-chosen problems over two weeks is enough, provided they cover the core patterns: latest row per key, window frames, top N per group, gaps and islands, date-range joins, sessionisation and retention cohorts. This plan reaches that number through two timed sets and short daily blocks. Timing matters more than volume, so aim to write a standard pattern in under seven minutes while explaining your choices aloud.

What project should I build to prepare for a data engineering interview?#

Build a small pipeline that pulls from a paginated API, lands the raw data unchanged, transforms it and loads it with a merge so a rerun produces the same result. Then break it deliberately by killing a run halfway and by loading duplicate staging rows. Being able to describe what happened, and how you fixed it, gives you a concrete answer for design and behavioural rounds.

How do I prepare stories for a data engineer behavioural interview?#

Write six stories with the STAR structure: a pipeline you built, a data quality incident, a backfill or migration, a disagreement over freshness or cost, an unexpected schema change and a performance fix. For each, record the option you rejected, one result number and how the problem was detected. Rehearse them aloud in two minutes each, then answer follow-ups without notes.

Read next

GuideData Engineer

Data Engineer Interview Guide with Questions and Prep Plan

How the data engineer interview works, the pipeline design, coding and SQL skills it scores, 9 practice questions with strong-answer notes and a 7-day plan.

ChecklistData Engineer

16 Things to Know Before Applying for a Data Engineer Job

What to know before applying for a Data Engineer job - the real daily work, must-have skills, certifications, pay data, job-ad red flags and a readiness check.

QuestionsData Engineer

28 Data Engineer Interview Questions with Answers

28 Data Engineer interview questions on SQL, Python, pipeline design, modelling and incidents, each with a strong answer, a weak one and the follow-up.

Practice

Say it out loud.

Reading about an interview isn't the same as doing one. Take a 30, 45 or 60-minute Data Engineer interview with an AI interviewer and get scored against a real rubric.

Choose an interview