Interview Q&A · questions with model answers

Data Engineering Interview Questions

Part of the study plan for: Data Engineer · Machine Learning Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked What is change data capture (CDC), and why is log-based CDC preferred over polling?

    CDC captures every insert, update and delete from a source database. Log-based CDC reads the database's replication log (PostgreSQL WAL via logical decoding, MySQL binlog) and emits changes in…

  2. Most asked What does it mean for a data pipeline to be idempotent, and how do you achieve it?

    Running it more than once produces the same final state as running it once. Achieve it with upserts or MERGE on a declared key, overwriting whole partitions, or loading into staging and swapping…

  3. Most asked What is a star schema, and why is it used in data warehouses?

    A star schema has central fact tables (measurable events at a declared grain, such as order lines) surrounded by dimension tables (customers, products, dates) joined many-to-one. It makes queries…

  4. Most asked What is the grain of a table, and what is join fan-out?

    The grain is what one row represents (one order, one order line, one daily total). Fan-out happens when you join a coarser table to a finer one: the coarse rows repeat for every match, so summing a…

  5. Most asked What is dbt, and what problems does it solve?

    dbt manages SQL transformations inside the warehouse as code: each model is a SELECT, dependencies are declared with ref() and source(), and dbt builds a DAG, runs models in order, tests them,…

  6. What is an Airflow DAG, and what is the logical date (data interval)?

    A DAG is a set of tasks with dependencies that Airflow schedules. Each DAG run has a logical date and data interval describing the period of data it processes, which may differ from when it actually…

  7. What is a data contract?

    An explicit, versioned agreement from a data producer about the data it provides: schema, types, meaning, quality and freshness guarantees, and ownership. Breaking changes follow a deprecation and…

  8. What is a surrogate key, and why do dimensions use them?

    A surrogate key is a warehouse-generated identifier (integer or hash) for a dimension row, separate from the source system's business key. It allows several versions of the same entity (Type 2),…

  9. What is the small files problem, and how do you fix it?

    Very many small files make engines spend most time listing and opening files and reading metadata, and raise storage request costs. Fix it with fewer, larger columnar files (often 128 MB to 1 GB),…

  10. What is the medallion (bronze, silver, gold) architecture?

    A layering convention for lakehouses: bronze holds raw ingested data as received, silver holds cleaned, deduplicated and conformed data, and gold holds business-level aggregates and models for…

  11. What are watermarks and windows in stream processing?

    Windows group events by event time (tumbling, sliding or session windows). A watermark is the engine's estimate of how far event time has progressed; when it passes a window's end plus the allowed…

  12. What is data lineage, and why does it matter?

    Lineage records how data flows from sources through transformations to tables, dashboards and exports, often down to columns. It shows what breaks if a column changes, where personal data spreads,…

  13. What is reverse ETL?

    Moving modelled data from the warehouse back into operational tools such as CRMs, marketing platforms and support systems, so teams act on warehouse-computed data (customer scores, segments) in the…

  14. What skills does a data engineer need compared with a backend engineer?

    Both need strong programming, SQL, testing and operations skills. Data engineers go deeper on data modelling (grain, dimensions, SCDs), batch and streaming processing, warehouses and file formats,…

Was this page helpful?

Report a mistake