What Is ETL Testing? (Definition + Real-World Example)
ETL Testing is the process of validating data as it is Extracted from source systems, Transformed using business rules, and Loaded into a Data Warehouse (DW) or data lake.
The primary objective of ETL testing is to ensure that data is extracted correctly, transformed according to business requirements, and loaded into the target system without data loss, duplication, corruption, or inconsistencies.
ETL testing helps ensure that:
- Data is extracted accurately from one or more source systems.
- Business transformations are applied correctly.
- Data is loaded successfully into the target Data Warehouse or data lake.
- Reports and dashboards contain reliable and accurate information.
- Data quality, integrity, and consistency are maintained throughout the ETL process.
- Business reporting supports accurate decision-making.
Since organizations rely on Data Warehouses and data lakes for analytics, reporting, and operational insights, ETL testing plays a vital role in ensuring that business data remains trustworthy.
Real-World Example
A practical example of ETL testing can be seen in a telecom project where millions of customer transactions are processed every day.
In this scenario, daily call-detail records (CDRs) are extracted from multiple source systems, transformed to calculate billable duration, discounts, and taxes, and then loaded into fact tables for reporting and billing.
Scenario-based ETL testing ensures that:
- No data loss occurs during the extraction process.
- Transformations follow the approved Source-to-Target (S2T) mapping rules.
- Business calculations such as billable duration, discounts, and taxes are applied correctly.
- Data reconciliation between source and target is successful.
- Reports generated from the Data Warehouse exactly match the source totals.
Because production ETL environments involve complex business logic and large volumes of data, scenario-based ETL testing interview questions focus heavily on real production issues rather than theoretical concepts, requiring strong SQL skills and practical troubleshooting experience.
Data Warehouse Flow: Source → Staging → Transform → Load → Reporting
A typical Data Warehouse follows a structured ETL pipeline that moves data from operational systems to reporting and analytics platforms.
Source
The source layer contains operational business data collected from different systems.
Typical source systems include:
- OLTP databases.
- Files.
- APIs.
At this stage, ETL testing verifies that all required data is extracted successfully without omissions or corruption.
Staging
The staging layer temporarily stores raw extracted data before any business transformations are applied.
Its primary purposes include:
- Landing raw data.
- Supporting initial data validation.
- Simplifying troubleshooting.
- Enabling ETL restart and recovery.
Since no business transformations occur in the staging area, ETL testers verify that staging data exactly matches the source data.
Transformation
The transformation layer applies business rules to prepare the data for reporting and analytics.
Typical transformation activities include:
- Business rule implementation.
- Joins.
- Slowly Changing Dimension (SCD) logic.
- Data cleansing.
- Data standardization.
- Aggregations.
- Business calculations.
ETL testers validate that every transformation follows the approved Source-to-Target (S2T) mapping document and business requirements.
Load
After transformation, the processed data is loaded into the target Data Warehouse.
Typical target objects include:
- Fact tables.
- Dimension tables.
During this stage, ETL testers validate:
- Successful data loading.
- Record counts.
- Surrogate key generation.
- Referential integrity.
- Audit field population.
These validations ensure that the target warehouse contains complete, accurate, and consistent business data.
Reporting
The reporting layer provides business users with curated data for analysis and decision-making.
Typical reporting outputs include:
- BI dashboards.
- Analytics.
- MIS reports.
ETL testing ensures that reports accurately reflect the data stored in the Data Warehouse and support reliable business decisions.
Scenario-Based ETL Testing Interview Questions & Answers
(Basic → Advanced | Real-Time Focus)
Scenario-based ETL interview questions are designed to evaluate your ability to apply ETL concepts in real production environments rather than simply recalling definitions.
Interviewers typically assess your ability to:
- Explain ETL architecture and Data Warehouse concepts.
- Validate Source-to-Target (S2T) mappings.
- Verify transformation logic using SQL.
- Perform source-to-target reconciliation.
- Test fact and dimension tables.
- Validate Slowly Changing Dimensions (SCD Type 1 and Type 2).
- Verify full and incremental data loads.
- Validate audit fields and metadata.
- Test data quality and referential integrity.
- Troubleshoot production issues such as record count mismatches, duplicate records, NULL values, late-arriving data, schema changes, and performance bottlenecks.
- Ensure that business reports accurately reflect the data stored in the Data Warehouse.
Preparing both conceptual knowledge and practical, scenario-based ETL validation techniques will help you confidently answer ETL testing interview questions and demonstrate your ability to solve real-world production issues in enterprise ETL and Data Warehouse projects
Basic Scenario Based ETL Questions (1–15)
Scenario-Based ETL Testing Interview Questions & Answers
(Basic → Advanced | Real-Time Focus)
Scenario-based ETL interview questions are designed to evaluate your ability to solve real production issues rather than simply explain ETL concepts. Interviewers expect you to demonstrate strong SQL skills, data validation techniques, troubleshooting abilities, and an understanding of enterprise ETL workflows.
Basic Scenario-Based ETL Testing Questions (1–15)
1. Scenario: Source has 1,00,000 records, target has 98,000. What do you check?
Answer
When the target contains fewer records than the source, investigate the entire ETL pipeline to determine why records were not loaded.
Check the following:
- Transformation filters.
- Rejected records.
- Duplicate removal logic.
- Join conditions.
Also review ETL execution logs, error tables, incremental load conditions, and Source-to-Target (S2T) mappings to identify where records were excluded.
2. How do you validate record count in ETL testing?
Answer
Record count validation is performed by comparing the number of records in the source and target after applying all required transformations and filters.
The validation ensures that:
- All expected records are extracted.
- Valid records are loaded successfully.
- No records are lost.
- No unexpected duplicates are created.
If record counts differ, investigate ETL logs, reject tables, and transformation logic.
3. Scenario: NULL values appear in mandatory target columns. What do you test?
Answer
Validate the mapping logic responsible for handling NULL values.
Check the following:
- Default value logic.
- NULL-handling rules in the Source-to-Target (S2T) mapping.
- Transformation expressions.
- Source data quality.
- Lookup failures.
This helps determine whether the NULL values are caused by source data issues or ETL transformation defects.
4. What is Source-to-Target (S2T) validation?
Answer
Source-to-Target (S2T) validation is the process of verifying that each source field is correctly mapped, transformed, and loaded into the appropriate target column according to the approved mapping document.
The tester validates:
- Column mappings.
- Transformation rules.
- Lookup logic.
- Filter conditions.
- Data type conversions.
This ensures that business requirements are correctly implemented.
5. Scenario: Duplicate rows appear in the target but not in the source. Why?
Answer
Duplicate records in the target commonly occur because of:
- Incorrect joins.
- Missing deduplication logic.
Additional causes may include duplicate source processing, incorrect merge conditions, or restartability issues. The tester should validate business keys, join conditions, and deduplication logic.
6. What is staging area testing?
Answer
Staging area testing ensures that the staging data exactly matches the extracted source data before any transformations are applied.
Typical validations include:
- Record counts.
- Data values.
- No transformations.
- No data loss.
The staging area acts as the baseline for downstream ETL validation.
7. Scenario: Data type mismatch error during load. What do you validate?
Answer
Validate the following:
- Casting rules.
- Truncation rules.
- Precision and scale.
- Data type compatibility.
- Transformation expressions.
These checks ensure that data is converted correctly before being loaded into the target system.
8. What are audit fields?
Answer
Audit fields are metadata columns that help monitor ETL processing and maintain data lineage.
Common audit fields include:
- load_date
- batch_id
- created_by
- updated_date
These fields support tracking, auditing, and troubleshooting of ETL executions.
9. Scenario: ETL job fails mid-way. What do you test after rerun?
Answer
After rerunning the ETL job, validate:
- Restartability logic.
- Duplicate prevention logic.
Also verify that:
- Previously loaded records are not duplicated.
- Remaining records are processed successfully.
- Batch status is updated correctly.
10. What is data reconciliation?
Answer
Data reconciliation is the process of matching totals, counts, and business metrics between the source and target systems.
Common reconciliation activities include:
- Record count comparison.
- Aggregate validation.
- Financial total verification.
- Business calculation checks.
Successful reconciliation confirms that the ETL process preserved data integrity.
11. Scenario: Wrong data in report but DW table looks correct. What next?
Answer
Validate:
- Report query logic.
- Aggregation grain.
Also review:
- Report filters.
- Joins.
- Calculated fields.
- BI tool configurations.
This helps determine whether the issue exists in the reporting layer rather than the Data Warehouse.
12. What is full load vs incremental load?
Answer
Full Load
- Reloads all data.
- Used for initial loads or complete refreshes.
Incremental Load
- Loads only changed (delta) records.
- Improves ETL performance.
- Reduces processing time.
Incremental loading is typically implemented using Change Data Capture (CDC).
13. Scenario: Incremental load misses some records. What to check?
Answer
Validate:
- CDC logic.
- Watermark conditions.
Also review timestamps, change tracking mechanisms, and ETL scheduling to ensure all eligible records are captured.
14. What is reject data testing?
Answer
Reject data testing validates records that fail ETL validation rules.
The tester verifies:
- Rejected records.
- Error reason codes.
- Reject tables.
- Reject counts.
- Reprocessing capability.
This ensures that invalid records are isolated without affecting valid data.
15. Why is SQL critical for ETL testing?
Answer
SQL is the primary tool used to validate data accuracy and transformations throughout the ETL process.
- Compare source and target data.
- Validate business rules.
- Perform data reconciliation.
- Detect duplicates.
- Verify aggregations.
Strong SQL skills are essential for effective ETL testing.
Intermediate Scenario-Based ETL Questions (16–35)
These questions assess your ability to troubleshoot common ETL issues encountered in production environments.
16. Scenario: Customer address changes. How do you test it?
Answer
Validate the creation of a new SCD Type 2 history record.
Verify:
- A new row is inserted.
- The old row is expired.
- Effective dates are updated correctly.
- current_flag is maintained accurately.
17. What is SCD Type 1?
Answer
SCD Type 1 overwrites old data without maintaining historical information.
Only the latest value is retained in the dimension table.
18. What is SCD Type 2?
Answer
SCD Type 2 maintains historical data by creating a new record whenever a tracked attribute changes.
It typically uses:
- effective_from
- effective_to
- current_flag
This preserves historical versions of dimension records.
19. Scenario: Fact record arrives before dimension. What is this called?
Answer
This is called a late-arriving dimension scenario.
The tester validates:
- Dummy or unknown key usage.
- Temporary surrogate keys.
- Correct dimension updates when the missing record becomes available.
20. How do you test surrogate key generation?
Answer
Verify that surrogate keys are:
- Unique.
- Non-null.
- Generated correctly.
- Properly referenced by fact tables.
21. Scenario: Aggregated totals don’t match source. What do you test?
Answer
Validate:
- GROUP BY logic.
- Transformation rules.
Also verify business calculations, filters, joins, and aggregation levels.
22. What is hashing used for in ETL testing?
Answer
Hashing is commonly used for:
- Change detection.
- Deduplication.
- Data reconciliation.
- Efficient comparison of large datasets.
23. Scenario: Many-to-many join inflates data. How to test?
Answer
Validate join cardinality.
Review:
- Join conditions.
- Business key relationships.
- Duplicate generation.
- Lookup logic.
24. How do you test referential integrity?
Answer
Ensure that every foreign key in the fact table exists in the corresponding dimension table.
This prevents orphan records and ensures consistent reporting.
25. Scenario: Negative revenue appears in report. What do you test?
Answer
Validate:
- Business rule implementation.
- Transformation logic.
- Source transactions.
- Refund or reversal processing.
This helps determine whether the negative revenue is expected or indicates an ETL defect.
26. What is CDC (Change Data Capture)?
Answer
Change Data Capture (CDC) is the process of capturing and processing only changed data instead of reloading the entire dataset.
It improves ETL efficiency and reduces processing time.
27. Scenario: Date values shift by one day. Why?
Answer
This usually occurs because of time zone conversion issues.
Validate:
- Time zone settings.
- Timestamp conversions.
- Business calendar rules.
28. What is soft delete testing?
Answer
Soft delete testing verifies that deleted records are marked using a delete_flag instead of being physically deleted.
This preserves historical information for reporting and auditing.
29. Scenario: Schema changes in source. What do you test?
Answer
Validate ETL adaptability and schema drift handling.
Check for:
- Added columns.
- Removed columns.
- Renamed columns.
- Data type changes.
Ensure the ETL process adapts correctly to the modified schema.
30. How do you validate data masking?
Answer
Ensure that Personally Identifiable Information (PII) fields are properly obfuscated.
Typical fields include:
- Customer names.
- Email addresses.
- Phone numbers.
- Account numbers.
This helps protect sensitive information and supports data privacy requirements.
31. Scenario: Reprocessing rejected records. What to validate?
Answer
Validate:
- Corrected data.
- Updated record counts.
- Successful loading into the target.
- Removal from reject tables.
- Data reconciliation.
32. What is partition testing?
Answer
Partition testing validates that data is loaded into the correct table partitions based on the defined partitioning strategy.
This improves query performance and simplifies data management.
33. Scenario: Historical reload requested. What do you test?
Answer
Verify:
- Duplicate prevention.
- Historical data preservation.
- SCD logic.
- Record counts.
- Effective dates.
34. How do you validate BI reports?
Answer
Reconcile BI reports with Data Warehouse tables by comparing:
- Totals.
- KPIs.
- Business metrics.
- Dashboard values.
This ensures reports accurately represent warehouse data.
35. What is end-to-end ETL testing?
Answer
End-to-end ETL testing validates the complete data flow across the ETL pipeline:
- Source → Staging
- Staging → Transformation
- Transformation → Data Warehouse
- Data Warehouse → Reports
This ensures data remains accurate and consistent throughout the entire process.
Advanced & Real-Time ETL Scenarios (36–55)
These questions evaluate your ability to troubleshoot complex ETL issues commonly encountered in enterprise production environments.
36. Scenario: ETL job misses SLA. What do you analyze?
Answer
Analyze:
- Query plans.
- Indexing.
- Partitioning.
These checks help identify performance bottlenecks and optimize ETL execution.
37. How do you test ETL performance tuning?
Answer
Validate:
- Execution plans.
- Join strategies.
- Index utilization.
- Partition pruning.
- Query optimization.
These activities help ensure ETL jobs complete within the required SLA.
38. Scenario: Parallel jobs cause deadlocks. What test?
Answer
Validate:
- Concurrency.
- Locking behavior.
- Transaction isolation.
- Deadlock prevention.
- Data consistency.
39. How do you validate window functions?
Answer
Verify that window functions correctly implement:
- Ranking.
- Deduplication.
- SCD logic.
Common functions include ROW_NUMBER(), RANK(), and DENSE_RANK().
40. Scenario: Late data impacts aggregates. What do you do?
Answer
Recalculate the affected partitions and refresh summary tables to ensure reports accurately reflect the newly received data.
41. How do you test audit/control tables?
Answer
Validate:
- Batch status.
- Row counts.
- Batch IDs.
- Execution timestamps.
- Error counts.
These tables provide operational visibility into ETL processing.
42. Scenario: Regulatory report mismatch. First step?
Answer
The first step is to verify the Source-to-Target (S2T) mapping.
Then validate:
- Aggregation logic.
- Business rules.
- Data reconciliation.
- Report queries.
43. How do you test ETL rollback?
Answer
Ensure that:
- Partial loads are reverted.
- Transactions are rolled back.
- Previous data remains intact.
- Recovery procedures execute successfully.
44. Scenario: Source file arrives late. What to test?
Answer
Validate:
- Dependency handling.
- Rerun logic.
- Scheduling.
- Downstream processing.
- Recovery procedures.
45. How do you validate checksum/hash totals?
Answer
Generate and compare checksum or hash totals between the source and target datasets.
This confirms:
- Data consistency.
- No unexpected changes during ETL processing.
46. Scenario: Currency conversion mismatch. What to test?
Answer
Validate:
- Exchange rate tables.
- Conversion logic.
- Effective dates.
- Business calculation rules.
47. How do you test cloud ETL pipelines?
Answer
Validate:
- Scalability.
- Cost optimization.
- Performance.
- Resource utilization.
- Auto-scaling behavior.
48. Scenario: NULLs after LEFT JOIN. Why?
Answer
Unexpected NULL values after a LEFT JOIN usually indicate missing matching dimension records.
Verify:
- Dimension data availability.
- Join conditions.
- Lookup mappings.
49. How do you test archival logic?
Answer
Validate:
- Movement to history tables.
- Archive completeness.
- Record counts.
- Historical accessibility.
- Data retention policies.
50. Scenario: Incorrect SCD expiry date. Root cause?
Answer
A common root cause is an error in the effective date logic.
Verify:
- Effective dates.
- Expiry dates.
- current_flag updates.
- Version management.
51. How do you validate metadata tables?
Answer
Validate:
- Batch IDs.
- Execution timestamps.
- Record counts.
- Job status.
- Error counts.
Metadata tables support ETL monitoring, auditing, and troubleshooting.
52. Scenario: Unexpected data spike. What test?
Answer
Investigate:
- Source anomalies.
- Business rule changes.
- Duplicate processing.
- Incremental load logic.
- Aggregation accuracy.
This helps determine whether the spike is caused by genuine business activity or an ETL defect.
53. How do you test restartability?
Answer
Restartability testing ensures that an ETL job can resume safely after a failure without creating duplicate records or losing data.
Validate that:
- The ETL job resumes from the correct checkpoint.
- Previously loaded records are not processed again.
- Duplicate records are not created.
- Remaining records are loaded successfully.
- Data reconciliation is successful after rerun.
A successful restartability test confirms that the ETL process is idempotent and can recover reliably from failures.
54. Scenario: Data quality threshold breached. What action?
Answer
When a data quality threshold is breached:
- Reject the affected records.
- Generate alerts or notifications.
- Log the issue for investigation.
- Correct the underlying data or ETL logic.
- Reprocess the affected records after the issue is resolved.
This approach helps maintain data quality while preventing inaccurate data from reaching the Data Warehouse.
55. How do you perform real-time ETL testing?
Answer
Real-time ETL testing validates the complete data flow across the production ETL pipeline:
- Source → Staging: Verify that staging data matches the extracted source data.
- Staging → Transformation: Validate business rules, joins, calculations, lookups, and transformation logic.
- Transformation → Target Data Warehouse: Confirm accurate loading of fact and dimension tables, including record counts, surrogate keys, referential integrity, and audit fields.
- Data Warehouse → Reports: Reconcile report totals, KPIs, dashboards, and business metrics with the underlying Data Warehouse tables.
Successful real-time ETL testing ensures that data remains accurate, complete, consistent, and reliable from the source systems through to the final business reports and analytics.
Real SQL Query Examples for ETL Validation
SQL is one of the most important skills for ETL testers because it is used to validate data extraction, transformation, loading, reconciliation, and performance. In scenario-based ETL testing, SQL helps verify that business rules are correctly implemented and that the Data Warehouse (DW) accurately reflects the source systems.
The following SQL examples demonstrate common validation techniques used in enterprise ETL and Data Warehouse projects.
Sample Tables
The following sample tables represent a simple ETL pipeline used for validation.
Source Table
src_orders(
order_id,
cust_id,
amount,
order_dt
)
Description
- order_id – Unique order identifier.
- cust_id – Customer identifier from the source system.
- amount – Order amount.
- order_dt – Date on which the order was placed.
Dimension Table
dim_customer(
cust_sk,
cust_id,
current_flag
)
Description
- cust_sk – Surrogate key generated in the Data Warehouse.
- cust_id – Business (natural) customer identifier.
- current_flag – Indicates whether the record is the current active version.
Fact Table
fact_sales(
order_id,
cust_sk,
amount,
load_dt
)
Description
- order_id – Order identifier.
- cust_sk – Customer surrogate key.
- amount – Sales amount after transformation.
- load_dt – Date when the record was loaded into the Data Warehouse.
1. Record Count Validation
Record count validation is the first and most fundamental ETL validation. It confirms that all expected records have been successfully loaded into the target after ETL processing.
Source Query
SELECT COUNT(*)
FROM src_orders;
Target Query
SELECT COUNT(*)
FROM fact_sales;
Purpose
This validation helps ensure that:
- All source records are extracted successfully.
- All expected records are loaded into the target.
- No records are lost during ETL processing.
- No unexpected duplicate records are created.
If the source and target counts do not match, investigate:
- Transformation filters.
- Rejected records.
- Incremental load logic.
- ETL execution logs.
- Source-to-Target (S2T) mappings.
2. JOIN Validation
JOIN validation verifies that every fact record has a corresponding dimension record.
SELECT COUNT(*) AS missing_dim
FROM fact_sales f
LEFT JOIN dim_customer d
ON f.cust_sk = d.cust_sk
WHERE d.cust_sk IS NULL;
Purpose
This query validates:
- Referential integrity.
- Dimension lookup success.
- Fact-to-dimension relationships.
- Correct surrogate key mapping.
If the query returns one or more rows, it indicates missing dimension records or failed lookups that should be investigated.
3. GROUP BY Aggregation Validation
Aggregation validation compares summarized business values between the source and target.
SELECT cust_id,
SUM(amount)
FROM src_orders
GROUP BY cust_id;
Purpose
This validation ensures that:
- Customer-level totals are accurate.
- Business calculations are preserved.
- Revenue totals remain consistent.
- Reports match the source data.
Aggregation validation is widely used in finance, banking, insurance, retail, healthcare, and telecom Data Warehouse projects.
4. Window Function – Deduplication
Window functions are commonly used to identify duplicate records and retain only the required version of each record.
SELECT *
FROM
(
SELECT order_id,
ROW_NUMBER() OVER
(
PARTITION BY order_id
ORDER BY order_dt DESC
) rn
FROM src_orders
) t
WHERE rn = 1;
Purpose
This query helps:
- Detect duplicate records.
- Keep the latest record for each order_id.
- Validate deduplication logic.
- Support incremental ETL processing.
The ROW_NUMBER() function assigns a sequential number to records within each order_id, allowing only the latest record to be selected.
5. Performance Tuning Validation
Performance validation helps determine how efficiently SQL queries execute against large datasets.
EXPLAIN
SELECT *
FROM fact_sales
WHERE load_dt >= CURRENT_DATE – 1;
Purpose
This query helps analyze:
- Query execution plans.
- Index utilization.
- Table scans.
- Partition pruning.
- Estimated execution cost.
- Overall SQL performance.
Reviewing the execution plan helps identify optimization opportunities and improve ETL job execution time.
ETL Tools Commonly Asked in Interviews
Interviewers frequently ask about ETL tools to evaluate your exposure to enterprise data integration platforms. However, they generally focus more on your ETL concepts, SQL knowledge, data validation techniques, and problem-solving abilities than on tool-specific user interface expertise.
Informatica
Common interview topics include:
- Mappings.
- Workflows.
- Sessions.
- Transformations.
- Repository management.
Microsoft SQL Server Integration Services (SSIS)
Frequently discussed topics include:
- Control Flow.
- Data Flow.
- Packages.
- SQL-centric ETL development.
- Error handling.
Ab Initio
Interviewers may ask about:
- High-performance ETL graphs.
- Parallel processing.
- Components.
- Enterprise data integration.
Pentaho
Common topics include:
- Kettle transformations.
- Jobs.
- Data integration.
- Open-source analytics.
Talend
Typical interview discussions include:
- Cloud ETL.
- Open-source ETL development.
- Job design.
- Data migration.
- Integration components.
Interview Tip:
Strong SQL skills, Source-to-Target (S2T) mapping knowledge, data reconciliation techniques, and ETL validation concepts are generally considered more important than expertise in any specific ETL tool.
ETL Defect Examples + Test Case Sample
Understanding real-world ETL defects helps testers identify root causes, validate fixes, and prevent production issues.
Defect Example
Issue
Duplicate records in the fact table.
Root Cause
Incorrect join logic.
Fix
- Correct the join keys.
- Add deduplication logic.
- Validate business key uniqueness.
- Re-run the ETL process.
- Perform reconciliation to confirm that duplicate records have been eliminated.
Sample Test Case
Test Case
Validate SCD Type 2 update
Objective
Verify that historical changes are preserved correctly using Slowly Changing Dimension Type 2 (SCD Type 2).
Validation Steps
- Load an initial customer record into the dimension table.
- Modify one or more customer attributes in the source system.
- Execute the ETL process.
- Verify that a new dimension record is inserted.
- Confirm that the previous record is expired.
- Validate effective and expiry dates.
- Verify the current_flag value.
Expected Result
- The old record is expired.
- A new record is inserted with current_flag = ‘Y’.
- Historical data is preserved correctly.
- Effective and expiry dates are maintained accurately.
- A new surrogate key is generated for the updated record.
Scenario-Based ETL Testing – Quick Revision Sheet
Use the following checklist as a quick revision before attending ETL testing interviews.
Data Validation
- Validate record counts.
- Compare aggregated sums.
- Check NULL values.
- Detect duplicate records.
- Verify referential integrity.
Mapping Validation
- Check Source-to-Target (S2T) mapping line by line.
- Validate transformation rules.
- Verify lookup logic.
- Confirm filter conditions.
Data Warehouse Concepts
- Test SCD Type 1.
- Test SCD Type 2.
- Validate audit fields.
- Verify hashing and checksum validation.
- Validate surrogate keys.
SQL Techniques
- Use JOIN for data comparison.
- Use GROUP BY for aggregation validation.
- Use window functions such as ROW_NUMBER() for deduplication.
- Analyze execution plans using EXPLAIN.
End-to-End Validation
Always reconcile:
- Source data.
- Target data.
- Business reports.
This ensures that the complete ETL pipeline—from extraction to reporting—produces accurate, complete, consistent, and reliable data.
Frequently Asked Questions (FAQs)
Q1. What are scenario-based ETL testing interview questions?
Answer
Scenario-based ETL testing interview questions focus on real-time ETL issues that commonly occur in production environments.
These scenarios include:
- Record count mismatches.
- ETL job reruns.
- Duplicate records.
- Late-arriving data.
- Data reconciliation.
- Performance bottlenecks.
- Restartability.
- Source-to-Target (S2T) mapping validation.
Interviewers use these questions to evaluate your practical problem-solving skills and your ability to troubleshoot production ETL issues.
Q2. Which SQL is mandatory for ETL testing?
Answer
ETL testers should have strong SQL skills for validating data throughout the ETL lifecycle.
The most important SQL concepts include:
- JOINs for comparing source and target data.
- GROUP BY for aggregation validation.
- Window functions such as ROW_NUMBER(), RANK(), and DENSE_RANK() for deduplication and ranking.
- Aggregate functions such as SUM(), COUNT(), AVG(), MIN(), and MAX().
- Performance tuning queries using EXPLAIN or EXPLAIN ANALYZE.
Strong SQL knowledge enables ETL testers to validate business rules, reconcile large datasets, identify data quality issues, and troubleshoot production ETL problems efficiently.
Q3. How do you test SCD2 in real projects?
Answer
Testing Slowly Changing Dimension Type 2 (SCD Type 2) involves verifying that historical versions of dimension records are preserved while the latest version is correctly identified.
Key validations include:
- Historical rows are maintained instead of being overwritten.
- A new record is inserted whenever a tracked attribute changes.
- effective_from and effective_to dates are populated correctly.
- The latest record is marked with current_flag = ‘Y’.
- Previous records are properly expired.
- A new surrogate key is generated for each updated version.
Successful SCD Type 2 validation ensures accurate historical reporting, reliable analytics, complete traceability of changes, and compliance with enterprise data warehouse requirements.

