Skip to main content
HireStepX is now in Beta! Be among the first to practice smarter and land your dream role.
Role Guides

Data Engineer Interview Questions India 2026: Spark, Kafka

Data engineer interview guide India 2026: Apache Spark, Kafka, Airflow, pipeline design, SQL at scale, and data warehouse concepts at product companies.

Interview Skills12 March 202612 min read2 sections

Data engineering is one of the fastest-growing disciplines in Indian tech. Every company that runs on data needs data engineers to build and maintain the pipelines that collect, transform, and serve that data. This guide covers the complete data engineering interview preparation path for India 2026: Spark, Kafka, Airflow, SQL at scale, and data warehouse architecture.

2 sections

Apache Spark interview questions:

1. 'What is the difference between a transformation and an action in Spark?' Transformation: creates a new RDD/DataFrame from an existing one; lazy (not executed immediately). Examples: map, filter, groupBy, join, select, withColumn. Action: triggers execution of all pending lazy transformations; returns a result to the driver or writes to storage. Examples: count(), collect(), show(), write.save().

2. 'What is a Spark DAG?' When you call an action, Spark builds a DAG (Directed Acyclic Graph) of transformations. The DAG is divided into stages at shuffle boundaries (groupBy, join). Tasks within a stage run in parallel across the cluster.

3. 'What is the difference between repartition() and coalesce()?' repartition(N): creates exactly N partitions; full shuffle; use to increase or decrease partitions. coalesce(N): reduces partitions without a full shuffle; more efficient when reducing only.

4. 'What is a broadcast join?' The smaller table is broadcast to all executors so the join happens locally without a shuffle. Use when one table is small enough to fit in memory (under spark.sql.autoBroadcastJoinThreshold, default 10MB).

5. 'What is data skew and how do you fix it?' Data skew: some partitions have much more data than others (e.g., one user_id has 80% of rows), leading to straggler tasks. Solutions: salting (add a random prefix to the join key to distribute skewed data), AQE (Adaptive Query Execution in Spark 3+, which automatically splits large partitions and applies broadcast joins where possible).

6. 'What is Spark caching?' df.cache() stores the DataFrame in memory across transformations so it is not recomputed when accessed multiple times. Use when the same DataFrame is reused in multiple downstream transformations or actions.

Kafka interview questions:

1. 'What is Apache Kafka?' A distributed event streaming platform acting as a durable, high-throughput message queue between producers (write events) and consumers (process events). Use cases: decoupling microservices, real-time analytics pipelines, event sourcing and audit logs.

2. 'What is a Kafka consumer group?' A set of consumers that jointly consume a topic. Each partition is consumed by exactly one consumer in the group at a time (parallelism = number of partitions). Multiple consumer groups independently consume the same topic.

3. 'What is Kafka offset?' A unique, monotonically increasing integer that identifies each message within a partition. Consumers track their offset so they know which messages they have already processed.

4. 'What is the difference between at-most-once, at-least-once, and exactly-once delivery in Kafka?' At-most-once: offsets committed before processing; if the consumer crashes after committing but before processing, the message is lost. At-least-once: offsets committed after processing; if the consumer crashes after processing but before committing, the message is reprocessed. Exactly-once: Kafka Transactions API guarantees each message is processed exactly once.

Airflow interview questions:

5. 'What is Apache Airflow?' A workflow orchestration platform. Pipelines are defined as DAGs in Python; each node is a task (Python operator, BashOperator, SparkSubmitOperator). Airflow handles scheduling (cron-based), dependency management, retries, and a web UI for monitoring. Used at most Indian data teams for ETL/ELT pipeline orchestration.

Frequently asked questions

What is the data engineer salary in India in 2026?

Data engineer salary in India (2024-25): Junior data engineer (0-2 years): 8-18 LPA at product companies; 5-10 LPA at IT services. Mid-level data engineer (3-5 years): 20-45 LPA at product companies. Senior data engineer (5-8 years): 45-90 LPA TC at top product companies. Highest-paying data engineering roles in India: FAANG India (Amazon AWS data teams, Google data infrastructure): 40-80 LPA TC for 4-6 years experience. Fintech (Razorpay, PhonePe, CRED): 25-55 LPA for 3-5 years. E-commerce (Flipkart, Meesho, Swiggy): 22-50 LPA for 3-5 years.

What are the most important technologies to learn for a data engineering career in India?

Data engineering technology stack for India in 2026: Foundational: SQL, Python (pandas, pyspark), Apache Spark (batch processing, DataFrames), and Apache Airflow (pipeline orchestration). Cloud data platform (pick one): AWS (Amazon S3 + Glue + Athena + Redshift), GCP (BigQuery + Cloud Dataflow + Pub/Sub), or Azure (ADLS + Azure Databricks + Synapse Analytics). Modern data stack (increasingly required): dbt (transformation layer), Apache Kafka (real-time event streaming), one lakehouse format (Apache Iceberg or Delta Lake). Best learning path: SQL proficiency first (Stratascratch practice problems), then Python and PySpark (Databricks Community Edition), then Airflow (run locally with Docker), then dbt (dbt Core is free), then one cloud platform (AWS free tier). Total time to an interview-ready skill set starting from SQL proficiency: 6-9 months of consistent practice.

Explore more

Continue reading

All posts

Practice

Know the answer. Now say it.

Practise data engineering interview questions with HireStepX's AI voice interviewer. Get scored feedback on Spark, Kafka, and pipeline design explanations. First 2 sessions free.