Data Engineering interview question · Most asked

Design a daily pipeline that loads orders from an operational database into a warehouse for analytics.

Design Asked in Data Engineer · Machine Learning Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Extract incrementally (change data capture or updated_at watermarks) into a raw landing zone, load into the warehouse, and transform with versioned SQL models (staging → cleaned → business marts) using a tool such as dbt, orchestrated by Airflow or Dagster. Make every step idempotent, test data quality, and alert on freshness and failures.

Longer Answer

  • Extract: CDC (Debezium, Fivetran, AWS DMS) catches updates and deletes; watermark queries are simpler but miss hard deletes.
  • Land raw data unchanged (Parquet in object storage or raw tables) so you can replay.
  • Transform: incremental models with MERGE keyed on order ID; slowly changing dimensions for customers.
  • Idempotency: re-running a day replaces that day's partition instead of appending duplicates.
  • Quality: tests for uniqueness, not-null, accepted values, referential integrity, row-count anomalies.
  • Operations: backfills by date range, lineage, SLAs on freshness, cost monitoring.

Key Points

  • Incremental extract: CDC or watermarks.
  • Land raw data for replay.
  • Layered, versioned transformations.
  • Idempotent partitions and MERGE.
  • Data tests, freshness alerts, backfills.

Explanation

What interviewers look for

A layered, idempotent, testable design with operational concerns covered.

More Data Engineering questions

← All Data Engineering questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake