Data Engineer Interview Questions (2026): 18 Questions with Answers

Quick answer: Data engineer interviews focus on SQL with window functions, data modelling, Spark execution (lazy transformations, shuffles, skew), orchestration and idempotent reruns, streaming basics like Kafka's per-partition ordering, and data quality checks. Cloud rounds often mirror official exam guides; AWS weights ingestion and transformation at 34% of its Data Engineer - Associate exam, for example. Prepare one pipeline you can explain end to end.

Key takeaways

  • Spark's programming guide says transformations are lazy and only actions trigger computation.
  • According to the Spark guide, operations such as groupByKey, reduceByKey, join and repartition cause shuffles, which involve disk, serialisation and network I/O.
  • Kafka guarantees event order within a single partition, and events with the same key are written to the same partition.
  • The AWS Data Engineer - Associate exam guide weights ingestion and transformation 34%, data store management 26%, operations 22% and security and governance 18%.
  • NM7's October 2026 job market report found SQL in 20.1% of 289 listings versus 3.5% for Spark, Hadoop or Databricks.

Data engineer interviews in India test whether you can move data reliably from source to consumer: SQL fluency, data modelling, batch and streaming pipelines, distributed processing, and the operational habits that keep pipelines correct when something fails at 3 a.m. Below are 18 role-specific questions grouped by area, each with a note on what a strong answer covers, followed by a preparation plan. For the wider interview process (HR rounds, behavioural questions, offers), see our interview preparation guide for India.

What rounds does a data engineer interview usually have?

Most data engineer interviews combine an SQL or coding screen, one or two technical rounds on pipelines and modelling, a design discussion, and an HR or managerial round. The exact sequence varies by company and changes from year to year, so confirm it with your recruiter or the company's careers page.

Round (typical)

What is tested

How to prepare

Online test or SQL screen

Joins, aggregations, window functions, Python basics

Timed SQL practice on realistic tables

Technical round 1

Pipeline concepts, Spark, file formats, data quality

Explain one project end to end

Technical round 2 / design

Designing a batch or streaming pipeline for a scenario

Practise whiteboard designs with trade-offs

Managerial / HR

Ownership, incidents, communication, notice period

STAR-format stories

Service companies may run a single combined technical round for freshers, while product companies and global capability centres in Bengaluru and Hyderabad often add a dedicated design round even for early-career candidates.

Which SQL and data modelling questions are asked in data engineer interviews?

SQL and modelling questions check whether you can write correct queries on messy data and design tables that analysts can trust. Expect at least one live query.

Question

What a good answer covers

1. Find the second-highest salary per department.

Window functions (DENSE_RANK vs ROW_NUMBER), handling ties and departments with one employee.

2. How would you remove duplicate rows from a 200-million-row table?

Identifying the business key, ROW_NUMBER() partitioned by key, writing to a new table rather than in-place deletes, and verifying counts.

3. Explain star schema vs snowflake schema.

Fact and dimension tables, denormalisation for read speed, when snowflaking saves storage or simplifies maintenance.

4. What is a slowly changing dimension Type 2, and how do you load one?

Surrogate keys, effective-from/to dates, current flag, the merge logic for changed records.

5. When would you choose a columnar format like Parquet over CSV?

Column pruning, compression, predicate pushdown, schema in the file; CSV only for interchange.

If SQL is your weak area, our dedicated SQL interview questions page goes deeper.

What Spark and distributed processing questions should you expect?

Expect questions on how Spark executes work, why some operations are expensive, and how you tuned a slow job. Interviewers want mechanism, not just API names.

Question

What a good answer covers

6. What is the difference between a transformation and an action in Spark?

Transformations build a new dataset lazily; actions trigger computation and return a result. The Spark programming guide uses map vs reduce as the example.

7. Why is a shuffle expensive, and which operations cause one?

Data redistributed across partitions with disk, serialisation and network I/O; groupByKey, reduceByKey, join, repartition trigger it, per the Spark guide.

8. groupByKey vs reduceByKey: which would you use for a sum, and why?

reduceByKey combines values on the map side before the shuffle, moving less data.

9. How do you handle a skewed join where one key holds 40% of rows?

Detecting skew from task durations, salting the hot key, broadcast join for the small side, adaptive query execution.

10. When should you cache or persist a DataFrame?

When it is reused across actions; storage levels; unpersisting to free memory.

Which pipeline, orchestration and streaming questions come up?

These questions test whether your pipelines are reliable, re-runnable and observable. Freshers who can explain idempotency and backfills stand out quickly.

Question

What a good answer covers

11. What is a DAG in Airflow, and what does the scheduler actually control?

Airflow's docs describe a DAG as holding the schedule, tasks and dependencies; it controls how and when tasks run, not what they do internally.

12. How do you make a daily pipeline idempotent?

Partition overwrite by date, MERGE on keys, deterministic outputs, no appends that duplicate on rerun.

13. How would you backfill three months of data after fixing a bug?

Airflow backfill creating a run per past interval, resource limits, validating outputs per partition, communicating with downstream users.

14. ETL vs ELT: when would you pick each?

Warehouse compute availability, raw data retention, governance, tools like dbt for in-warehouse transforms.

15. How does Kafka guarantee ordering?

Per the Kafka introduction, order is guaranteed within a partition, and events with the same key go to the same partition; no global ordering across partitions.

16. How do you handle late-arriving events in a streaming aggregation?

Event time vs processing time, watermarks, allowed lateness, correcting downstream aggregates.

What data quality and cloud questions do interviewers ask?

They ask how you detect bad data before users do and how you would build the pipeline on a specific cloud. Concrete checks and service names score better than general principles.

Question

What a good answer covers

17. What data quality checks would you add to an orders pipeline?

Row-count reconciliation with the source, null and uniqueness checks on keys, referential checks, freshness alerts, quarantining bad rows.

18. Design a pipeline that loads daily UPI-style transaction files from object storage into a warehouse.

Landing zone, schema validation, partitioning by date, incremental loads, PII masking, monitoring and alerting, cost of storage tiers.

For cloud-specific rounds, official exam guides are a useful map of what employers consider core. The AWS Certified Data Engineer - Associate exam guide weights data ingestion and transformation at 34%, data store management at 26%, data operations and support at 22%, and data security and governance at 18%. Google Cloud's Professional Data Engineer exam groups its content into designing processing systems, ingesting and processing data, storing data, preparing data for analysis, and maintaining and automating workloads. Even if you never sit either exam, those headings make a solid revision checklist.

What do most guides on data engineer interview questions get wrong?

Most guides list tool trivia (Hadoop daemons, Hive file formats, Spark configuration flags) and skip the operational questions that actually decide offers. Interviewers increasingly ask "what happens when this fails?" and "how would you rerun it safely?" because broken pipelines cost more than slow ones.

A second gap: freshers often answer design questions by naming the most fashionable stack. A better answer starts with requirements (data volume, latency, who consumes the data, how often the schema changes) and only then picks tools. A daily batch job on a few gigabytes rarely needs Kafka and a streaming engine, and saying so shows judgement.

Third, many guides underplay SQL. Platform names appear less often than fundamentals in fresher listings: NM7's October 2026 job market report found SQL in 20.1% of 289 open listings, but Spark, Hadoop or Databricks in only 3.5%. Strong SQL is the most transferable thing you can bring into the room.

How should a fresher prepare for a data engineer interview in four weeks?

Spend the time on fundamentals first, then on one end-to-end project you can defend in depth. This is a planning suggestion, not a fixed formula.

  1. Week 1 - SQL: daily timed practice on joins, window functions, deduplication and date logic.
  2. Week 2 - Processing: Spark execution model, shuffles, partitioning, file formats; rebuild one job and explain its plan.
  3. Week 3 - Pipelines: orchestration, idempotency, backfills, data quality checks, one streaming concept (ordering, late data).
  4. Week 4 - Design and stories: practise two design scenarios aloud, and prepare STAR stories for a failure you debugged. Our guide to behavioural questions with the STAR method helps structure them.

Before interviews, make sure your resume matches the role; our data engineer resume guide for freshers covers keywords and bullets. If you are still exploring the role itself, read what a data engineer does.

How do you answer "Walk me through a pipeline you built"?

Answer in a fixed order: the business need, the source and volume, the architecture, one hard problem, how you verified correctness, and what you would change. Keep it to about two minutes and let the interviewer pull on threads.

An example answer outline for a student project: "Analysts needed daily city-wise ride metrics. Source was about 2 GB of JSON per day in object storage. I landed raw files, validated the schema, transformed with PySpark into Parquet partitioned by date, and loaded aggregates to PostgreSQL via an Airflow DAG. The hard part was duplicate events from retries; I deduplicated on event ID within a 24-hour window. I verified counts against the source and added a freshness alert. Next time I would use incremental merges instead of full daily rewrites." Replace every detail with your own project.

Related guides

FAQ

What are the most common data engineer interview questions for freshers?

Freshers are most often asked SQL queries with joins and window functions, deduplication, star versus snowflake schemas, slowly changing dimensions, Spark transformations versus actions, why shuffles are expensive, how Airflow DAGs work, and how to make a pipeline idempotent. Expect at least one live SQL problem and a request to walk through a pipeline you built yourself.

Is Spark mandatory for data engineer interviews in India?

Not always. Many fresher roles emphasise SQL, Python and one cloud platform, and some teams use warehouse-native tools instead of Spark. However, product companies and data platform teams frequently ask about Spark's execution model, shuffles and skew. Learning those concepts properly is worthwhile because they also explain how other distributed engines behave.

How do I answer a data pipeline design question in an interview?

Start by asking about data volume, latency needs, consumers and how often the schema changes. Then outline ingestion, storage layers, transformation, orchestration, data quality checks, security for personal data, and monitoring. Name tools only after the requirements are clear, and explain one trade-off, such as batch versus streaming, rather than listing every popular technology.

What does idempotent mean in a data pipeline?

An idempotent pipeline produces the same result whether it runs once or several times for the same input period. You achieve it by overwriting a date partition, merging on business keys, or using deterministic outputs instead of blind appends. Interviewers ask this because reruns and backfills are routine, and non-idempotent jobs silently create duplicate data.

Which certification helps with data engineer interviews?

Certifications can help you get shortlisted and give a structured syllabus, but interviews test applied reasoning. The AWS Certified Data Engineer - Associate and Google Cloud's Professional Data Engineer publish exam guides whose domains, such as ingestion, storage, operations and governance, make a good revision checklist even if you never book the exam.

How long should I prepare for a data engineer interview?

Four focused weeks is a reasonable planning estimate for a fresher with basic SQL and Python: one week each on SQL, distributed processing, pipelines and orchestration, and design practice with interview stories. Adjust it to your starting point. The most important outcome is one project you can explain end to end, including failures and fixes.

Final thoughts

Data engineering interviews reward people who can explain why a pipeline is correct, not just how it was built. Practise the 18 questions aloud, rehearse one project end to end, and if you want a mock round with a working data engineer, find one on NM7 Mentors.

Frequently asked questions

What are the most common data engineer interview questions for freshers?

Freshers are most often asked SQL queries with joins and window functions, deduplication, star versus snowflake schemas, slowly changing dimensions, Spark transformations versus actions, why shuffles are expensive, how Airflow DAGs work, and how to make a pipeline idempotent. Expect at least one live SQL problem and a request to walk through a pipeline you built yourself.

Is Spark mandatory for data engineer interviews in India?

Not always. Many fresher roles emphasise SQL, Python and one cloud platform, and some teams use warehouse-native tools instead of Spark. However, product companies and data platform teams frequently ask about Spark's execution model, shuffles and skew. Learning those concepts properly is worthwhile because they also explain how other distributed engines behave.

How do I answer a data pipeline design question in an interview?

Start by asking about data volume, latency needs, consumers and how often the schema changes. Then outline ingestion, storage layers, transformation, orchestration, data quality checks, security for personal data, and monitoring. Name tools only after the requirements are clear, and explain one trade-off, such as batch versus streaming, rather than listing every popular technology.

What does idempotent mean in a data pipeline?

An idempotent pipeline produces the same result whether it runs once or several times for the same input period. You achieve it by overwriting a date partition, merging on business keys, or using deterministic outputs instead of blind appends. Interviewers ask this because reruns and backfills are routine, and non-idempotent jobs silently create duplicate data.

Which certification helps with data engineer interviews?

Certifications can help you get shortlisted and give a structured syllabus, but interviews test applied reasoning. The AWS Certified Data Engineer - Associate and Google Cloud's Professional Data Engineer publish exam guides whose domains, such as ingestion, storage, operations and governance, make a good revision checklist even if you never book the exam.

How long should I prepare for a data engineer interview?

Four focused weeks is a reasonable planning estimate for a fresher with basic SQL and Python: one week each on SQL, distributed processing, pipelines and orchestration, and design practice with interview stories. Adjust it to your starting point. The most important outcome is one project you can explain end to end, including failures and fixes.