144 Data Pipeline Interview Questions for Data Engineers

20 real pipeline design questions from data engineer loops, 1 per company: Amazon, Netflix, Google, Disney, PayPal, Fidelity, Walmart, HelloFresh, and 12 more. Each sits on the live design canvas with a worked deep dive and the guarantee the design turns on.

Last updated: Proudly published by: Jeff WahlVerified against 144 live pipeline design problems

The pipeline design round hands you a concrete scenario, billions of events a day, a freshness SLA, a consumer that cannot tolerate double-counting, and expects the end-to-end system on a whiteboard. The boxes matter less than whether you reason out loud about durability, replay, idempotency, and what happens when the upstream dies on a holiday. These are 20 real questions from reported data engineer loops, 1 per company across Amazon, Netflix, Google, Disney, PayPal, Fidelity, Walmart, HelloFresh, Epic, dbt Labs, and 10 more, ordered easy to hard.

Design them here on the same canvas the round mirrors, or open any question's full problem page for the worked deep dive. The full catalog of 144 pipeline problems continues from there.

20
questions solved on this page
144
pipeline problems in the full catalog
20
companies, 1 question each
297
employers tagged across the catalog

What actually comes up in pipeline design interviews

Computed from the 144 pipeline design problems tagged by concept in our catalog, across the 36 employers they were reported from. Percentages are the share of those problems using each concept, so they overlap: a single question usually pulls in three or four at once.

ConceptShare of problemsEmployersWhat comes up
Idempotency95% (137)34Making a re-run produce the same result — the property every incremental pipeline question hinges on.
Data quality checks90% (129)32Assertions that fail a run loudly instead of publishing bad rows downstream.
Monitoring and alerting85% (122)32Freshness, volume, and distribution alerts that catch a silent failure.
Partitioning strategy85% (122)30Partition columns that make backfills and partition pruning cheap.
Retries and failure handling75% (108)31Exponential backoff, dead-letter queues, and retries that do not duplicate writes.
Deduplication73% (105)27Exactly-once semantics on an at-least-once transport.
Full vs incremental loads72% (104)29Watermarks, high-water marks, and when a full refresh is the cheaper answer.
DAG orchestration65% (94)24Task dependencies, scheduling, and backfill semantics in Airflow or Dagster.
Late-arriving data62% (89)24Watermarks and grace periods for events that land after their window closed.
Batch vs streaming61% (88)26Choosing between them on latency requirements, not on fashion.
Schema evolution53% (76)18Additive changes, backward compatibility, and the contract with producers.
ELT vs ETL and medallion layers49% (70)17Transforming in the warehouse vs before it, and what each layer guarantees.
Backfills35% (50)9Reprocessing history without double-counting or taking the cluster down.
Data skew26% (37)15One hot key stalling a distributed job at 99%.
Change data capture (CDC)20% (29)3Log-based replication and why it beats polling a source table.

Concept tags come from the same catalog that powers the practice problems, so this table moves as the catalog grows. Counts recomputed hourly.

The decisions pipeline design rounds are won on

6 decisions cover most rounds. Each maps to questions on this page.

DecisionThe senior answerOn this page
Batch, streaming, or bothName which consumer needs which clock; split at the logQuestions 2, 3, 7, 11, 18
Exactly-once versus at-least-onceIdempotent keyed writes, dedup by event id, stated guarantees per consumerQuestions 13, 14, 18
Raw versus curated layersImmutable raw, rebuildable curated; ELT when requirements churnQuestions 1, 8
Late and re-arriving dataLocked attribution, restatement windows, completeness signals over cronQuestions 6, 12, 16
Failure and replayRetry with backoff, quarantine paths, idempotent reruns by constructionQuestions 4, 9, 10, 19
Hot keys and spikesA log in front, partition-key design, skew handled explicitlyQuestions 5, 6

Easy pipeline design interview questions

The warm-up: one clean architecture call, stated with its tradeoff.

Snap logo

1. Disappearing Ink

Asked in a Data Engineer interview by SnapEasy~20 minFull problem page
Task

We run a photo and video messaging app where about 10 billion engagement events land every day: opens, replays, story views, ad views. A dozen analytics teams each want the data shaped differently and their needs keep changing, so we cannot lock every transformation in before the data is stored. Design a pipeline that lands the raw events cheaply and rebuilds the curated tables those teams read on a daily schedule, gating the publish on a quality check so bad data never reaches them and paging on-call when a run is late or fails.

Business Requirements

  • Our teams keep changing what they want from the data, so we do not want to decide the final shape before we even store it.
  • A dozen teams each read the data differently and I do not want one team's change to break another's.
  • When a day's data is malformed I do not want the analysts to be the ones who discover it.
  • This has to run every day on its own and page someone when it does not.
Show the solution

Intermediate pipeline design interview questions

The core of the round: dual-clock consumers, quality gates, skewed builds, unreliable upstreams, and spiky ingestion.

Google logo

2. Fresh and Forever

Asked in a Data Engineer interview by GoogleMedium~30 minFull problem page
Task

We run an event platform that ingests roughly 5 billion user-interaction events a day, and two groups depend on it: an operations team that watches live dashboards where a delay past a few seconds is useless, and analysts who run ad-hoc queries across years of history. Design a pipeline that serves both audiences, keeps the live view within seconds, and keeps per-event counts correct when events arrive late or duplicated.

Business Requirements

  • Operations needs the live dashboard to reflect what is happening within a few seconds; anything slower and we are reacting to the past.
  • Analysts run ad-hoc queries going back years and cannot be limited to a short retention window.
  • Our counts have to be right even when events show up late or get sent twice; finance and ops both trust these numbers.
Show the solution
TikTok logo

3. Seconds to Trend

Asked in a Data Engineer interview by TikTokMedium~30 minFull problem page
Task

We run a short-video platform where roughly 5 billion engagement events a day (views, likes, watch-time pings) come off the apps. The trending team needs the hottest videos surfaced within seconds of a spike, while the growth team reports daily active users and 7-day retention on a T+1 cadence from the same events. Design the pipeline that serves both consumers without paying to stream everything.

Business Requirements

  • When a video starts spiking, the trending team wants it on the surface within seconds, not on tomorrow's report.
  • Growth reports daily active users and 7-day retention once a day and needs the counts to be exact.
  • Finance flagged that streaming the full firehose for every consumer is expensive; only the consumers that need seconds should pay for it.
Show the solution
Shopify logo

4. The Revenue That Was Wrong for Two Weeks

Asked in a Data Engineer interview by ShopifyMedium~25 minFull problem page
Task

Our transformation layer has grown to over 200 models, and we're seeing silent data quality failures slip into production reports. The data team wants a pipeline design that enforces quality gates, prevents bad models from promoting downstream, and gives analysts confidence in the output. Design the pipeline.

Business Requirements

  • Revenue was double-counted for two weeks before anyone noticed; bad data has been quietly reaching production reports.
  • Business consumes the mart at 7am every morning; the nightly run has to finish in time.
  • Order data carries customer email and shipping address; analysts can't see those fields in the mart.
Show the solution
HubSpot logo

5. Two Hundred Million Redirects

Asked in a Data Engineer interview by HubSpotMedium~25 minFull problem page
Task

Our link shortener does about 200 million redirects a day. Every redirect fires a click event and we need to serve two consumers from that stream: a real-time dashboard that shows per-link clicks within the last hour, and a nightly batch aggregate that powers the analytics API for date-range queries. Traffic is very spiky and some links go viral. Design the pipeline.

Business Requirements

  • Link creators check their dashboard right after sharing and need clicks visible within roughly a minute; perceived lag is a top support complaint.
  • The analytics API serves single-link lookups and date-range scans for an account; today the flat layout makes both slow.
Show the solution
Citi logo

6. Every Version of You

Asked in a Data Engineer interview by CitiMedium~25 minFull problem page
Task

A retail bank rebuilds its customer dimension every night from a 400M-row account-state extract, and analysts need every change to an account preserved as its own dated version rather than overwritten. The build has to finish before the 7am reporting window even though a few corporate accounts each generate millions of change records, and it can only start once the upstream extract job signals it has landed. Lately the run has been blowing past 7am on nights when those heavy accounts churn.

Business Requirements

  • Analysts need to see what an account looked like on any past date, so every change has to become its own dated version instead of overwriting the row.
  • A handful of corporate accounts generate millions of change records each, and the run drags on the nights they churn.
  • The merge must not start until the upstream account-state extract has finished landing.
  • The dimension has to be published before the 7am reporting window, every night.
  • A failed or re-run night should not duplicate versions or corrupt the history.
Show the solution
Autodesk logo

7. Seconds and Months

Asked in a Data Engineer interview by AutodeskMedium~30 minFull problem page
Task

We run a cloud platform for design and engineering software, and every desktop and browser session emits telemetry (documents opened, features used, render jobs, license checks) at roughly 2 billion events a day. Two groups consume that one stream on very different clocks: the licensing team enforces concurrent-seat limits and shows collaboration presence within seconds, while finance bills customers monthly on metered feature usage and the product org builds adoption reports on a daily cadence. The metered-usage figures land on invoices, so each billable event has to be counted once and only once.

Business Requirements

  • Licensing here. If a customer is over their concurrent-seat limit, we need to know within a few seconds, and presence in a shared document has to feel live.
  • Finance here. Metered feature usage goes straight onto the monthly invoice, so a duplicated or dropped event is a billing error a customer will dispute.
  • Product analytics here. We look at feature adoption day over day; we do not need it to the second, we need it correct and queryable.
  • Platform here. There is one firehose of telemetry; do not stand up a second collection path just for finance.
Show the solution
Peloton logo

8. Every Device Has Its Own Dialect

Asked in a Data Engineer interview by PelotonMedium~25 minFull problem page
Task

Our fitness platform receives workout and health events from connected devices, a mobile app, and third-party integrations. Events arrive in multiple formats at different cadences, with different schema versions across device firmware generations. Design the ingestion pipeline that normalizes these into a unified event store.

Business Requirements

  • During a live workout, real-time feedback features need device events almost immediately; mobile and partner sources can wait longer.
  • Some users are on older firmware that doesn't have the newer fields; rolling out new devices can't break anything for the older ones.
  • Users complete workouts in airplane mode and the events upload hours later; the workout has to be reported under when they actually did it.
Show the solution
Jump Trading logo

9. The Provider That Sometimes Sleeps

Asked in a Data Engineer interview by Jump TradingMedium~25 minFull problem page
Task

Our quantitative research team runs pre-market models each morning on the prior day's price and volume data, pulled daily from a paid external provider whose manual pull process has already cost us missed trading sessions. The provider bills per request and goes dark for hours at a time, and our licensing terms require every raw file we receive to be kept unchanged for audit. Design an automated ingestion pipeline that lands the data on time, keeps every raw file for audit, rides out the provider's outages without draining the paid request budget, and gets a failed or late pull in front of the team before the quants hit it at model-run time.

Business Requirements

  • Quants run pre-market models each morning and depend on the prior day's data being present before they start; a missed session has already broken a model run, so a failed or late pull has to page the team automatically, not be discovered at model-run time.
  • The provider charges per request and has multi-hour outages a few times a year; a naive script burns the daily budget on blind retries before the outage resolves, so the pull and its retry logic have to be owned by an orchestrator sitting on the pull path.
  • Our licensing agreement requires raw files be retained for audit and never modified or deleted after ingestion, so the raw landing zone has to be a durable store distinct from the downstream transformed research database.
Show the solution
Walmart logo

10. 4,500 Stores Before Sunrise

Asked in a Data Engineer interview by WalmartMedium~25 minFull problem page
Task

Every night, 4,500 stores each upload a CSV of current inventory to S3. The replenishment team needs clean, validated data in the warehouse by 7 AM. Some files arrive late, some are malformed, and re-runs have been producing duplicates. Design the pipeline.

Business Requirements

  • Replenishment opens dashboards at 7am every day; clean validated inventory across all stores has to be in the warehouse by then.
  • The pipeline has been re-run multiple times this month and each rerun has been creating duplicates in the warehouse.
  • A few stores send malformed or oversized files; one bad file can't take down the load for the other 4,500.
Show the solution
Epic logo

11. The Early Warning

Asked in a Data Engineer interview by EpicMedium~30 minFull problem page
Task

A hospital network ingests millions of vital-sign and clinical events a day from bedside monitors and EHR systems. Clinicians need patient-deterioration alerts at the nursing station within seconds of a reading crossing a threshold, while the compliance and analytics teams need every event landed exactly once for the regulatory reporting that runs the next morning. Design the pipeline that serves both.

Business Requirements

  • When a patient's vitals cross a deterioration threshold, the charge nurse needs to know within seconds, not at the next shift change.
  • Compliance reporting has to account for every clinical event exactly once; a duplicated or dropped event is an audit finding.
  • The feed runs into the millions of events a day and spikes during rounds; the pipeline can't drop events under load.
Show the solution
S&P Global logo

12. Six Hours to Miss a Deadline

Asked in a Data Engineer interview by S&P GlobalMedium~25 minFull problem page
Task

We process financial data for credit risk models and regulatory reporting. Our current warehouse pipeline runs nightly full refreshes that take over six hours and frequently miss the 5am SLA. The data engineering team has been asked to redesign the pipeline using an incremental strategy, but there are concerns about correctness for slowly changing source data. Design the pipeline.

Business Requirements

  • The trading desk reads the morning risk reports at 5am every business day; today's six-hour rebuild misses the deadline.
  • An incremental loader can quietly miss records and the warehouse drifts from the source without an error; the team needs a routine reconciliation that catches drift first.
  • Source systems sometimes restate historical credit ratings; we have to apply those corrections without rebuilding the full history.
Show the solution

Advanced pipeline design interview questions

The senior tier: exactly-once ledgers beside live views, multi-region consolidation, and simulation platforms, each hinging on a guarantee you state before it is questioned.

Amazon logo

13. The Ledger and the Live Wire

Asked in a Data Engineer interview by AmazonHard~30 minFull problem page
Task

We run an online retail marketplace that emits about 2 billion order and refund events a day across 300 million listings. Seller-facing inventory and sales dashboards have to reflect a purchase within seconds, while finance needs an exactly-once daily profit-per-product number that stays correct even when refunds land days after the original order. Data science also wants the full raw event history retained for model training.

Show the solution
Fidelity Investments logo

14. Counted Once, Remembered Forever

Asked in a Data Engineer interview by Fidelity InvestmentsHard~20 minFull problem page
Task

A retail brokerage processes about 50 million trade executions a day across 12 million accounts, and the risk desk needs account positions updated within seconds so it can freeze accounts that breach exposure limits while the market is still open. The same execution events feed an end-of-day regulatory report where every trade must be counted exactly once, and that report has to be reproducible byte-for-byte months later when an auditor asks what was filed. Design the pipeline that serves both consumers.

Business Requirements

  • The risk desk says it cannot wait for an overnight job. If an account blows through its exposure limit at 11am, they need to see it and freeze the account within seconds, not the next morning.
  • Compliance says the regulatory report must count every execution once and only once. A duplicate or a dropped trade in the filing is a reportable error.
  • When an auditor asks six months later what we filed on a given day, we have to reproduce that exact report from the underlying data, not approximate it from today's state.
Show the solution
Netflix logo

15. The What-If Machine

Asked in a Data Engineer interview by NetflixHard~25 minFull problem page
Task

We run an ads platform and want to build a simulation system that matches ad inventory (slots) against ad campaigns to answer what-if questions about fill rates, reach, and frequency. Users should be able to configure a simulation, submit it, and explore the results later. A single configuration might run up to 1,000 simulations. Design the data pipeline behind this system.

Business Requirements

  • A configuration's variants have to be comparable in the same working session, not the next day.
  • Losing a whole configuration's worth of work just because one variant blew up isn't acceptable.
  • A submitted configuration runs in the background; the caller shouldn't have to keep a browser tab open while it runs.
Show the solution
PayPal logo

16. Three Regions, One Report

Asked in a Data Engineer interview by PayPalHard~25 minFull problem page
Task

A fintech company processes billions of payment transactions per day across three regions: US, EU, and APAC. Each region writes raw payment logs to its own object storage bucket. The data team needs a batch pipeline that runs daily, ingests the previous day's logs from all regions, deduplicates events, aggregates to a merchant-level summary table, and makes results available for global reporting by 6 AM UTC. Design this pipeline.

Business Requirements

  • Global reporting needs the consolidated merchant summary every morning by 6am UTC; missing it has been happening too often.
  • Finance reconciles against the payment gateway and today the numbers never match because we drop or duplicate events.
  • When one region's data lands late, the other regions still need to make progress; today everything waits for the slowest.
  • When something fails partway through, operators rerun the day, and the rerun has to produce the same numbers, not different ones.
Show the solution
Farfetch logo

17. The Boutique That Sold in Six Currencies

Asked in a Data Engineer interview by FarfetchHard~30 minFull problem page
Task

Your luxury marketplace processes sales events from thousands of seller boutiques across multiple countries and currencies. Each sale must be attributed to the selling boutique in real time, normalized to a common currency, and stored in a compliant data lake that protects buyer identity. Design the pipeline.

Business Requirements

  • Boutique owners watch their revenue in real time during the day; a sale has to show up within roughly a minute.
  • The dashboard uses live FX rates while finance reconciles using end-of-day official rates; each sale has to carry both so neither consumer reprocesses history.
  • Buyer identity is regulated; deletion has to complete within the regulatory window, but historical sale amounts and boutique attribution should remain.
Show the solution
The Walt Disney Company logo

18. The Same Stream Twice

Asked in a Data Engineer interview by The Walt Disney CompanyHard~30 minFull problem page
Task

A global streaming-video platform collects about 2 billion playback heartbeat events a day from 150 million subscribers, and two teams read the same feed: reliability needs rebuffering spikes per title and region surfaced within seconds so on-call can be paged, while finance pays studios royalties on exact minutes-watched and cannot tolerate a single double-counted or dropped event. Design the pipeline so both teams consume the same durable ingest independently, with the live alerting path running approximate and fast while the daily royalty report counts each raw event exactly once instead of reusing the live aggregation. Keep a malformed heartbeat from a bad device build from stalling the live path.

Business Requirements

  • When a title starts rebuffering in a region, I need on-call paged within seconds, not in tomorrow's report.
  • We pay studios on exact minutes-watched, so the daily total cannot double-count a retried event or drop one that slipped a window.
  • A buggy device firmware release once sent malformed heartbeats and took our whole pipeline down; that can never block live alerting again.
  • I don't want two separate collection paths drifting apart; both teams should be reading the same source of truth, each on their own offsets.
Show the solution
dbt Labs logo

19. The Migration That Cannot Break Morning

Asked in a Data Engineer interview by dbt LabsHard~30 minFull problem page
Task

Our data platform has grown on-premises over many years. The business has decided to migrate everything to the cloud, and there are over 60 production pipelines with complex inter-pipeline dependencies. Design the migration architecture.

Business Requirements

  • Business reports run at 6am every weekday; the migration cannot miss a single morning report, and any high-risk change happens on weekends.
  • Many DAGs read outputs from other DAGs; migrating an upstream before its downstream is migrated breaks consumers.
  • If a migrated pipeline misbehaves after cutover, that one has to revert to on-prem within hours without affecting any others.
Show the solution
HelloFresh logo

20. Two Million Boxes by Monday Morning

Asked in a Data Engineer interview by HelloFreshHard~35 minFull problem page
Task

We ship weekly meal-kit boxes to subscribers across multiple countries. Orders are placed online, fulfilled through regional warehouses, and delivered via third-party carriers. The analytics team needs a warehouse that tracks subscription performance, delivery rates, ingredient waste, and weekly cohort behavior. Design the pipeline and warehouse model.

Business Requirements

  • The weekly business review runs Monday morning and analytics needs prior-week data ready by 7am; pipeline failures have to alert on-call by 5am Monday.
  • Carriers confirm delivery a day or two after the box arrives; the warehouse has to update delivery status when late data lands without rebuilding the fact table.
  • EU subscriber name and address are PII under GDPR; tokenization has to happen before any record reaches the analytics warehouse.
Show the solution

Rapid-fire pipeline concept questions

The verbal layer of the round. Each has a 2-sentence answer and a follow-up behind it.

Batch versus streaming: how do you decide?

By the consumer's clock, not the technology's appeal. Seconds-fresh dashboards and enforcement need a stream; daily reports and backfills want batch, which is cheaper, simpler, and restates cleanly. Most real answers are both, split at an immutable log, with the batch path as the source of corrected truth.

What does idempotency mean in a pipeline, concretely?

Re-running yesterday today produces the same result. Mechanically: writes keyed on a natural or event id with merge semantics, no blind appends, no counters incremented on consume. It is the property that turns retries, replays, and backfills from incidents into routine operations.

Exactly-once: real or marketing?

Real as an end-to-end outcome, not as a transport guarantee. Delivery is at-least-once almost everywhere; exactly-once output is composed from replayable sources, deterministic processing, and idempotent or transactional sinks. Saying that composition is the interview answer; claiming a broker does it for you is the trap.

Where does the watermark fit, and what does it bound?

A watermark is the pipeline's declaration of how late it will wait for event-time stragglers. It bounds streaming state (dedup and window buffers can be dropped past it) and defines when a window can close. Without one, exactly-once dedup state grows forever, which is the follow-up it exists to answer.

Why do interviewers keep asking about backfills?

Because backfills expose every weak joint at once: mutable raw data, non-idempotent writes, hardcoded dates, aggregates with no restatement policy. If your design answers 'rerun the last 30 days' with 'run the same jobs with different parameters', the architecture is sound.

Completeness signals versus cron: what is the difference?

Cron assumes the data is ready; a completeness signal proves it. Upstream writes a manifest or success marker per partition, and downstream triggers on it. Every consolidation question, like the multi-region one on this page, is quietly a completeness-signal question.

What is a dead-letter queue for, and what goes wrong without one?

Events that fail parsing or validation route to a quarantine with enough context to replay them after a fix. Without one you choose between halting the pipeline on one bad record and silently dropping it; both are wrong answers in a round. Mention the replay path, not just the queue.

How do you keep a raw layer trustworthy?

Immutable and append-only, exactly as received, with the schema it arrived in. Normalization happens beside it, never over it. The raw layer is what makes every downstream mistake recoverable, which is why audit-heavy prompts, like the trading-data one here, make immutability an explicit requirement.

How do you make a SQL data pipeline idempotent?

Make the write replace a deterministic slice rather than append to it. In practice that is a MERGE keyed on the business key, or a delete-then-insert scoped to the partition being rebuilt, both inside one transaction so a mid-run failure leaves nothing half-applied. The anti-pattern is a bare INSERT on the retry path: the first partial run leaves rows behind and the retry doubles them.

What is the difference between ETL and ELT?

ETL transforms before loading, so the warehouse only ever sees modeled data, which suited expensive warehouses with limited compute. ELT loads raw first and transforms inside the warehouse, which is the modern default because cloud warehouses separate storage from compute and because keeping the raw layer makes every transformation replayable. The tradeoff is governance: raw data in the warehouse still needs access control.

What is change data capture and why use it over polling?

CDC reads the source database's write-ahead log to stream inserts, updates, and deletes as they commit. Polling with a query on updated_at misses hard deletes entirely, misses intermediate states between polls, and puts read load on the production database. CDC captures every change in order with near-zero source impact, at the cost of operating a connector and handling schema changes in the log.

How do you handle schema evolution?

Treat the schema as a contract. Additive changes such as a new nullable column are backward compatible and can flow through automatically. Breaking changes such as a type change, a rename, or a dropped field need a version and a migration window where both shapes are accepted. A schema registry with compatibility checks enforces this at the producer, which is far better than discovering it when the consumer fails.

How do you detect and mitigate data skew in a distributed job?

Detect it by counting rows per join key and by looking for a task whose runtime and shuffle bytes dwarf the median. Mitigate by broadcasting the small side to remove the shuffle, by salting the hot key with a random suffix and re-aggregating after the join, or by isolating the hot keys into a separate job. Adding executors does not help: one key still lands on one task.

What is partition pruning and how do you design for it?

Pruning is the engine skipping partitions that cannot satisfy the query's filter, turning a full-table scan into a read of one day. To get it, partition on the column queries actually filter on, usually event date, and keep the filter a direct comparison against a literal or bound parameter. Wrapping the partition column in a function or casting it defeats pruning silently.

What are the data quality checks you would add to a pipeline?

Four families: freshness (did data arrive in the window), volume (is the row count within expected bounds against history), schema (are the columns and types what the contract promised), and distribution (did null rates, cardinality, or a key metric move beyond a threshold). Each should fail the run rather than warn, because a warning nobody reads is the same as no check.

How do you monitor a pipeline, and what do you alert on?

Alert on the SLA the consumer cares about, not on task success. A job that succeeds while producing zero rows is the failure worth paging for. Practical set: freshness against the promised delivery time, row-count deviation from the trailing baseline, quality check failures, and end-to-end latency for streaming. Everything else is a dashboard, not a page.

What is the difference between at-least-once, at-most-once, and exactly-once?

At-most-once may drop messages and never duplicates them. At-least-once never drops but may duplicate, which is what most transports actually give you. Exactly-once is the effect you engineer on top of at-least-once by making the sink idempotent or transactional, so replaying a duplicate is a no-op. Saying that exactly-once is an end-to-end property rather than a transport setting is the senior answer.

How do you design a backfill that will not take production down?

Make it partition-scoped and idempotent so each unit can be retried alone, run it on separate compute or with a concurrency cap so it does not starve the scheduled load, and process in chronological chunks with checkpointing so a failure resumes rather than restarts. Then verify against the same quality checks the incremental path uses before publishing.

How do you build a Slowly Changing Dimension Type 2 load in a pipeline?

Compare each incoming row against the current version for that natural key. Unchanged rows are skipped; changed rows close the existing version by setting valid_to and clearing the is_current flag, then insert a new version with a fresh surrogate key and valid_from at the change time. Both writes belong in one transaction, and the whole step should be a MERGE keyed on the natural key so a re-run is idempotent rather than duplicating history.

What is orchestration, and what does a DAG give you over cron?

Cron fires on a clock and knows nothing about whether the upstream data arrived. A DAG expresses dependencies, so a task runs when its inputs are actually ready, and it gives you retries with backoff, backfill over a date range, per-task SLAs, and a visible failure surface. The interview point is that the DAG encodes completeness, and a schedule alone only encodes hope.

Getting interview-ready on pipeline design

Four capabilities pipeline rounds turn on, roughly in the order worth building them. For engineers who operate pipelines but have not designed one under a clock.

  1. 01

    Speak the vocabulary of guarantees

    Delivery semantics, idempotency, watermarks, completeness signals, restatement. Not as definitions but as answers: for each, know the failure it prevents and the question it settles. This vocabulary is what the round is conducted in.

    • For every term, know the one-sentence failure story it prevents.
    • State guarantees per consumer, not per pipeline.
  2. 02

    Own the dual-clock pattern

    Most reported questions are one shape: billions of events, one consumer needing seconds, another needing correct history. Work it through several domains until the split-at-the-log answer with batch-as-truth comes without thinking.

    • Always name which view is authoritative and how the other reconciles to it.
    • Give the cost reason out loud: streaming everything is the expensive wrong answer.
  3. 03

    Design the recovery path

    Take any design and break it: upstream dark for 6 hours, a bad deploy corrupting 2 weeks of aggregates, a region arriving late, a viral hot key. Work the recovery until a backfill answer takes one sentence.

    • Every recovery answer should contain the word idempotent, or explain why not.
    • Do the deadline math out loud, working backward from the SLA.
  4. 04

    Defend a design under pushback

    40-minute blank-page rounds where a requirement changes midway. Scope, draw the core path, name the guarantees, then absorb the change as an amendment. What survives the round is the reasoning you said out loud, not the diagram you left behind.

    • Open by restating scale, freshness, and correctness needs as numbers.
    • Close by naming the one component you would swap at 10x scale.

The mistakes that fail pipeline rounds

From reported debriefs, these are the recurring failure modes, not missing product names.

Technology bingo before requirements

Kafka-Flink-Iceberg-dbt recited before scale, freshness, and correctness needs are stated. Interviewers read it as evasion. Numbers first, names later, and only the names the requirements earn.

Streaming everything

One consumer needs seconds, so the whole pipeline goes streaming, tripling cost and complexity for reports that read yesterday. Split at the log; let batch carry what batch carries better.

No answer for the replayed day

If re-running yesterday double-counts revenue, the design fails the round in one question. Idempotent writes and a stated restatement window are the insurance; say them before they are asked.

Cron where a signal belongs

A 2am job that assumes upstream finished is an outage on a delay. Completeness markers and dependency triggers are the grown-up answer, and the SCD-build question on this page turns on exactly this.

Ignoring the hot key

Viral links, whale accounts, the internal merchant: every real stream has one. If the partition key design does not mention skew, the follow-up will.

Compliance as an afterthought

Audit retention, PII zones, and re-identification controls are pipeline stages, not policy documents. Prompts that mention regulators or buyers expect them drawn, not promised.

How the pipeline design round runs

The prompt arrives with numbers in it: events per day, an SLA, a consumer with a correctness requirement. The first move that separates candidates is restating those numbers and adding the ones the prompt left out: peak versus average, event size, how late data can arrive. Designing to stated-plus-clarified requirements is the rubric's first row.

The middle of the round is the core path: ingestion, the log, the split into serving paths, storage layers, orchestration. Senior candidates annotate guarantees as they draw, this path is at-least-once with idempotent sinks, this report restates for 48 hours, and that narration is worth more than any specific vendor choice.

The last third is sabotage: the interviewer breaks something and watches. An upstream goes dark, a region is late, finance disputes a number. Designs built on an immutable log with idempotent, signal-triggered consumers absorb these questions with one-sentence answers, which is why those properties belong in any design you present.

Prepare for the interview
01 / Open invite
02min.

Know the patterns before the interviewer asks them.

a system design query, the same shape a screen would give you.
The diff against expected. Where ties broke. What you missed.
sandbox
1source → bronze → silver → gold
2 ingest : CDC + Kafka
3 transform : dbt + Airflow
4 serve : Snowflake
5
Execute your solution0.4s avg.
PayPalInterview question
Solve a problem

Data pipeline interview questions: FAQ

Are these pipeline design questions from real interviews?+
Yes. Questions come from interview reports submitted by data engineer candidates, rebuilt as canvas challenges with the scale numbers and constraints the reports described. The company on each question names the employer it was reported from.
How often do data engineer loops include a system design round?+
Around 30% of loops overall, and most loops at senior and above. Junior candidates who get one are usually being probed for growth headroom; the bar there is reasoning hygiene, not completeness.
Do I need to name specific technologies?+
Component roles matter more than brand names: a durable log, an object store, a stream processor, an orchestrator. Name specific technologies when you know them well enough to defend their tradeoffs, because the follow-up will test exactly that depth.
What is the highest-yield pattern to rehearse?+
The dual-clock shape: one event stream, one consumer needing seconds, one needing correct history. It is the skeleton of most reported questions, including 4 on this page, and the split-at-the-log answer with batch as the source of truth transfers everywhere.
How do I practice a whiteboard design round alone?+
The canvas under each question is the same medium, with the requirements checked structurally. The part to rehearse out loud is the narration: guarantees per path, failure recovery, and the deadline math. Recording one session exposes the silent stretches immediately.
How is this different from software engineering system design?+
The emphasis shifts from serving latency and API design toward data correctness over time: replay, late arrivals, restatement, audit. A load balancer diagram earns nothing; a restatement policy earns a lot. Preparing from software-engineering materials alone misses that half.
What does a strong opening two minutes look like?+
Restate the scale numbers, name the consumers and their clocks, ask the two questions that change the design (how late can data arrive, what happens on replay), and only then draw. Interviewers consistently report that opening as the strongest predictor of the round.
How does this round relate to the data modeling round?+
Modeling decides the shape at rest; pipeline design decides the motion and the guarantees. Loops with both probe the seam: what a backfill does to SCD rows, how late facts restate aggregates. The modeling page here covers the other half of that seam.
02 / Why practice

Design the next one under interview conditions

  1. 01

    Reading a solution is not the same as writing one

    Every engineer who has frozen on a query they had read a dozen times knows the gap. The only preparation that closes it is producing the answer yourself, under time, before the interview does it for you

  2. 02

    76% of hiring managers reject on the coding task, not the resume

    From HackerRank's 2024 Developer Skills Report. Candidates who look strong on paper still fail the live screen if they haven't done timed, executable practice

  3. 03

    System design comes down to the calls you defend out loud

    Ingestion, batch vs streaming, the bronze/silver/gold layers, idempotency, backfill and replay. Sketching the pipeline and naming the failure modes is the signal, not the boxes

Keep going