Data Engineer Interview Questions

(4.8)
14186 Viewers

This article covers the top advanced and scenario-based interview questions for data engineers. Exploring these questions will help you understand data engineering concepts, including data processing pipeline design, deduplication best practices, data warehousing schemas, and more.

Data Engineer Interview Questions
  • Blog Author:
    Mohammed Zaid
  • Last Updated:
    24 Nov 2026
  • Views:
    14186
  • Read Time:
    50:34 Minutes
  • Share:
Snowflake Articles

Data engineering is an evolving field focused on designing, building, and maintaining systems that gather, store, and transform data at scale. Data engineers manage data systems and pipelines to support analytics, generate insights, and identify trends.

MindMajix presents top data engineer interview questions and answers on stacks like Azure, Snowflake, Kafka, AWS, Python, SQL, and Databricks to help data engineering aspirants prepare for interviews in 2027.

Let’s explore these questions to strengthen your understanding of practical data engineering concepts:

If you want, you can also watch the video that covered scenario-based questions:

Advanced Data Engineer Interview Questions

1. What factors do you consider before enabling Photon for a Databricks workload?

Consider the following factors before enabling Photon:

  • Photon doesn't support UDFs, RDD APIs, or Dataset APIs. Therefore, avoid using these functions and APIs in workloads that rely on Photon.
  • It supports only stateless streaming; therefore, avoid using stateful streaming.
  • It doesn't improve queries that run within two seconds.
  • It supports Graviton-based instances.

Photon can improve the performance of the following workloads, so you should consider enabling it for them as well.

  • Large-scale ETL pipelines
  • SQL-heavy analytical workloads
  • Delta Lake operations
  • DataFrame API workloads.

2. Explain the differences between external and managed tables in Apache Hive.

FeaturesManaged (internal) TableExternal Table
Data ManagementManages both the data and the metadataManages only the metadata
Data DeletionDeletes both the data stored in HDFS and the metadataDeletes only the metadata
Best forWhen Hive is the sole owner and manager of the dataThe data is accessed by external tools and technologies
Data Lifecycle ManagementHive manages the data lifecycleExternal tools can manage the data lifecycle
Data OwnershipHive manages the dataData is managed outside Hive
Data LocationDefault warehouse directoryCustom or specified location
Data SharingLess convenient for external toolsEasier to share with other tools

3. Why and when should you use generators and decorators in Python?

Generators create iterators and produce elements one at a time. They provide a memory-efficient way to handle large or infinite datasets.

Decorators add to or modify the behaviour of functions or methods without changing their source code. They provide a convenient way to wrap the functionality of existing functions or classes. 

You use GENERATORS because they:

  • Implement iterators
  • Reduce memory consumption
  • Process large datasets efficiently
  • Create pipelines
  • Support lazy evaluation
  • Handle streaming or continuous data
  • Avoid creating large lists unnecessarily.

You use GENERATORS when:

  • Processing large CSV files and ETL pipelines
  • Processing large API responses and infinite sequences
  • Streaming data.

You use DECORATORS because they:

  • Promote code reuse and help avoid repeating code across multiple functions
  • Modularise functionality and allow it to be applied across multiple functions
  • Use nested decorators to modify a function’s behaviour
  • Add logging and monitoring
  • Control access to functions and enhance program security
  • Handle retries and exceptions.

You use DECORATORS when:

  • Logging and auditing
  • Measuring execution time or controlling retries
  • Checking user permissions and access rules before running code
  • Storing and reusing results for repeated calls
  • Verifying arguments before passing them into the wrapped function
  • Attaching metadata or registering handlers, components, and routes.

4. Given a raw data table, how would you write the SQL to transform the data into the desired format?

Suppose there is a raw customer table containing inconsistent and duplicate records. We want to standardise names, convert email addresses to lowercase, replace NULL values, and remove duplicate records.

Use raw_customers as the source table and dim_customers as the target table.

customer_idcustomer_nameemailcity
101John Smithjohn@gmail.comChennai
102MaryNULLBangalore
103Daviddavid@gmail.comChennai
101John Smithjohn@gmail.comChennai
NULLPeterpeter@gmail.comMumbai

SQL Query:

INSERT INTO dim_customers (
    customer_id,
    customer_name,
    email,
    city
)
SELECT
    customer_id,
    customer_name,
    email,
    city
FROM (
    SELECT
        customer_id,
        NULLIF(TRIM(customer_name), '')  AS customer_name,
        NULLIF(LOWER(TRIM(email)), '')   AS email,
        NULLIF(UPPER(TRIM(city)), '')    AS city,
        ROW_NUMBER() OVER (
            PARTITION BY customer_id
            ORDER BY updated_at DESC      
        ) AS rn
    FROM raw_customers
    WHERE customer_id IS NOT NULL
) t
WHERE rn = 1
  AND NOT EXISTS (
      SELECT 1
      FROM dim_customers d
      WHERE d.customer_id = t.customer_id
  );

Result Table

customer_idcustomer_nameemailcity
101John smithjohn@gmail.comChennai
102MaryNULLBangalore
103Daviddavid@gmail.comChennai

5. Write an SQL query to calculate the percentage of unsold products in each product category.

Use conditional aggregation with the GROUP BY clause to calculate the percentage of unsold products in each product category.

Product Table:

product_idproduct_nameproduct_categorystatus
101LaptopElectronicssold
102MobileElectronicsunsold
103TVElectronicsunsold
104ShirtClothingsold
105JeansClothingunsold
106ShoesClothingsold

SQL Query:

SELECT
	product_category,
COUNT(CASE WHEN status = 'Unsold' THEN 1 END) AS unsold_count,
COUNT(*) AS total_products,
ROUND (
	100.0*COUNT(CASE WHEN status = 'Unsold' THEN 1 END)
	/ NULLIF (COUNT(*), 0),
	2
) AS unsold_percentage
FROM products
GROUP BY product_category;

Result Table:

product_categoryunsold_counttotal_productsunsold_percentage
Electronics2366.67%
Clothing1333.33%

6. What is the difference between interactive clusters and job clusters in Databricks?

AspectsInteractive Clusters (All-purpose compute)Job Clusters
PurposeUsed for development, testing, exploration, and running notebooks manually.Used to run scheduled jobs, automated pipelines, and production workloads.
FunctionManual and persistentAutomated and temporary
Use caseData validation and testingUsed for daily ETL pipelines and scheduled reports.
LifecycleThey can remain running until they are manually stopped or automatically terminated.They are created for the job run and terminated after completion.

7. How do you create a Kafka topic with a replication factor of 2?

You can create a Kafka topic with a specified replication factor using Kafka’s command-line tools. 

You can follow these steps:

  • Use Kafka's command-line tools, kafka-topics.sh or kafka-topics.bat.
  • Specify the topic name, replication factor, and the number of partitions.
  • Execute the command on a Kafka broker or a machine with the Kafka client tools installed.
  • Kafka uses --bootstrap-server <host:port> to establish connections.
  • The replication factor must not exceed the number of available brokers; therefore, the cluster needs at least two active brokers. If not, topic creation fails with an InvalidReplicationFactorException.

8. How would you read a large CSV file efficiently in Python?

The method that you use depends on the file size, available memory, and the required transformations. If a CSV file is too large to process as a single pandas DataFrame, reading it in chunks can reduce peak memory usage.

import pandas as pd
for chunk in pd.read_csv("Data.csv", chunksize=10000):
      process(chunk)

Here, process() represents an application-specific function that handles each chunk. Chunking prevents pandas from loading the entire file into a single DataFrame at once, although memory consumption depends on the chunk size and the processing logic.

Other options include choosing appropriate data types, selecting only the required columns, and using a streaming parser. For workloads that exceed a single machine’s practical capacity, a distributed processing system may be more suitable.

9. How do you connect to different services in Azure?

Connection MethodPurpose
Managed IdentityIt enables secure authentication without storing credentials.
Service EndpointIt enables a VNet to connect securely to Azure services.
Private EndpointIt enables access to Azure services through a private IP address in a VNet.
REST APIIt enables integration between services through HTTP-based APIs.
Access KeysThey provide authentication for accessing storage or other resources.

10. How would you process late-arriving data in a Structured Streaming pipeline?

In Spark Structured Streaming, late-arriving data can be handled using the following techniques.

  • Event-time processing: It processes records based on when the events actually occurred rather than when Spark received the records.
  • Watermarking: This technique defines how long Spark should wait for late-arriving events before considering a window complete and cleaning up the associated state.
  • Windowed aggregation: It groups events into time windows, such as 5-minute or 1-hour intervals.
  • Checkpointing: It helps maintain streaming progress and state, allowing the pipeline to recover from failures.
  • Deduplication: It prevents duplicate events from affecting aggregations.

Azure Data Engineer Training

11. Explain SCD Type 2 Implementation in Databricks.

SCD Type 2 (Slowly Changing Dimension Type 2) is a data warehousing technique used to maintain a complete history of changes to dimension records.

It is commonly implemented using Delta Lake tables and Databricks SQL.

Stage 1: Staging the dimension changes

  • Read the existing active records from the Delta Lake dimension table.
  • Read the incoming source data and ensure that each primary key is unique.
  • Use the Detect Changes component to compare incoming records with existing ones.
  • Classify records using indicator fields:
    • Identical records (I)
    • Changed records (C)
    • New records (N)
    • Deleted records (D)
  • Add a load date and store the classified records in a temporary Delta Lake table for further processing.

Stage 2: Finalising the dimension changes

Read the temporary dimension table and split the records into three processing paths using the Filter component.

  • Identical records (I) - Filter out these records because no changes are required.
  • New or changed records (N/C):
    • Insert new records into the target dimension table.
    • Map the incoming columns to target columns.
    • Set the expiration timestamp to infinity to indicate that the records are active.
  • Changed or deleted records (C/D): Identify existing records and update their expiration timestamps to the current timestamp, marking them as inactive or expired.

For a step-by-step view of the skills, tools, and technologies to learn, refer to our Data Engineer Roadmap.

12. Explain the concept of schema in data warehousing. What are star and Snowflake schemas, and when would you use each?

A schema in data warehousing is the logical organisation of tables. It models business processes for analytical queries. It defines fact tables (measures) and dimension tables (contexts), along with their relationships, enabling fast aggregation and reporting. 

Star Schema:

In this schema, the fact table is at the centre, with multiple denormalised dimension tables linked directly to it. The advantages of this schema are simpler joins, faster query performance, and easier use for BI tools and end users to use.

Trade-offs: Larger storage requirements and potential data redundancy.

When to use a star schema:

You can use a star schema when:

  • Query performance and simplicity are crucial.
  • You have interactive dashboards, BI reporting, high-concurrency reads, or scenarios involving small dimensions.
  • When the schema is relatively stable.

Snowflake Schema:

In this schema, dimensions are normalised into multiple related tables, with sub-tables branching out from the main dimension tables. The advantages of this schema are reduced data redundancy, improved storage efficiency, and easier maintenance of slowly changing dimension hierarchies.

Trade-offs: More joins, slightly slower queries, and more complex SQL.

When to use Snowflake schema:

You can use Snowflake:

  • When storage constraints, strict normalisation policies, or complex dimension hierarchies are present.
  • When ETL and maintenance processes benefit from normalised attributes.
  • When query volumes are moderate.

Practical guidance:

The following practical tips can help:

  • Start with a star schema for most analytical needs
  • Consider a snowflake schema selectively for large or highly normalised dimension domains.
  • Balance query performance, storage efficiency, and maintainability.

13. How do you load data from JSON?

You can load data from a JSON-formatted string or file using the following approach.

  • Import the JSON parsing library or module available in the target language.
  • Use the appropriate function to parse a JSON string or read from a JSON file.
  • Store the resulting data structure (usually a dictionary, map, list, or array) or use it directly in the program.

Python code:

import json
def load_json_from_string(json_string):
      return json.loads(json_string)
def load_json_from_file(file_path):
                            with open(file_path, 'r') as file:
  return json.load(file)

14. How do clustering and partitioning affect performance?

Snowflake automatically partitions data into micro-partitions, which are contiguous storage units containing approximately 50 MB to 500 MB of uncompressed data.

  • Micro-partitioning ensures that queries scan only the partitions that contain relevant data (partition pruning), drastically reducing I/O.
  • Clustering is the physical organisation of data within those micro-partitions. By explicitly setting a clustering key on a table, you can direct Snowflake to group rows based on the specified columns.

Impact: Good clustering enables queries to prune irrelevant micro-partitions based on clustering-key filters, potentially improving query performance and reducing compute costs.

15. How do I receive and ingest source data into Snowflake?

The standard workflow for receiving and ingesting source data into Snowflake involves the following steps:

  1. Stage the Data: Source systems upload files to an external stage or an internal Snowflake stage. An external stage can reference Amazon S3, Google Cloud Storage, or Azure Blob Storage.
  2. Ingest (Batch): Use the COPY INTO <table> FROM @<stage> command with a Virtual Warehouse.
  3. Ingest (Continuous): Configure Snowpipe with auto-ingest enabled to load files as they are added to the cloud bucket.
  4. Connectors: Use the Snowflake Kafka Connector, Spark Connector, or standard drivers (Python/JDBC/ODBC) for programmatic or real-time streaming.

Also Learn the Snowflake Interview Questions and Answers

Data Engineer Scenario-Based Interview Questions

16. When should you avoid Spark and choose SQL, Python or a warehouse engine instead?

Spark introduces cluster startup overhead, such as JVM spin-up and shuffle setup, even when processing a 2 GB file. This overhead can take longer than the job itself.

  • We should avoid Spark when data is stored in memory on a single node (roughly under 10–20 GB), and the transformation is simple (filtering, joining, and aggregating structured tables)
  • Avoid Spark when a warehouse (Snowflake, BigQuery, or Databricks SQL Warehouse) can run it natively.
  • Avoid Spark for low-latency, small-batch, or streaming use cases with sub-second SLAs.

We can use plain Python, pandas, or Polars for small-to-medium-sized datasets and scripting glue logic. We can also use warehouse-native SQL when data already lives in warehouses like BigQuery, Snowflake, and Databricks.

Serverless SQL is highly optimised and can be more cost-effective than starting a Spark cluster.

17. Can you explain the internals of Apache Spark and how you would design both high-level and low-level implementations of an end-to-end real-time data processing pipeline?

Apache Spark is a distributed data processing engine that supports scalable real-time data pipelines with Structured Streaming and RDDs. Its internal components include the driver, executors, cluster manager, DAG scheduler, task scheduler, RDD, and DataFrame abstractions.

The driver coordinates execution by converting user code into a DAG of stages and tasks, then distributing the tasks to executors. Executors run tasks in parallel and perform transformations and actions on data partitions stored in memory or on disk.

High-level design implementation:

  • For real-time pipelines, Spark Structured Streaming provides a high-level API for processing data streams as unbounded tables, with fault tolerance and exactly-once processing semantics.
  • Use Spark Structured Streaming to ingest data from sources such as Kafka, apply transformations, and write results to HDFS, databases, or dashboards.

Low-level design implementation:

We can implement custom stateful processing with MapGroupsWithState or flatMapGroupsWithState to support complex event processing and windowing.

Example:

Ingest data streams from Kafka, parse JSON events, enhance data with static datasets, aggregate metrics over sliding windows, and write the results to Cassandra for real-time analytics.

Optimise performance by tuning trigger intervals and using the Catalyst optimiser for query planning. Enable checkpointing to support fault tolerance.

18. How can you prevent your colleague from working on the same code that you’re working on? If two people start working on the same code, how do you handle it?

We can use Git feature branches, small, frequent commits, and pull requests to prevent multiple developers from unknowingly working on the same module. Avoid working directly on the main branch. Communicate ownership through a shared board such as Jira or Asana.

If overlapping work occurs, we can follow the strategies below:

  • Split the work by function or file
  • Perform Git rebases frequently
  • Use daily stand-ups, pull request reviews, and a CI pipeline triggered on every push to identify integration issues early.
  • Use pre-commit hooks and CI-based linting to reduce noisy conflicts.

19. How would you design a pipeline to process 5 TB of data every day?

We can divide the pipeline into four stages: ingestion → storage (data lake) → processing → serving.

  1. Ingest data through batch files, CDC, or Kafka streams into cloud storage such as S3, ADLS, or GCS using a raw/bronze layer.
  2. Process the data using a distributed engine such as Spark or Databricks, or warehouse-native tools such as Snowflake or BigQuery, with incremental processing and partitioning.
  3. Store curated data in a table format such as Iceberg or Delta Lake to ensure ACID properties, and then serve it to a warehouse or BI layer.
  4. Orchestrate with Airflow or Dagster, and monitor with SLAs and data quality checks.

Consider the following key points when designing the pipeline:

  • Apply partitioning by date and region to avoid full-table scans.
  • Perform incremental or CDC processing instead of reprocessing all 5 TB daily.
  • Use a file format like Parquet with Iceberg or Delta Lake for schema evolution and time travel.
  • Autoscale Databricks job clusters and EMR Serverless to control costs.
  • Monitor data freshness SLAs and row counts, and trigger alerts using tools such as Monte Carlo or Great Expectations.

20. A dataset contains millions of duplicate records. How do you remove them efficiently?

In Spark or SQL, use dropDuplicates() on the relevant key columns, or use ROW_NUMBER() OVER (PARTITION BY key ORDER BY updated_at DESC) and filter for row_number = 1 to retain the most recent record.

For large datasets, partition by the deduplication key to reduce shuffle, and deduplicate incrementally at ingestion time rather than after the fact.

Consider the following best practices for deduplication:

  • Use the ROW_NUMBER() window function to implement deterministic and explainable deduplication logic.
  • Use DISTINCT or dropDuplicates() only for exact duplicates; near-duplicate records require key-based logic.
  • Apply salting or bucketing to the partition key to avoid data skew during shuffle-intensive window operations.
  • Perform deduplication at write time using UPSERT or MERGE operations with Delta Lake or Iceberg.

Snowflake Data Engineer Training

21. You are required to design a real-time data pipeline that ingests, processes, and stores clickstream data from millions of users interacting with a website.

The data flow should follow this sequence:

Website → Event collector (SDK/API Gateway) → Kafka → Stream processor → Serving layer (real-time store) + data lake (batch processing and replay).

  1. Ingest events through Kafka, Kinesis, or Pub/Sub, which act as durable buffers.
  2. Use a stream processor such as Flink, Spark Structured Streaming, or Kafka Streams to clean, enrich, and aggregate events in near real-time.
  3. Write raw events to the Bronze layer of a data lake for replay or auditing.
  4. Write aggregated or enriched results to low-latency data stores such as Redis, Druid, or ClickHouse, or to Delta/Iceberg tables for dashboarding.
  5. Use tumbling or sliding windows with watermarking to handle late-arriving events.
  6. Use ClickHouse and Apache Druid instead of traditional warehouses for sub-second clickstream dashboards.

22. What would you do if a data lake accumulated millions of small files?

Small files create listing delays and increase metadata overhead. 

They often result from streaming micro-batches or over-partitioning. They also increase the number of S3 GET or LIST requests, increasing cloud costs and slowing query planning.

We can address this problem by:

  • Compacting files using OPTIMIZE or bin-packing techniques in Delta Lake or Iceberg.
  • Tune the write batch sizes by increasing maxRecordsPerFile or targeting file sizes of about 128 MB to 1GB.
  • Reduce over-partitioning and avoid high-cardinality columns such as user IDs.
  • Schedule regular compaction or VACUUM jobs.
  • Use Databricks' built-in auto-compaction and Iceberg table maintenance jobs that run automatically on a schedule.
  • Use Z-ordering or clustering to optimise data layout.

23. A Spark job suddenly takes four hours instead of one. How would you find the root cause?

  1. First, check the Spark UI or Spark History Server to examine stage-level execution times, excessive shuffle read or write volumes, inefficient partitioning, high GC time, and long-running tasks caused by data skew.
  2. Compare the input data volume and partition count of the current run with those of a previous successful run.
  3. Check for disk spills, memory pressure, executor failures or retries, and recent upstream schema or data volume changes.
  4. Rule out infrastructure issues such as cluster resource contention, autoscaling delays, reduced executor counts, spot-instance reclamation, network throttling, or noisy neighbours.

Symptoms and Fixes:

  • Data skew: We can solve this issue by salting the key or using adaptive query execution (AQE) to handle skewed joins automatically.
  • Spilling to disk: We can solve this issue by increasing executor memory or reducing partition size.

24. How can you move code from non-production to production?

Develop and test code in a development environment, merge it through a pull request into a staging or UAT branch, run it against staging data and automated tests, and then promote it to production using a version tag and an approval gate.

Use CI/CD tools such as GitHub Actions, Azure DevOps, and Jenkins to automate testing, and deployment tools such as Terraform and Databricks to ensure consistent deployments across environments. Here, Terraform reduces the need for manual infrastructure configuration.

Also follow these best practices:

  • Ensure development, staging, and production environments are identical. For example, they must have the same table schemas and consistent data types.
  • Run unit tests, data quality tests, and a manual approval step for high-risk pipelines before moving them to production.
  • Use Databricks Asset Bundles,dbt Cloud environments, and GitOps with Argo CD for pipeline promotion.
  • Use a rollback plan, including versioned deployments, so we can act swiftly if anything breaks in production.

25. How do you design a Change Data Capture (CDC) pipeline?

First, capture row-level changes (insert, update, delete) from the source database's transaction log using Debezium with Kafka, or cloud-based CDC tools such as  AWS DMS and Fivetran, or features such as Snowflake Streams or Databricks Delta Lake Change Data Feed (CDF).

Next, stream these change events to a landing zone, and apply them to the target table using MERGE or UPSERT logic to keep it synchronised with the source system.

Next, handle schema drift and out-of-order events carefully, and track a watermark or offset for exactly-once processing.

Key considerations for this design:

  • CDC tools move only what changed, and full-table reloads dont scale once the source table is large. 
  • CDC tools fall into two types: log-based CDC and query-based CDC.
  • Log-based CDC reads the database’s write-ahead log or binlog, creating low impact on the source in near real time. Query-based CDC polls a last_updated timestamp column. However, it misses hard deletes and adds load to the source.
  • We can also use Iceberg’s incremental reads for lakehouse requirements.
  • We should handle deletes explicitly by using a soft-delete flag and propagating hard deletes when designing the pipeline.
  • Downstream systems use the soft-delete flag to identify and exclude deleted records. This flag marks a record as deleted (e.g., is_deleted = true) without physically removing it from the database.
  • The hard-delete propagation physically removes a record from the source database. It ensures the deletion propagates to downstream systems, tables, and data stores, preventing stale records.

26. How would you make a pipeline idempotent if it fails after processing half the data?

Follow these practices:

  • Design the pipeline so rerunning it produces the same result, regardless of how many times it runs.
  • Use MERGE or UPSERT instead of unconditional INSERT operations.
  • Write data to a staging table, perform an atomic swap or commit, and track processed batches with a watermark or checkpoint, such as the last successfully processed partition or offset. We can use Spark Structured Streaming checkpoints and Kafka consumer offsets.
  • This allows a retry to continue from the correct point without duplicating data.
  • Use this command to make reruns safe.
MERGE INTO target
USING staging
ON key
WHEN MATCHED THEN
        UPDATE...
WHEN NOT MATCHED THEN
        INSERT...
  • Partition-level overwriting, INSERT OVERWRITE PARTITION, is a simple idempotency pattern for daily batch loads. Rerunning a daily load replaces that day's partition, and there is no duplication.

27. How would you handle schema changes without breaking downstream consumers?

  • Use a schema registry such as Confluent Schema Registry or AWS Glue Schema Registry to enforce compatibility rules and allow only backwards-compatible or forward-compatible changes.
    • Backwards-compatible (safe) – Adding nullable columns is generally a safe approach.
    • Breaking (risky) – Renaming a column, changing a data type, or removing a column.
  • Use data contracts where producers and consumers agree on a schema contract with automated validation as part of continuous integration. As a result, breaking changes fail the build before reaching production.
  • In the lakehouse, use Delta Lake or Iceberg schema evolution to add columns while maintaining schema compatibility and keeping table schemas versioned. Communicate breaking changes to consumers in advance, perform contract testing, or establish a deprecation window.

28. Explain the architecture involving AWS S3, Lambda, Glue, EMR, and Redshift.

This architecture supports an event-driven, serverless pipeline.

AWS S3 → Lambda (trigger) → Glue (ETL and Data Catalog) → AWS S3 (curated) → Redshift (serve)/EMR (heavy compute) → BI tools.

  • AWS S3 serves as the data lake, containing raw and curated data zones.
  • Lambda handles lightweight, event-driven tasks. For example, when a new file lands in S3, it can trigger a Glue job.
  • Glue supports serverless ETL and data crawling, such as cataloguing schemas into the AWS Glue Data Catalogue and running Spark-based transformations for small-to-medium-sized workloads. You can also use it to orchestrate and manage end-to-end ETL workflows. Glue is best suited for workloads with low operational overhead and small-to-medium-sized datasets.
  • EMR is used for heavier, customised, large-scale Spark or Hadoop workloads that require more control than Glue offers. It is best suited when you need greater control over Spark, Hive, or Presto clusters. Use EMR when you need specific libraries that Glue does not support.
  • Redshift serves as the data warehouse where you load curated and transformed data for BI and analytics, using the COPY command to load data from S3 or Redshift Spectrum to query data directly in S3 without loading it. It is especially useful for infrequently queried data.
  • You can also integrate Redshift Spectrum with Redshift Serverless and Iceberg tables on S3. This lets Redshift, EMR, and Athena query the same lakehouse tables without duplicating data.

29. A dashboard shows a sudden 20% revenue drop, but the source system looks correct. How would you debug it?

 Start by working backwards from the dashboard to the source system:

The structured approach can be as follows:

Dashboard → BI semantic layer → Warehouse (gold) → Transform (silver) → Raw ingestion (bronze) → Source system

The root causes can be as follows:

  • A timezone or date-boundary bug because a batch job cuts off at UTC midnight instead of the business timezone. It may drop the last few hours of a day.
  • A join fan-out or filter change introduced in the latest deploy.
  • A currency or unit conversion, or double-counting from a duplicate load.

We can debug in the following ways:

  1. Check the BI layer for any changes to filters, joins, or calculated fields.
  2. Examine the serving or warehouse table to confirm the latest ETL run completed successfully and loaded all data. Check the row counts and freshness.
  3. Validate the transformation layer to determine whether a recent code deployment changed any join, filter, or currency conversion logic.
  4. Verify ingestion to ensure that upstream data arrives completely without partial loads, late-arriving data, or time-zone cutoff issues.
  5. We can run SELECT SUM(revenue) at each layer.
  6. Use a data observability tool such as Monte Carlo, Great Expectations, or dbt tests to detect anomalies and automatically trigger alerts.

Compare row counts and aggregate sums at each layer to isolate where the numbers diverge.

30. Your ETL pipeline requires data validation rules. How would you handle it?

We should define validation rules at multiple levels, including the following:

  • Schema checks for data types and no unexpected nulls in required fields.
  • Business rule checks for value ranges, referential integrity, and uniqueness.
  • Statistical checks ensure the row count didn't drop 50% overnight and that total revenue stays within the expected historical range.
  • Freshness and volume checks verify that row counts are within the expected range and the data arrives on time.
  • Critical pipelines should fail and stop rather than load bad data. Less critical fields can also be quarantined while the rest of the load proceeds.

Implement these checks using a data quality framework like Great Expectations, dbt tests, or Soda. Run them as pipeline gates and alert the team whenever a check fails.

Conclusion

Data engineer interviews test two things: one, how well you understand core concepts (pipelines, data modelling, ETL/ELT, partitioning, batch vs. streaming) and two, whether you can apply them on a real platform. Knowing the answers above helps, but interviewers will probe how you have used them in practice, how you handled a failed pipeline, tuned a slow query, or designed a schema for changing business needs.

The fastest way to close that gap is hands-on practice with the platforms employers hire for. Pick the stack that matches your target role:

Both courses are instructor-led and project-based, so you leave with working examples you can discuss in your next interview.

FAQs

1. What topics are covered in a data engineer interview?

Most interviews cover SQL, Python, data modelling, ETL/ELT pipeline design, data warehousing, and distributed processing with tools like Spark. Depending on the role, expect platform-specific questions on Azure, AWS, Snowflake, or Databricks, along with scenario-based questions on pipeline failures, performance tuning, and data quality.

2. How do I prepare for a data engineer interview?

Start with SQL and Python, since most technical rounds test them. Then learn core concepts such as data modelling, partitioning, and batch vs. streaming processing. Finally, build one end-to-end pipeline project on your target platform so you can explain your design choices, trade-offs, and troubleshooting steps with examples.

3. Is coding asked in data engineer interviews?

Yes. Expect SQL queries, including joins, window functions, and aggregations, as well as Python tasks like data transformation and file handling. Senior roles often add system design rounds, where you design a scalable pipeline and justify your tool choices.

logoOn-Job Support Service

Online Work Support for your on-job roles.

jobservice
@Learner@SME

Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:

  • Pay Per Hour
  • Pay Per Week
  • Monthly
Learn MoreContact us
Course Schedule
NameDates
Snowflake Data Engineer TrainingDec 01 to Dec 16View Details
Snowflake Data Engineer TrainingDec 05 to Dec 20View Details
Snowflake Data Engineer TrainingDec 08 to Dec 23View Details
Snowflake Data Engineer TrainingDec 12 to Dec 27View Details
Last updated: 24 Nov 2026
About Author

Mohammed Zaid is a technical content creator and digital marketer with good experience in translating complex technologies into accessible insights. He specializes in writing expert articles on Agentic AI, Generative AI, LLMs, data strategy, and cloud computing for a global audience.
 

read less