What is the difference between ETL (Extract, Transform, Load) and ELT (Extract, Load, Transform), and why has ELT become the common approach?
Answer
In ETL, data is extracted from sources, transformed on a separate processing server, and only the cleaned result is loaded into the warehouse. In ELT, raw data is loaded into the warehouse first and transformed there using SQL and the warehouse's own compute. ELT became popular because cloud warehouses such as Snowflake, BigQuery, Redshift and Databricks provide cheap storage and elastic compute, so it is simpler to keep raw data and transform it in place.
How each pipeline flows
ETL: Sources, then an ETL engine (Informatica, Talend, SSIS, custom Spark jobs) cleans, joins and aggregates, then the warehouse receives only the final tables.
ELT: Sources, then a loader (Fivetran, Airbyte, Debezium plus Kafka, or custom scripts) copies raw data into staging tables, then SQL models (commonly with dbt) build cleaned and aggregated tables inside the warehouse.
Storage is cheap, so keeping the raw copy costs little and gives you full history.
Warehouse compute scales on demand, so heavy transformations no longer need a separate cluster.
Reprocessing is easy. If a business definition changes, such as what counts as an "active user", you rebuild tables from raw data without touching source systems.
SQL-first tooling like dbt brings version control, tests and documentation to transformations, so analysts can own them.
Faster ingestion. Loading first means data arrives quickly even before models are ready.
When ETL still makes sense
Personal or regulated data must be masked or dropped before it enters the analytics platform, for example card numbers under PCI DSS or personal data under India's DPDP Act.
The target is a system that cannot transform data well, such as an operational database or a search index.
Heavy non-SQL processing like image processing or ML feature extraction is needed before loading.
In practice many pipelines are hybrid: light cleaning or masking in flight, then the bulk of modelling in the warehouse.
A typical modern stack
Change data capture streams orders from PostgreSQL.
Raw rows land in a raw.orders table or as Parquet in S3.
dbt models build staging.orders, then marts.daily_revenue.
BI tools like Metabase, Looker or Power BI read the marts.
Optionally, reverse ETL pushes computed fields back into tools such as a CRM.
A typical ELT pipeline. Raw data lands first; transformation happens inside the warehouse.
Sources: App databases, payment logs, SaaS APIs.
Extract and load: Fivetran, Airbyte or CDC copy raw rows.
Raw layer: Untouched data kept for reprocessing.
Transform with SQL: dbt models clean, join and aggregate.
Marts and dashboards: BI tools query modelled tables.
Code examples
A dbt model transforming raw data in the warehouse
-- models/marts/daily_revenue.sql
-- Runs inside Snowflake/BigQuery/Redshift when you execute: dbt run
with orders as (
select * from {{ ref('stg_orders') }} -- cleaned staging model
where status = 'DELIVERED'
)
select
order_date,
city,
count(*) as orders,
sum(amount_paise) / 100.0 as revenue_rupees
from orders
group by order_date, city
The T in ELT is just versioned SQL. dbt resolves ref() to the right table, orders models by dependency, and runs them in the warehouse.
Key points
ETL transforms before loading; ELT loads raw data and transforms inside the target
ELT relies on cheap cloud storage and elastic warehouse compute
Keeping raw data makes reprocessing easy when business logic changes
ETL still fits when sensitive data must be masked before landing
dbt is the common tool for the transform step in ELT
Common follow-up questions
What is change data capture and how does it feed an ELT pipeline?
What is reverse ETL?
How would you handle PII in an ELT pipeline?
What is the medallion (bronze, silver, gold) architecture?
Interview tips
Explain the difference as 'where does the transform run', then give the reason ELT won
Name real tools for each stage; it shows practical familiarity
Mention a case where ETL is still right, such as masking PII before load