ETL Testing Interview Questions for Testers – Complete Practical Guide with SQL & Real Scenarios

What is ETL Testing? (Definition + Example)

ETL Testing is the process of verifying that data is correctly Extracted from source systems, Transformed based on business rules, and Loaded into the target data warehouse or data mart without data loss, duplication, or corruption. 

Unlike traditional database testing, ETL testing focuses on validating the complete data movement process—from multiple source systems to the final reporting layer. The objective is to ensure that the right data reaches the right destination while maintaining data quality, consistency, and business integrity. 

Organizations rely on ETL testing because business intelligence reports, dashboards, and analytics are only as reliable as the data loaded into the data warehouse. Even a small transformation error can lead to incorrect business decisions. 

Real-World Example 

Consider an e-commerce project where data is collected from multiple systems and consolidated into a data warehouse. 

The ETL process works as follows: 

  • Orders data is extracted from MySQL and CSV files.  
  • Business rules apply discounts, currency conversion, and deduplication.  
  • Data is loaded into fact and dimension tables.  
  • Reports show daily revenue and customer trends.  

An ETL tester validates: 

  • Source-to-Target (S2T) mappings  
  • Transformation logic  
  • Record counts and data accuracy  
  • Performance and restartability  

This makes ETL testing interview questions for testers highly focused on SQL, logic validation, and real production scenarios. 

Data Warehouse Flow – Source → Staging → Transform → Load → Reporting 

A typical ETL process follows multiple layers before data becomes available for reporting and analytics. 

Typical ETL / DW Architecture 

Layer Description Testing Focus 
Source OLTP databases, APIs, and flat files Verify data completeness and successful extraction 
Staging Temporary storage for raw extracted data Validate data cleansing, duplicate removal, and extraction accuracy 
Transformation Business rules, calculations, and SCD processing Verify transformation logic and business rule implementation 
Load Fact and Dimension tables Validate surrogate keys, referential integrity, and successful loading 
Reporting BI dashboards and reports Verify aggregations, calculations, and reporting accuracy 

Each layer requires dedicated validation to ensure that no data is lost or incorrectly transformed during the ETL process. 

Key ETL Tester Responsibilities 

An ETL tester is responsible for validating every stage of the ETL pipeline to ensure data quality and reliability. 

Major responsibilities include: 

  • Validate Source-to-Target (S2T) mapping documents.  
  • Verify both incremental and full data loads.  
  • Check audit fields such as batch_id, load_date, created_date, and updated_date.  
  • Perform source-to-target reconciliation.  
  • Validate data completeness and accuracy.  
  • Execute SQL queries for data validation.  
  • Perform hashing and checksum validation for large datasets.  
  • Validate duplicate removal and data cleansing.  
  • Ensure referential integrity between fact and dimension tables.  
  • Verify ETL job performance and restartability.  

ETL Testing Interview Questions for Testers (Basic → Advanced) 

Basic ETL Testing Interview Questions 

1. What is ETL testing? 

Answer: 

ETL testing is the validation of the Extraction, Transformation, and Loading process used in data warehouses. 

Its purpose is to verify that: 

  • Data is extracted correctly from source systems.  
  • Business transformations are applied accurately.  
  • Data is loaded successfully into target tables.  
  • No records are lost, duplicated, or corrupted during processing.  

The ultimate goal is to ensure accurate reporting and reliable business intelligence. 

2. What is the purpose of staging tables? 

Answer: 

Staging tables are temporary storage areas used to hold raw extracted data before transformation. 

Their purposes include: 

  • Temporarily storing extracted data.  
  • Performing data cleansing.  
  • Removing duplicates.  
  • Validating extracted records.  
  • Improving ETL performance.  
  • Simplifying recovery when ETL jobs fail.  

Since staging tables contain raw data, they allow testers to compare source data with transformed data during validation. 

3. What is S2T mapping? 

Answer: 

S2T (Source-to-Target) Mapping is a document that defines how source columns are mapped to target columns, including all transformation rules. 

It specifies: 

  • Source table and column names.  
  • Target table and column names.  
  • Data types.  
  • Transformation logic.  
  • Default values.  
  • Lookup rules.  
  • Business calculations.  

ETL testers use the S2T mapping document as the primary reference while validating data movement and transformation. 

4. Difference between ETL testing and database testing? 

Answer: 

Although both involve SQL validation, they focus on different objectives. 

ETL Testing Database Testing 
Validates data extraction Validates database schema 
Checks transformations Checks constraints 
Verifies data loading Validates stored procedures 
Focuses on data movement Focuses on database objects 
Ensures reporting accuracy Ensures database integrity 

In short, ETL testing validates data movement and transformation, whereas database testing validates database structure and constraints. 

5. What are fact and dimension tables? 

Answer: 

Fact and dimension tables are the foundation of a data warehouse. 

Fact Tables 

Fact tables store measurable business metrics such as: 

  • Sales amount  
  • Revenue  
  • Quantity sold  
  • Profit  

Fact tables usually contain foreign keys pointing to dimension tables. 

Dimension Tables 

Dimension tables store descriptive business information such as: 

  • Customer  
  • Product  
  • Location  
  • Date  
  • Employee  

They provide context for the numerical data stored in fact tables. 

Intermediate ETL QA Questions 

6. What is SCD Type 1? 

Answer: 

Slowly Changing Dimension (SCD) Type 1 overwrites old data with new values without maintaining historical records. 

For example: 

  • Customer City changes from Delhi to Mumbai.  
  • The old value is replaced completely.  
  • No history of the previous value is retained.  

Type 1 is suitable when historical information is not required. 

7. What is SCD Type 2? 

Answer: 

SCD Type 2 maintains historical records by creating a new row whenever a change occurs. 

It commonly uses columns such as: 

  • effective_date  
  • expiry_date  
  • active_flag  
  • surrogate_key  

Instead of overwriting existing data, a new record is inserted while preserving previous versions. 

This approach is useful when historical reporting is required. 

8. What is incremental load? 

Answer: 

Incremental loading means loading only new or modified records since the previous ETL execution. 

Instead of loading the entire dataset every time, the ETL process identifies changes using: 

  • Timestamp columns  
  • Batch IDs  
  • Change Data Capture (CDC)  
  • Last modified dates  

Incremental loads improve performance and reduce processing time. 

9. What are audit fields? 

Answer: 

Audit fields are metadata columns used to track ETL processing. 

Common audit fields include: 

  • created_date  
  • updated_date  
  • batch_id  
  • load_date  
  • created_by  
  • updated_by  

These fields help monitor data lineage, ETL execution, troubleshooting, and auditing. 

10. What is data reconciliation? 

Answer: 

Data reconciliation is the process of comparing source data and target data to ensure consistency. 

It helps verify: 

  • Record counts  
  • Data accuracy  
  • Missing records  
  • Duplicate records  
  • Aggregate totals  
  • Business calculations  

Reconciliation ensures that the data loaded into the warehouse matches the original source data. 

Advanced / Real-Time ETL Interview Questions 

11. How do you test large ETL loads? 

Answer: 

Large ETL loads cannot always be validated record by record. 

Instead, testers use techniques such as: 

  • Record count validation  
  • Aggregate comparisons  
  • Hashing or checksum validation  
  • Data sampling  
  • SQL aggregation queries  
  • Duplicate detection  
  • Performance monitoring  

These methods ensure efficient validation of millions of records while maintaining accuracy. 

12. How do you validate transformations without ETL tool access? 

Answer: 

Even without access to the ETL tool, testers can validate transformations by writing SQL queries that replicate the business transformation logic. 

This involves: 

  • Applying the same calculations in SQL.  
  • Recreating lookup logic.  
  • Validating joins.  
  • Comparing SQL output with the target tables.  
  • Verifying business rules using source data.  

This approach ensures that transformation logic is correctly implemented. 

13. What is hashing in ETL testing? 

Answer: 

Hashing is a validation technique that uses checksum or hash values to compare large datasets efficiently. 

Instead of comparing every individual row, testers generate hash totals for source and target datasets. 

Hashing helps: 

  • Detect missing records.  
  • Identify unexpected changes.  
  • Validate large volumes of data quickly.  
  • Improve comparison performance.  

It is especially useful when working with millions of records. 

14. How do you test restartability of ETL jobs? 

Answer: 

Restartability testing verifies that an ETL job can resume correctly after a failure. 

The tester intentionally interrupts the ETL process and then verifies that: 

  • The job resumes from the correct checkpoint.  
  • Previously loaded records are not duplicated.  
  • No records are skipped.  
  • Data integrity is maintained after recovery.  

This testing ensures that ETL processes remain reliable in production environments. 

15. What is late-arriving dimension handling? 

Answer: 

Late-arriving dimension handling is a technique used when fact records arrive before their corresponding dimension records. 

In such cases: 

  • Fact records are loaded first.  
  • A default surrogate key is assigned temporarily.  
  • The correct dimension relationship is updated once the dimension data becomes available.  

This approach prevents ETL failures while maintaining referential integrity and ensuring that reporting can continue without interruption. 

Real SQL Query Examples for ETL Validation 

SQL is one of the most important skills for an ETL tester because almost every ETL validation activity involves writing SQL queries. These queries help verify data extraction, transformation logic, loading accuracy, duplicate detection, aggregation, and performance. 

The following examples demonstrate common SQL validations performed during ETL testing projects. 

Sample Source Table 

The source table contains raw order information extracted from the operational database. 

orders_src( 
   order_id, 
   customer_id, 
   amount, 
   order_date 

Description 

  • order_id – Unique order identifier.  
  • customer_id – Customer who placed the order.  
  • amount – Order amount from the source system.  
  • order_date – Date when the order was created.  

Sample Target Table 

The target table stores transformed data inside the data warehouse. 

fact_orders( 
   order_key, 
   cust_key, 
   total_amount, 
   order_dt 

Description 

  • order_key – Target order identifier (mapped from source).  
  • cust_key – Customer key.  
  • total_amount – Final transformed order amount.  
  • order_dt – Order date stored in the warehouse.  

Record Count Validation 

Record count validation ensures that the expected number of records has been successfully loaded from the source to the target. 

Source Query 

SELECT COUNT(*) 
FROM orders_src 
WHERE order_date >= ‘2024-01-01’; 

Target Query 

SELECT COUNT(*) 
FROM fact_orders 
WHERE order_dt >= ‘2024-01-01’; 

Purpose 

This validation is performed to ensure that: 

  • All eligible records have been extracted from the source.  
  • No records are lost during the ETL process.  
  • No additional or duplicate records are loaded into the target.  
  • Incremental or full loads are working correctly.  

If the source and target counts do not match, the tester should investigate rejected records, transformation filters, join conditions, and ETL error logs. 

JOIN Validation (Data Accuracy) 

Join validation compares corresponding records in the source and target to verify data accuracy after transformation. 

SELECT s.order_id, 
      s.amount, 
      f.total_amount 
FROM orders_src s 
JOIN fact_orders f 
ON s.order_id = f.order_key 
WHERE s.amount <> f.total_amount; 

Purpose 

This query helps validate that: 

  • Order amounts are transferred correctly.  
  • Transformation logic is accurate.  
  • No incorrect calculations occurred.  
  • Business rules have been applied properly.  

If any records are returned, it indicates a mismatch between the source and target values that must be investigated. 

GROUP BY Aggregation Validation 

Aggregation validation confirms that summarized values remain accurate after the ETL process. 

Source Query 

SELECT customer_id, 
      SUM(amount) 
FROM orders_src 
GROUP BY customer_id; 

Target Query 

SELECT cust_key, 
      SUM(total_amount) 
FROM fact_orders 
GROUP BY cust_key; 

Purpose 

This validation ensures that: 

  • Customer-level totals are accurate.  
  • Aggregate calculations are preserved.  
  • Revenue reporting remains correct.  
  • Business intelligence reports produce reliable results.  

Aggregation validation is commonly used for financial and sales reporting systems. 

Window Function – Duplicate Check 

Window functions help detect duplicate records without permanently modifying the data. 

SELECT order_key 
FROM 

   SELECT order_key, 
          ROW_NUMBER() OVER 
          ( 
              PARTITION BY order_key 
              ORDER BY order_dt 
          ) rn 
   FROM fact_orders 
) t 
WHERE rn > 1; 

Purpose 

This query is used to: 

  • Identify duplicate records.  
  • Validate primary business keys.  
  • Ensure ETL jobs do not load duplicate data.  
  • Verify incremental load logic.  

If any records are returned, duplicate data exists in the target table. 

Performance Tuning Validation 

Performance validation checks how efficiently SQL queries execute against large datasets. 

EXPLAIN ANALYZE 
SELECT * 
FROM fact_orders 
WHERE order_dt = ‘2024-06-01’; 

Purpose 

This query helps analyze: 

  • Query execution plan.  
  • Index usage.  
  • Table scans.  
  • Query execution time.  
  • Overall SQL performance.  

Performance validation is important for ensuring ETL jobs complete within defined Service Level Agreements (SLAs). 

Scenario-Based ETL Testing Questions with Answers 

Scenario-based questions evaluate your practical knowledge of ETL testing and your ability to troubleshoot real-world production issues. 

Scenario 1: Record Count Mismatch 

Question 

Source has 1,000,000 rows, but the target contains only 995,000 rows. What would you do? 

Answer 

Check the following: 

  • Filters applied during extraction or transformation.  
  • Rejected or error records.  
  • Join conditions that may exclude records.  
  • ETL error tables and execution logs.  
  • Incremental load logic.  
  • Duplicate removal rules.  

The objective is to identify why 5,000 records were not loaded into the target. 

Scenario 2: NULL Values in Target 

Question 

A mandatory column contains NULL values in the target table. How would you investigate? 

Answer 

Validate the following: 

  • Source data for NULL values.  
  • Default value logic.  
  • Transformation expressions.  
  • Lookup failures.  
  • Mapping configuration.  
  • ETL job logs.  

This helps determine whether the issue originated from the source or during transformation. 

Scenario 3: SCD Type 2 Not Working 

Question 

Historical records are being overwritten instead of preserved. What should you check? 

Answer 

Verify the implementation of: 

  • effective_date  
  • end_date  
  • active_flag  
  • Surrogate key generation  
  • Change detection logic  

These fields are essential for maintaining historical versions in an SCD Type 2 implementation. 

Scenario 4: Performance Issue 

Question 

The ETL job exceeds the defined SLA. How would you troubleshoot the issue? 

Answer 

Review the following: 

  • Database indexes.  
  • Table partitions.  
  • Parallel processing configuration.  
  • Push-down optimization.  
  • SQL query execution plans.  
  • Hardware resource utilization.  

Optimizing these areas can significantly reduce ETL execution time. 

ETL Tools Commonly Asked in Interviews 

Although interviewers may ask about ETL tools, they primarily evaluate your understanding of ETL concepts, SQL, and testing strategies rather than tool-specific user interfaces. 

The most discussed ETL tools include: 

Informatica 

Topics frequently asked include: 

  • Mappings  
  • Workflows  
  • Sessions  
  • Transformations  
  • Repository concepts  

Microsoft SSIS 

Common interview topics include: 

  • Control Flow  
  • Data Flow  
  • Variables  
  • Packages  
  • Error handling  

Ab Initio 

Interview discussions generally focus on: 

  • High-performance ETL processing  
  • Parallel execution  
  • Graph development  
  • Component usage  

Pentaho 

Common topics include: 

  • Kettle transformations  
  • Jobs  
  • Data integration  
  • Scheduling  

Talend 

Interviewers may ask about: 

  • Open-source ETL  
  • Cloud integration  
  • Job design  
  • Components  
  • Data migration  

Interview Tip: 
Interviewers mainly evaluate ETL logic, SQL skills, data validation techniques, troubleshooting ability, and testing approach, rather than just familiarity with a tool’s graphical interface. 

ETL Defect Examples (Real-Time) 

The following are some common ETL defects encountered in real-world projects. 

Defect Type Example 
Mapping defect Wrong source column mapped to the target column 
Data loss Valid records filtered out during transformation 
SCD defect Historical records not preserved correctly 
Performance ETL job exceeds the defined SLA 
Data type Data truncation or incorrect data type conversion issues 

Understanding these defects helps testers identify root causes and validate corrective actions effectively. 

Sample ETL Test Case 

Test Case: Validate SCD Type 2 – Customer Dimension 

Source Table 

customer_src 

Target Table 

dim_customer 

Validations 

Verify that: 

  • Only one active record exists for each customer.  
  • The previous record contains a valid end_date.  
  • A new surrogate key is generated for each updated record.  
  • Audit fields are correctly populated.  
  • Historical records are preserved.  
  • Active and inactive records are maintained correctly.  
  • Data matches the Source-to-Target (S2T) mapping document.  

A successful test confirms that the SCD Type 2 implementation preserves history while maintaining accurate customer information. 

ETL Testing Revision Sheet (Quick Review) 

Use the following checklist as a quick revision before interviews. 

Core ETL Concepts 

  • ETL architecture and data flow  
  • Source, Staging, Transformation, Load, and Reporting layers  
  • Source-to-Target (S2T) mapping validation  
  • Fact and Dimension tables  
  • Audit fields  

Data Warehouse Concepts 

  • SCD Type 1 vs SCD Type 2  
  • Incremental load vs Full load  
  • Surrogate keys  
  • Referential integrity  
  • Data reconciliation  

SQL Validation Topics 

  • Record count validation  
  • INNER JOIN validation  
  • LEFT JOIN and RIGHT JOIN  
  • GROUP BY validation  
  • Aggregate functions  
  • Window functions  
  • Duplicate detection  
  • NULL validation  
  • Data comparison queries  

ETL Validation Techniques 

  • Hash totals  
  • Checksums  
  • Source-to-target reconciliation  
  • Data completeness checks  
  • Data accuracy validation  
  • Business rule verification  

Performance Testing Basics 

  • Query optimization  
  • Index usage  
  • Partitioning  
  • Execution plan analysis  
  • Parallel processing  
  • Push-down optimization  
  • SLA validation  

 FAQs – ETL Testing Interview Questions for Testers 

Q1. What SQL level is required for ETL testers? 

Answer: 

ETL testers should have intermediate to advanced SQL skills, as SQL is the primary language used for validating data throughout the ETL process. 

A strong understanding of SQL enables testers to verify data extraction, transformation, loading, and reconciliation between source and target systems. 

ETL testers should be comfortable working with: 

  • INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN  
  • GROUP BY and HAVING clauses  
  • Aggregate functions such as SUM(), COUNT(), AVG(), MIN(), and MAX()  
  • Window functions like ROW_NUMBER(), RANK(), DENSE_RANK(), and LEAD()/LAG()  
  • Subqueries and Common Table Expressions (CTEs)  
  • Set operators such as UNION and UNION ALL  
  • CASE statements for implementing business logic  
  • NULL handling using COALESCE() and NVL()  
  • Duplicate detection queries  
  • Record count validation  
  • Data reconciliation queries  
  • Performance analysis using EXPLAIN or EXPLAIN ANALYZE  

Since most ETL validation activities are SQL-driven, interviewers often assess a candidate’s ability to write efficient queries and validate complex business rules. 

Q2. Is ETL testing manual or automated? 

Answer: 

ETL testing is primarily SQL-driven manual testing with selective automation. 

In most enterprise projects, testers manually validate data by writing SQL queries to compare source and target datasets, verify transformation logic, and ensure data quality. 

Manual ETL testing typically includes: 

  • Source-to-Target (S2T) mapping validation  
  • Record count verification  
  • Data reconciliation  
  • Transformation validation  
  • Duplicate detection  
  • Fact and dimension table validation  
  • Audit field verification  

Automation is generally introduced for repetitive and regression testing activities, such as: 

  • Scheduled SQL validations  
  • Automated data comparison scripts  
  • Regression testing of ETL jobs  
  • Continuous Integration/Continuous Deployment (CI/CD) pipeline validations  
  • Automated report generation  

Therefore, while automation improves efficiency, the core of ETL testing remains SQL-based manual validation supported by selective automation where appropriate. 

Q3. What is the most important skill for ETL testers? 

Answer: 

The most important skill for an ETL tester is understanding business logic combined with strong SQL validation skills. 

An ETL tester must be able to interpret business requirements and verify that the ETL process correctly transforms and loads data according to those rules. 

Key skills include: 

  • Strong SQL querying and data validation  
  • Understanding of ETL architecture  
  • Knowledge of data warehouse concepts  
  • Source-to-Target (S2T) mapping validation  
  • Fact and dimension table validation  
  • Slowly Changing Dimensions (SCD Type 1 and Type 2)  
  • Incremental and full load testing  
  • Data reconciliation techniques  
  • Performance validation  
  • Root cause analysis for ETL defects  
  • Analytical and problem-solving abilities  

In interviews, candidates are often evaluated not only on SQL syntax but also on their ability to explain how they would validate real-world ETL scenarios and troubleshoot production issues. 

Q4. How many ETL interview questions should testers prepare? 

Answer: 

It is recommended that testers prepare at least 60–100 ETL interview questions covering both theoretical concepts and real-world scenarios. 

A comprehensive preparation plan should include questions from the following areas: 

  • ETL fundamentals  
  • Data warehouse architecture  
  • Source-to-Target (S2T) mapping  
  • Fact and dimension tables  
  • Slowly Changing Dimensions (SCD Type 1 and Type 2)  
  • Incremental and full load testing  
  • SQL joins and subqueries  
  • GROUP BY and aggregate functions  
  • Window functions  
  • Record count validation  
  • Data reconciliation  
  • Duplicate detection  
  • Audit field validation  
  • Hash totals and checksum validation  
  • Performance tuning basics  
  • Restartability testing  
  • Real-time ETL defect scenarios  
  • Scenario-based interview questions  
  • Common ETL tools and testing approaches  

Preparing a wide range of questions helps build confidence and ensures you are ready to answer both conceptual and scenario-based interview questions commonly asked in ETL testing interviews. 

Leave a Comment

Your email address will not be published. Required fields are marked *