Data engineering is one of the fastest-growing tech careers, and every analytics and AI team needs reliable pipelines. These data engineer interview questions cover what interviewers ask about ETL and ELT, data modeling, Apache Spark, Kafka, Airflow, dbt, cloud data warehouses and pipeline design.
The top 20 data engineering interview questions and answers below suit junior, mid-level and senior data engineer roles on AWS, Azure, GCP, Databricks and Snowflake.
Data engineering fundamentals
1. What does a data engineer do?
A data engineer designs, builds and maintains pipelines that collect, clean, transform and store data so analysts, data scientists and applications can use it. The work covers ingestion, modeling, orchestration, data quality, performance, security and cost.
2. ETL vs. ELT?
ETL transforms data before loading it into the target. ELT loads raw data first and transforms it inside a scalable warehouse or lakehouse such as Snowflake, BigQuery, Redshift or Databricks, usually with SQL and dbt. ELT is the common modern pattern.
3. Data warehouse vs. data lake vs. lakehouse?
A warehouse stores structured, modeled data for BI. A data lake stores raw data of any format cheaply in object storage. A lakehouse adds table formats such as Delta Lake, Apache Iceberg or Hudi to the lake, giving ACID transactions, schema enforcement and time travel on low-cost storage.
4. Batch vs. stream processing?
Batch processes data in scheduled chunks (hourly, daily) and is simpler and cheaper. Streaming processes events continuously with low latency using Kafka, Kinesis, Pub/Sub, Spark Structured Streaming or Flink. Many architectures combine both.
Data modeling and SQL
5. What is dimensional modeling? Star vs. snowflake schema?
Dimensional modeling organizes data into fact tables (measurable events) and dimension tables (context such as customer, product, date). A star schema keeps dimensions denormalized for simple, fast queries; a snowflake schema normalizes dimensions into sub-tables.
6. What are slowly changing dimensions?
SCDs track changes in dimension attributes. Type 1 overwrites the old value, Type 2 adds a new row with effective dates and a current flag to keep history, and Type 3 keeps a limited previous value in another column. Type 2 is the most common for auditability.
7. Which SQL skills are essential for data engineers?
Joins, aggregations, window functions (ROW_NUMBER, RANK, LAG, LEAD, running totals), CTEs, deduplication, MERGE/upserts, handling NULLs, date logic and reading query plans to tune performance.
8. What are partitioning and clustering?
Partitioning splits a table by a column such as date so queries scan only relevant partitions. Clustering or sort keys order data within storage so filters and joins skip blocks. Both cut cost and speed up queries; avoid too many small partitions.
Big data tools
9. How does Apache Spark work?
Spark is a distributed processing engine. The driver builds a logical plan, the Catalyst optimizer turns it into a physical plan of stages and tasks, and executors run tasks in parallel on partitions. Transformations are lazy until an action like count or write runs.
10. What causes shuffles and data skew in Spark, and how do you fix them?
Wide transformations such as joins, groupBy and repartition shuffle data across the network. Skew happens when a few keys hold most of the data. Fixes include broadcast joins for small tables, salting hot keys, Adaptive Query Execution, filtering early and choosing good partition counts.
11. What is Apache Kafka and where is it used?
Kafka is a distributed event streaming platform. Producers write to topics split into partitions, and consumer groups read them in parallel with tracked offsets. It is used for event-driven microservices, change data capture, log aggregation and real-time pipelines.
12. What is Apache Airflow?
Airflow orchestrates workflows as DAGs written in Python, with scheduling, retries, dependencies, backfills, sensors and monitoring. Managed options include Amazon MWAA, Cloud Composer and Astronomer. Alternatives include Dagster, Prefect and Azure Data Factory.
13. What is dbt?
dbt (data build tool) lets you write transformations as SQL select statements with Jinja, builds them in dependency order, and adds tests, documentation, lineage and incremental models. It is the standard tool for the T in ELT.
Quality, reliability and cloud
14. How do you ensure data quality?
Add checks for schema, nulls, uniqueness, referential integrity, ranges and freshness using dbt tests, Great Expectations or Soda; quarantine bad records; monitor volumes and anomalies; and define data contracts and SLAs with source teams.
15. What makes a pipeline idempotent and why does it matter?
An idempotent pipeline produces the same result when re-run for the same input, for example by overwriting a partition or using MERGE with keys instead of blind inserts. It makes retries and backfills safe.
16. How do you handle late-arriving or changed data?
Use watermarks in streaming, reprocess recent partitions in batch, use change data capture (Debezium, DMS, Fivetran) with MERGE, and design SCD Type 2 dimensions to keep history accurate.
17. How do you optimize cost in a cloud data platform?
Use columnar formats (Parquet), partitioning and clustering, incremental models instead of full refreshes, auto-suspend for warehouses, right-sized clusters and spot instances, lifecycle rules for old data, and monitor the most expensive queries.
Scenario questions
18. Scenario: design a pipeline that ingests clickstream data for near real-time dashboards.
Collect events through an API or SDK into Kafka or Kinesis, process with Spark Structured Streaming or Flink to clean, deduplicate and aggregate, land raw data in a lakehouse table, publish aggregates to a warehouse or real-time OLAP store, and add monitoring, schema registry and alerting on lag.
19. Scenario: a daily job that took 30 minutes now takes 4 hours. What do you check?
Compare data volumes, check for skew or new joins in the Spark UI or query profile, look for small-file problems, lost partition pruning, changed cluster size, and upstream schema changes. Fix the bottleneck and add runtime alerts.
20. Scenario: how would you migrate an on-premises data warehouse to the cloud?
Inventory sources, tables and reports; pick the target (Snowflake, BigQuery, Redshift, Databricks); migrate schemas and convert SQL; move historical data in bulk; run pipelines in parallel and reconcile counts and totals; then cut over reports gradually and decommission.
How to prepare for a data engineer interview
- Practice SQL problems with window functions and deduplication daily.
- Build an end-to-end project: ingest an API, orchestrate with Airflow, transform with dbt or Spark, and serve a dashboard.
- Learn one cloud data stack deeply (AWS Glue/Redshift, Azure Synapse/Fabric, GCP BigQuery/Dataflow, or Databricks/Snowflake).
- Prepare a data pipeline system design with trade-offs on latency, cost and reliability.
Also review SQL interview questions, Python interview questions and data analyst interview questions.
Frequently asked questions
What skills are most important for data engineers?
SQL, Python, data modeling, a processing engine such as Spark, orchestration with Airflow, a cloud platform, and data quality practices.
Do data engineers need to know machine learning?
Not deeply, but understanding feature pipelines, model data needs and MLOps basics is a plus as more pipelines feed AI applications.
What is asked in a senior data engineer interview?
Architecture and system design, data modeling at scale, streaming, cost optimization, governance and leading platform migrations.
Got the interview? Make sure your resume tells the same story.
Interviewers read your resume right before they talk to you. HiReXL aligns it with the job description’s keywords so your experience and your answers match. HiReXL is built by 4As Consulting, a cloud and DevOps consulting firm. Looking for your next role? Submit your resume for open positions with PanAmerica Inc.


