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 Explain slowly changing dimensions, especially Type 1 and Type 2.

    Slowly changing dimensions describe how dimension attributes keep history. Type 1 overwrites values (no history); Type 2 inserts a new row per change with a surrogate key and validity range, so…

  2. Most asked How do you handle late-arriving data in a daily batch pipeline?

    Partition by event time and recompute a lookback window (for example the last 3 days) on every run with idempotent partition overwrites, sizing the window from measured arrival delays. Label recent…

  3. Most asked Data warehouse, data lake or lakehouse: what is the difference?

    A warehouse (Snowflake, BigQuery, Redshift) manages storage and SQL compute for structured data. A data lake stores raw files of any format cheaply in object storage. A lakehouse adds a table format…

  4. Most asked How do you handle personal data (PII) in a data warehouse?

    Minimise what you load, keep personal attributes in one restricted identity table, use pseudonymous keys elsewhere, tag personal columns and track lineage, apply column-level access control and…

  5. How do partitioning and clustering improve warehouse performance and cost?

    Partitioning splits a table by a column (usually date) so queries filtering on it read only matching partitions; clustering sorts data within partitions by other filter columns so engines skip…

  6. How does a dbt incremental model work, and what are its pitfalls?

    After the first full build, an incremental model selects only new or changed rows (using is_incremental() filters) and merges, inserts or replaces partitions in the existing table. Pitfalls: missing…

  7. How do you handle schema changes from source systems?

    Map columns by name, detect schema changes on every run, treat additive changes (new nullable columns, widened types) as safe and renames, drops and type changes as breaking. Roll out breaking…

  8. How do you test a data pipeline before deploying changes?

    Unit-test transformation logic on small fixture datasets, run dbt or SQL models in a CI environment against sample or zero-copy cloned data, compare outputs with production for key tables (data…

  9. How do Kafka and stream processors fit into data pipelines?

    Kafka (or a managed equivalent) is a durable, partitioned log that decouples producers from consumers and lets many consumers read the same events, including CDC streams. Stream processors (Flink,…

Was this page helpful?

Report a mistake