Skip to content
Sajith JeewanthaSoftware Engineer

Track 05 · Core

Data Engineering

Move, model and trust data at scale: SQL and data modelling, batch and streaming pipelines, lakehouse tables, orchestration and data quality, and the pipelines that feed AI: training-data curation, deduplication and embeddings.

Last updated
Total effort
820 h · ≈ 82 weeks
Your progress

Overview

Data engineering builds the systems that turn raw, messy data into reliable, well-modelled datasets that people and models can use. That means ingesting from databases, APIs and event streams; transforming with SQL and Spark; storing in warehouses and open lakehouse tables (Iceberg, Delta); orchestrating it all on a schedule or in real time; and proving it's correct with tests, contracts and monitoring. In the AI era the same craft feeds models: pre-training corpora are filtered and deduplicated at web scale, fine-tuning sets are curated and versioned, and RAG systems depend on chunking-and-embedding pipelines that must stay fresh.

Why it matters heading into 2027

Every AI system is only as good as its data, and companies have learned that the hard part of AI projects is usually the data plumbing. The WEF Future of Jobs 2025 report lists AI and big data as the fastest-growing skills, Indeed finds 45% of data and analytics postings now mention AI, and SQL rose to the #2 language in the 2026 Stack Overflow survey. Data engineering is also one of the most direct routes into ML and deep learning work, because data quality decides model quality.

Prerequisites

  • Python for scripting and data wrangling (pandas or polars).
  • Basic SQL: SELECT, WHERE, GROUP BY, JOIN.
  • Command line, Git and Docker basics (Software Engineering Beginner).

Learning path

How the stages build on each other, and where this track hands off to others.

flowchart TB
  P["Prereqs: Python · basic SQL · Docker"] --> B
  subgraph B["1 · Beginner — SQL & batch basics"]
    direction LR
    B1["advanced SQL"] --> B2["data modelling"] --> B3["ETL / ELT script"]
  end
  subgraph I["2 · Intermediate — pipelines"]
    direction LR
    I1["warehouse + dbt"] --> I2["orchestration"] --> I3["data quality tests"]
  end
  subgraph A["3 · Advanced — scale & streaming"]
    direction LR
    A1["Spark"] --> A2["lakehouse tables"] --> A3["Kafka streaming"] --> A4["CDC"]
  end
  subgraph E["4 · Expert — platforms & data for AI"]
    direction LR
    E1["data contracts"] --> E2["LLM corpus pipeline"] --> E3["embeddings pipeline"] --> E4["cost & governance"]
  end
  B --> I --> A --> E
  E -.-> DL["Deep Learning: pre-training data"]
  E -.-> ML["ML Engineering: features"]
  A -.-> ARCH["Software Architecture"]

Stages

Tick items as you go — progress is saved in this browser only. Times are focused hours (reading + building); the week estimates follow the study time you pick above.

01Beginner100 h · ≈ 10 weeksBecome fluent in SQL and data modelling, and write your first reliable batch pipeline.

Key concepts

Build these

Ready for the next stage when…

02Intermediate180 h · ≈ 18 weeksBuild production-style pipelines: a cloud warehouse, dbt transformations, orchestration, and data-quality checks.

Key concepts

Build these

Ready for the next stage when…

03Advanced240 h · ≈ 24 weeksHandle scale and real time: distributed processing with Spark, open lakehouse tables, streaming with Kafka, and CDC.

Key concepts

Build these

Ready for the next stage when…

04Expert300 h · ≈ 30 weeksDesign data platforms and the pipelines that feed AI: data contracts and governance, LLM training-corpus curation, deduplication at scale, and embeddings pipelines for RAG.

Key concepts

Build these

Ready for the next stage when…

Field guide

The ideas behind the checklist, with diagrams and the math where it helps.

The modern data stack at a glance

Data flows from sources, through ingestion and storage, into transformations that produce trusted datasets for analytics and for AI.

flowchart TB
  subgraph SRC["Sources"]
    direction LR
    S1["app databases"] --- S2["APIs / SaaS"] --- S3["event streams"] --- S4["files / web crawl"]
  end
  subgraph ING["Ingest"]
    direction LR
    I1["batch extract"] --- I2["CDC"] --- I3["Kafka"]
  end
  subgraph STORE["Store — lakehouse"]
    direction LR
    R["raw / bronze"] --> C["cleaned / silver"] --> G["modelled / gold"]
  end
  subgraph USE["Use"]
    direction LR
    U1["BI dashboards"] --- U2["ML features"] --- U3["LLM training sets"] --- U4["RAG embeddings"]
  end
  SRC --> ING --> STORE --> USE
  ORCH["orchestration · quality checks · lineage"] -.-> ING
  ORCH -.-> STORE

The medallion layers (bronze → silver → gold) are just a discipline: keep raw data immutable so you can always rebuild, clean in a separate step, and model for consumers last.

Idempotency is the whole game

A pipeline will be retried, backfilled and re-run by someone at 2 a.m. Design so that running it twice gives the same result as running it once:

  • Overwrite partitions (e.g. date=2026-11-07) instead of appending blindly.
  • Merge on a key (MERGE INTO … ON id) for upserts.
  • Deduplicate on a stable event ID in streaming sinks.
-- Keep the latest version of each order, safe to re-run any time
CREATE OR REPLACE TABLE silver.orders AS
SELECT * EXCLUDE (rn)
FROM (
  SELECT *,
         ROW_NUMBER() OVER (PARTITION BY order_id ORDER BY updated_at DESC) AS rn
  FROM bronze.orders_raw
)
WHERE rn = 1;

Batch, micro-batch or streaming?

RequirementPickWhy
Daily reports, model retrainingBatchSimplest and cheapest; easy backfills
Dashboards fresh within minutesMicro-batchNear-real-time with batch semantics
Fraud checks, live features, alertsStreamingEvent-at-a-time; needs watermarks and state

Streaming adds real complexity (state, late data, exactly-once effects), so choose it only when the freshness requirement is real.

Deduplication at web scale: MinHash

Training corpora contain huge numbers of near-duplicates (boilerplate, mirrors, templated pages), which waste compute and encourage memorisation. Comparing every pair of documents is impossible, so pipelines use MinHash.

Represent each document as a set of shingles (e.g. 5-word n-grams). The Jaccard similarity of two sets is

J(A,B)=∣A∩B∣∣A∪B∣J(A,B) = \frac{|A \cap B|}{|A \cup B|}

and for a random hash function hh, the probability that the minimum hash values match equals that similarity:

Pr⁡[min⁡h(A)=min⁡h(B)]=J(A,B)\Pr\left[\min h(A) = \min h(B)\right] = J(A,B)

So a signature of kk min-hashes estimates JJ cheaply. LSH banding then splits the signature into bb bands of rr rows; two documents become candidates if any band matches, which happens with probability

P(candidate)=1−(1−sr)bP(\text{candidate}) = 1 - \left(1 - s^{r}\right)^{b}

for similarity ss. Tuning bb and rr moves the S-shaped threshold, often to around s≈0.8s \approx 0.8. The FineWeb paper shows how much these choices matter for the final model.

Embeddings pipelines for RAG

A RAG index is a derived dataset and should be treated like one: versioned, tested and kept fresh.

flowchart LR
  D["source docs<br/>(changed since last run)"] --> X["extract text<br/>+ metadata"] --> CH["chunk<br/>(+ contextual header)"] --> EM["embed<br/>(batch, versioned model)"] --> UP["upsert into vector index<br/>keyed by doc_id + chunk_no"]
  DEL["deleted docs"] --> RM["delete their chunks"]
  UP --> EV["retrieval evals<br/>recall@k on a fixed query set"]

Common failure modes are pipeline bugs, not model bugs: stale chunks from deleted documents, mixing vectors from two embedding-model versions, or chunking that splits tables in half. Key each chunk deterministically, store the embedding model version with it, and run a small retrieval eval after every re-index.

How this track connects

References

Original sources first: arXiv, official docs, university courses and lab blogs. Every link was checked on 7 Nov 2026.

Foundational & seminal papers(7)

  1. Kafka: a Distributed Messaging System for Log Processing

    Kreps, Narkhede & Rao · 2011 · people.csail.mit.edu

    The original Kafka design: a partitioned, replicated log.

  2. Resilient Distributed Datasets: A Fault-Tolerant Abstraction for In-Memory Cluster Computing

    Zaharia et al. · 2012 · usenix.org

    The idea behind Spark: lineage-based fault tolerance.

  3. Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs

    Malkov & Yashunin · 2016 · arxiv.org

    HNSW, the index inside most vector databases.

  4. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks

    Reimers & Gurevych · 2019 · arxiv.org

    Where practical sentence embeddings for retrieval started.

  5. Delta Lake: High-Performance ACID Table Storage over Cloud Object Stores

    Armbrust et al. · 2020 · vldb.org

    How ACID transactions work on top of object storage.

  6. Lakehouse: A New Generation of Open Platforms that Unify Data Warehousing and Advanced Analytics

    Armbrust et al. · 2021 · cidrdb.org

    The argument for one open platform instead of lake + warehouse.

  7. The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale

    Penedo et al. · 2024 · arxiv.org

    A full, ablated recipe for building an LLM pre-training corpus.

Courses & videos(1)

  1. Data Engineering Zoomcamp

    DataTalksClub · github.com

    Free, hands-on: Docker, Terraform, warehouses, dbt, Spark, Kafka.

Books(3)

  1. Fundamentals of Data Engineering

    Joe Reis & Matt Housley · 2022 · oreilly.com

    The data-engineering lifecycle, tool-agnostic.

  2. Designing Data-Intensive Applications (2nd ed.)

    Martin Kleppmann & Chris Riccomini · 2026 · dataintensive.net

    Storage engines, replication, batch and stream processing explained deeply.

  3. The Data Warehouse Toolkit (3rd ed.)

    Ralph Kimball & Margy Ross · 2013 · kimballgroup.com

    The classic on dimensional modelling.

Articles, blogs & official docs(10)

  1. The Log: What every software engineer should know about real-time data's unifying abstraction

    Jay Kreps · 2013 · web.archive.org

    Why the log is the heart of data systems (archived copy).

  2. Apache Spark documentation

    Apache · spark.apache.org

    DataFrames, SQL, Structured Streaming and tuning.

  3. Apache Kafka documentation

    Apache · kafka.apache.org

    Topics, partitions, consumer groups and delivery semantics.

  4. Apache Iceberg documentation

    Apache · iceberg.apache.org

    Open table format: snapshots, schema evolution, hidden partitioning.

  5. Apache Hudi documentation

    Apache · hudi.apache.org

    A table format optimised for upserts and incremental processing.

  6. dbt documentation

    dbt Labs · docs.getdbt.com

    SQL transformations with tests, docs and lineage.

  7. Apache Airflow documentation

    Apache · airflow.apache.org

    The most widely used orchestrator.

  8. Dagster documentation

    Dagster Labs · docs.dagster.io

    Asset-centric orchestration with built-in lineage.

  9. DuckDB documentation

    DuckDB · duckdb.org

    In-process analytics; the fastest way to learn columnar SQL.

  10. Contextual Retrieval

    Anthropic · 2024 · anthropic.com

    Adding context to chunks before embedding; a data-pipeline fix for RAG quality.