Big Data and Data Engineering

ETL vs ELT; Data Cleansing and Transformation; Data Modeling

C-CAT

ETL vs ELT

ETL — Extract, Transform, Load

Process:

Source Data → EXTRACT → TRANSFORM (outside warehouse) → LOAD into DWH

When ETL?

  • When transformation is complex
  • When target system has limited compute

Traditional data warehouse era

  • When data governance requires transformation before storage

ELT — Extract, Load, Transform

Process:

Source Data → EXTRACT → LOAD into DWH (raw) → TRANSFORM (inside DWH)

When ELT?

  • Modern cloud warehouses (BigQuery, Snowflake) with massive compute
  • Need to keep raw data available
  • Transformations defined later
  • Data Lake approach

ETL vs ELT Comparison

FeatureETLELT
Transformation locationExternal ETL serverInside target system
OrderExtract → Transform → LoadExtract → Load → Transform
Data in targetClean/processedRaw + Processed
SpeedSlower (external transform)Faster (utilize DWH power)
Cloud-nativeNoYes
FlexibilityLessMore
ToolsSSIS, Informatica, Talenddbt, Spark, cloud-native
EraTraditionalModern

Data Cleansing and Transformation

Data Cleansing

Data cleansing / data cleaning involves detecting and correcting corrupt, inaccurate or irrelevant data.

Common Data Quality Issues:

IssueExampleSolution
Missing ValuesAge field is NULLImputation (mean, mode, median) or drop
DuplicatesSame customer twiceDeduplication (keep one record)
Incorrect formatDate stored as stringConvert to proper date type
OutliersSalary = $0 or $1 billionInvestigate and fix or remove
Inconsistent encoding"Male", "male", "M", "m"Standardize to one format
Extra spaces" Alice "Trim whitespace
Wrong data typesAge stored as floatCast to integer
Invalid valuesAge = -5Validate and correct

Data Transformation Types

TransformationDescriptionExample
MappingConvert from one format to another"M" → "Male"
FilteringRemove unwanted rows/columnsRemove test accounts
AggregationSummarize dataSum of daily sales
JoiningCombine multiple datasetsCustomer info + Order data
SplittingSplit one column into multipleFullName → FirstName + LastName
NormalizationScale values to standard rangeSalary 0-1 scale
EnrichmentAdd data from external sourcesAdd city from zip code

Data Modeling

What is Data Modeling?

Data modeling is the process of designing how data is organized, stored and related in a database.

Types of Data Models

ModelDescriptionUse
ConceptualHigh-level entities and relationshipsBusiness communication
LogicalDetailed entities, attributes and relationshipsDatabase design
PhysicalActual database tables, columns, data typesImplementation

ER Diagram (Entity-Relationship)

+----------+         +----------+         +----------+
| Customer |---1---<| Order    |>---1---| Product  |
|----------|         |----------|         |----------|
| cust_id  |         | order_id |         | prod_id  |
| name     |         | cust_id  |         | name     |
| email    |         | date     |         | price    |
| city     |         | total    |         | category |
+----------+         +----------+         +----------+

Continue learning

Related notes

Put this topic into timed practice

Open mock tests when you want full-exam pacing, or keep drilling in practice mode.