How to become an AI Data Engineer
Step by step and free: 11 phases, 88 topics and 306 graded practice questions.
Open any topic and mark it Learning, Done or Skip to track your progress. Sign in to save it to your account.
0 of 88 done · 0 learning · 0 skipped · Start with the first topic
Saved on this device only. Sign up free or sign in to keep your progress everywhere.
It's saved on this device only. Sign up free to keep it everywhere; your marks move into your account.
What is an AI Data Engineer?
An AI data engineer builds the pipelines that turn raw sources into the data AI systems train on, retrieve from and are evaluated against. They ingest documents, databases and event streams, parse and clean unstructured content, chunk and embed it into vector and hybrid indexes, and assemble deduplicated, leak-free training and evaluation sets. They work with ML, applied AI and platform teams, and own data quality, lineage, privacy and cost.
Who this roadmap is for
Data engineers and analytics engineers who already write production SQL and Python and want to move into AI work, or backend engineers who already run ETL jobs. You should know a warehouse or lakehouse and an orchestrator. It is not for people who want to train models or write prompts; the focus is the data that feeds them.
What you will be able to do
You will be able to design batch and streaming pipelines that survive backfills and schema changes, parse PDFs and scanned documents into clean records, run versioned embedding and permission-aware indexing pipelines, build training and evaluation sets without leakage or contamination, and monitor data quality, PII, licensing and cost across an AI data platform.
The AI Data Engineer roadmap
AI Data Engineer
-
Phase 1 Programming and data foundations
-
Phase 2 Storage, tables and vector stores
-
Phase 3 Building data pipelines
-
Phase 4 Unstructured data and documents
-
Phase 5 Embedding and indexing pipelines
-
Phase 6 Training and evaluation data
-
Phase 7 Managing datasets over time
-
Phase 8 Data quality and observability
-
Phase 9 Privacy, security and governance
-
Phase 10 Cost and performance
-
Phase 11 Data for AI applications
All topics, in order
Mark each topic Learning, Done or Skip, and sign in to save your place to your account. Done is your own word, not passing: a topic is passed when you score 50 or more on its questions. This order is the study plan.
-
Phase 1 · Programming and data foundations
-
AI basics: what it is and how to ask it
An AI assistant predicts likely words; it does not look facts up or know when it is wrong. That makes it strong at working with material you give it and weak as a source of facts. Learn to ask clearly, hand it the right material, check what comes back, and own what you send.
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
AI basics: using it safely at work
Using AI well at work is mostly judgment: which tool is safe for which material, which actions need your OK first, how to test a helper before trusting it, and how to split a big job into checkable steps. These habits matter more than any one tool.
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
What an AI data engineer does
An AI data engineer builds the paths that carry data into AI systems: documents into search indexes, records into training and evaluation sets. The craft is classic data engineering (reliable, tested, affordable pipelines) plus new questions: is this text clean enough to embed, may we train on it, does the test set leak into training. Many failures that look like model problems start in the data.
Reading
- Google: Rules of Machine Learning developers.google.com
- MIT: Introduction to Data-Centric AI dcai.csail.mit.edu
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Python for data engineering
Data engineering in Python means moving and transforming data that rarely fits in memory. Fluency in chunked and streaming processing, generators, and out-of-core or columnar engines (DuckDB, Polars, Spark) is what lets a job scale with the data instead of with the machine.
Reading
- Python documentation docs.python.org
- pandas: scaling to large datasets pandas.pydata.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
SQL and query design
SQL is the lingua franca of data engineering. Beyond basic SELECTs you need joins, aggregation, and window functions, plus a feel for query cost: what makes the engine scan a whole table versus prune it - because the same answer can cost seconds or hours.
Reading
- Mode: SQL tutorial mode.com
- Use The Index, Luke use-the-index-luke.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Data formats: CSV, JSON, Parquet, Avro and Arrow
Row formats such as CSV and JSON Lines are easy to write and read anywhere, but carry no reliable types and make every query read every field. Columnar Parquet stores each column with its type and statistics, so engines read only the columns and row groups a query needs. Avro suits streams that need a schema on every record; Arrow is the in-memory layout engines share. Default to Parquet for analytical and training data.
Reading
- Apache Parquet documentation parquet.apache.org
- Apache Arrow: columnar format arrow.apache.org
- Apache Avro documentation avro.apache.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Testing data code
Transform logic deserves the same tests as application code. Small hand-built input tables with known expected outputs catch broken joins, wrong filters and edge cases (nulls, duplicates, empty days) in seconds. Run new code on a sample before the full dataset, and keep the tests in CI so a refactor cannot quietly change results.
Reading
- pytest documentation docs.pytest.org
- dbt: data tests docs.getdbt.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reproducible pipeline environments
A pipeline is only trustworthy if it runs the same everywhere. Pinned dependencies, containers, explicit configuration, and orchestration turn 'works on my machine' into a job the scheduler runs identically at 3am. Reproducibility is the foundation reliability is built on.
Reading
- Docker: get started docs.docker.com
- Apache Airflow: best practices airflow.apache.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
Chapter 1 lab
Instruct a coding agent to turn a crashing notebook into a nightly job
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 2 · Storage, tables and vector stores
-
Object storage fundamentals
Object stores such as S3, Cloud Storage and Azure Blob hold whole objects under keys, not a real file system. A rename is a copy, listing millions of keys is slow and billed, and tiny objects cost more to manage per byte. Lifecycle rules move or delete objects by age. Design key layouts and file sizes around how jobs will read them.
Reading
- Amazon S3 user guide docs.aws.amazon.com
- Amazon S3: managing the object lifecycle docs.aws.amazon.com
- Google Cloud Storage documentation cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data modeling for AI and ML
Every table needs a stated grain (what one row means) and a key that enforces it. Analytics favours facts and dimensions; model training favours one wide row per example, with every feature as of a point in time. Write down the grain and keys before building, because most double counts and join bugs come from a table whose grain nobody stated.
Reading
- Kimball Group: dimensional modeling techniques kimballgroup.com
- Feast: point-in-time joins docs.feast.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Warehouse, lake and lakehouse
Governed SQL for BI and raw file access for ML used to force two systems and two copies. The lakehouse pattern puts open table formats on object storage so one governed copy serves transactional SQL and direct file reads at once. Choosing storage is choosing which workloads share a source of truth.
Reading
- Databricks: what is a data lakehouse databricks.com
- Apache Iceberg documentation iceberg.apache.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Table maintenance: compaction, snapshots and time travel
Open table formats write a new snapshot on every commit. That gives time travel and safe rollback, but small files and old snapshots pile up. Compaction rewrites small files into large ones; snapshot expiry deletes old versions and the files only they use. Set retention to cover your longest-running reader and your rollback needs, because expired snapshots cannot come back.
Reading
- Apache Iceberg: maintenance iceberg.apache.org
- Delta Lake: optimizations docs.delta.io
- Delta Lake: table utility commands (VACUUM) docs.delta.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Partitioning and file layout
At billions of rows, query cost is dominated by how much data the engine has to scan, and partition layout decides that. Partitioning on the dominant filter (usually date) lets the engine prune away everything irrelevant. Layout should mirror the read pattern, not the write pattern.
Reading
- Apache Iceberg: partitioning iceberg.apache.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Catalogs and metadata
A catalog records which tables exist, where their files live, their schema and current snapshot, and who owns them. Engines use it to find tables and commit to them safely; people use it to find data and know whom to ask. A table outside the catalog is invisible to governance and easy to duplicate.
Reading
- Apache Iceberg: terms (catalog, snapshot, manifest) iceberg.apache.org
- Apache Iceberg: REST catalog spec iceberg.apache.org
- Unity Catalog documentation docs.unitycatalog.io
- AWS Glue Data Catalog docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Vector stores and indexes for RAG
Retrieval over millions of embeddings under a tight latency budget rules out exact search. Approximate nearest-neighbour indexes trade a small, measurable recall loss for enormous speed, and recall can be tuned. Picking an index is picking which resource (accuracy, latency, or memory) you spend.
Reading
- Pinecone: what is a vector database pinecone.io
- OpenAI: embeddings guide platform.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Choosing a vector store
A vector extension in the database you already run keeps vectors beside the rows they describe, with transactions, joins and one backup. Dedicated vector databases and search engines add scale, filtered approximate search and hybrid ranking, at the cost of another system to keep in sync. Decide on corpus size, filters, update rate and who will operate it, then test with your own data.
Reading
- pgvector github.com
- OpenSearch: vector search docs.opensearch.org
- Qdrant documentation qdrant.tech
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Updating and deleting in a vector index
Most vector indexes are built for fast reads, not frequent change. An update is often a delete plus an insert, a delete is often a mark that still occupies the index, and heavy churn slowly hurts recall until the index is optimised or rebuilt. Give every chunk a stable id so upserts replace rather than duplicate, and watch the count of deleted entries.
Reading
- Qdrant: points, upserts and deletes qdrant.tech
- pgvector github.com
- Faiss wiki github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 2 lab
Write the instruction for an agent that tunes a vector index
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 3 · Building data pipelines
-
Orchestration and scheduling
An orchestrator runs tasks in dependency order on a schedule or trigger, retries failures and records every run. Keep tasks small, idempotent and parameterised by the data interval they process, so one failed day can be rerun alone. The orchestrator coordinates; heavy computation belongs in the engines it calls, not in the scheduler's own workers.
Reading
- Apache Airflow: best practices airflow.apache.org
- Dagster documentation docs.dagster.io
- Prefect documentation docs.prefect.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Batch vs streaming ingestion
Whether data should arrive in scheduled batches or as a continuous stream is set by how fresh the consumer needs it, not by what is easiest to run. Real-time decisions demand streaming; daily reports are happy with batch. Getting this wrong either wastes money or ships stale numbers into a live decision.
Reading
- Apache Kafka documentation kafka.apache.org
- Google Cloud: data lifecycle on GCP cloud.google.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Change data capture from databases
Change data capture reads a database's transaction log to stream every insert, update and delete in commit order. Unlike polling an updated_at column, it sees deletes and every intermediate change, and adds little load to the source. It still needs a consistent initial snapshot, ordered handling per key and a plan for schema changes.
Reading
- Debezium documentation debezium.io
- PostgreSQL: logical decoding postgresql.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Streaming fundamentals: event time, windows and delivery
Events carry the time they happened, which differs from when they arrive. Windowed results should group by event time, and a watermark tells the engine how long to wait for late events before closing a window. Delivery is usually at least once, so exactly-once results come from idempotent writes or transactional sinks, not from the network.
Reading
- Apache Flink: timely stream processing nightlies.apache.org
- Spark Structured Streaming guide spark.apache.org
- Apache Kafka: message delivery semantics kafka.apache.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Distributed processing with Spark and Ray
Spark and Ray split work across machines, but the shuffle (moving rows so equal keys meet) is where time and money go, and one hot key can leave a single task running long after the rest finish. Before going distributed, check whether one large machine with a columnar engine can handle the data. Many jobs under a few hundred gigabytes fit.
Reading
- Spark: tuning guide spark.apache.org
- Spark SQL: performance tuning spark.apache.org
- Ray Data docs.ray.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Ingesting from APIs and SaaS tools
Pulling from APIs means respecting rate limits, paging through results reliably and loading only what changed. Use the source's incremental cursor or updated-since filter, save the cursor only after the data is safely written, and back off on 429 responses. Land raw responses first, so a parsing bug can be fixed without calling the API again.
Reading
- GitHub REST API: pagination docs.github.com
- Stripe API: pagination docs.stripe.com
- RFC 6585: 429 Too Many Requests rfc-editor.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Idempotent and resumable pipelines
Pipelines fail halfway, so every load must be safe to re-run without double-counting or gaps. The trick is idempotency: design each unit of work so running it twice yields the same result as running it once, usually by overwriting a partition rather than appending to it.
Reading
- Apache Airflow: best practices airflow.apache.org
- Delta Lake documentation docs.delta.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Backfills and reprocessing
A backfill reprocesses history after a bug fix or a new column. Plan its scope, write results beside the live table or into new partitions, throttle it so daily jobs are not starved, and compare old and new outputs before switching readers over. Consumers should hear about it before their numbers change.
Reading
- Apache Airflow: backfill airflow.apache.org
- dbt: full refresh docs.getdbt.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Schema evolution and data contracts
Upstream schemas change without warning, and a pipeline that keeps running on changed data is more dangerous than one that stops. Data contracts pin the shape, types, and units you accept and fail loudly at the boundary, turning a silent corruption into a caught error.
Reading
- Data Contract specification datacontract.com
- Confluent Schema Registry docs.confluent.io
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Transformations as code
Transformations written as versioned SQL or Python models, each declaring its inputs, get dependency order, tests and code review almost for free. A change goes through a pull request, runs against a sample or staging copy, and ships with its tests. Hand-run scripts and logic buried in dashboards cannot be reviewed, rerun or traced.
Reading
- dbt: what is dbt docs.getdbt.com
- SQLMesh documentation sqlmesh.readthedocs.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 3 lab
Write the instruction for an agent that audits a pipeline's re-run safety
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 4 · Unstructured data and documents
-
Sourcing unstructured data
Unstructured data arrives from exports, SaaS connectors, shared drives, ticket systems and crawls. Land every file unchanged with its source, original path or URL, owner, fetch time and content hash before parsing anything. That record lets you reprocess when parsers improve, honour deletions and answer where a sentence came from.
Reading
- Unstructured documentation docs.unstructured.io
- Google Drive API: track changes developers.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Crawling the web responsibly
A responsible crawler identifies itself, follows robots.txt, limits its request rate per site and respects terms of use and paywalls. robots.txt is a request about crawling, not a licence to use the content: permission to train on or republish it is a separate question. Recrawl on a schedule that matches how often pages change, and keep the fetch date.
Reading
- RFC 9309: Robots Exclusion Protocol rfc-editor.org
- Google Search Central: robots.txt introduction developers.google.com
- Common Crawl commoncrawl.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Parsing PDFs and office documents
A PDF stores glyphs at positions, not paragraphs, so extraction has to rebuild reading order, and multi-column pages, headers and footnotes are where it goes wrong. Office files carry headings and lists worth keeping. Parsers often fail silently, returning empty or scrambled text with no error, so check output length and read samples for every source.
Reading
- pypdf documentation pypdf.readthedocs.io
- Docling documentation docling-project.github.io
- Unstructured: partitioning docs.unstructured.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
OCR and scanned documents
Scanned pages and photos have no text layer, so the text must come from OCR, which returns words with confidence scores and makes typical mistakes: 0 for O, broken lines, lost table structure. Detect which files need OCR rather than running it on everything, keep the confidence scores, and sample low-confidence pages for review.
Reading
- Tesseract OCR documentation tesseract-ocr.github.io
- Amazon Textract docs.aws.amazon.com
- Google Document AI cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Extracting tables, layout and figures
Tables, figures and layout carry meaning that flat text loses: a number means nothing without its row and column headers. Extract tables as structured rows or markdown with headers, keep captions with their figures, and record the page and position of each element so an answer can be traced back to the page.
Reading
- Docling documentation docling-project.github.io
- Azure Document Intelligence: layout model learn.microsoft.com
- Camelot: PDF table extraction camelot-py.readthedocs.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Cleaning and normalising text
Text from many sources arrives in mixed encodings, with odd Unicode, repeated whitespace, menus and cookie banners. Normalise encoding and Unicode form, strip boilerplate, detect the language, and drop or route what you cannot use. Version the cleaning rules and test them on samples, because an over-eager rule silently deletes real content.
Reading
- Unicode: normalization forms (UAX 15) unicode.org
- Python: unicodedata docs.python.org
- Trafilatura documentation trafilatura.readthedocs.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Extracting structured records with LLMs
A model can turn invoices, contracts or tickets into structured records, but its output is a prediction, not a lookup. Give it a schema, validate every record against types and business rules, keep the source text for each field, and measure accuracy on a hand-labelled sample before trusting the pipeline. At scale, batch endpoints and smaller models cut cost sharply.
Reading
- OpenAI: structured outputs platform.openai.com
- Anthropic: batch processing docs.claude.com
- Pydantic documentation docs.pydantic.dev
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Images, audio and video data
Images, audio and video are large binary objects best kept in object storage, with a table holding their metadata, derived text (captions, transcripts, OCR) and the model versions that produced it. Derived text must stay linked to its media and time codes, and must be regenerated when the media or the model changes.
Reading
- Hugging Face Datasets: load image data huggingface.co
- Hugging Face Datasets: load audio data huggingface.co
- WebDataset github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Carrying permissions and source metadata
Every document should carry its source, owner, version, URL and access list from ingestion all the way to each chunk in an index. Without them you cannot limit results to what a user may see, honour a deletion, cite a source or find stale copies. Metadata dropped during parsing is very expensive to add back later.
Reading
- Google Drive API: sharing and permissions developers.google.com
- Pinecone: filter by metadata docs.pinecone.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 5 · Embedding and indexing pipelines
-
Embeddings for data engineers
An embedding model turns text into a fixed-length vector so that similar meanings land close together. Models differ in dimensions, maximum input length, languages and price, and vectors from different models cannot be compared. Choose by testing candidate models on your own queries and documents, not on a public leaderboard alone.
Reading
- OpenAI: embeddings guide platform.openai.com
- MTEB leaderboard huggingface.co
- Sentence Transformers documentation sbert.net
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Chunking and preprocessing for embeddings
Retrieval can only ever return the chunks you created, so how you split documents caps how good RAG can be. Cutting on semantic boundaries with a little overlap keeps each chunk a self-contained unit; slicing at fixed offsets severs answers in half. The boundary matters more than the size.
Reading
- Pinecone: chunking strategies pinecone.io
- Anthropic: contextual retrieval anthropic.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Enriching chunks with context
A chunk cut from the middle of a document often loses what it is about: the product, the year, the section. Adding the document title, section path or a short generated summary to each chunk before embedding helps retrieval find it. Keep the added context separate from the original text, so citations quote the source and not the summary.
Reading
- Anthropic: contextual retrieval anthropic.com
- Pinecone: chunking strategies pinecone.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Building and versioning embedding pipelines
Embeddings from different models live in different vector spaces, so distances between them are meaningless. An index must be single-version, which means adopting a new embedding model requires re-embedding the whole corpus, not mixing old and new vectors in one store.
Reading
- OpenAI: embeddings guide platform.openai.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Embedding at scale
Embedding millions of chunks is a throughput and cost problem. Batch requests, stay under rate limits with backoff, make the job resumable by chunk id, and skip unchanged text by hashing it. Estimate the cost per million tokens before starting, and use batch endpoints or a self-hosted model when results are not needed right away.
Reading
- OpenAI: Batch API platform.openai.com
- OpenAI: rate limits platform.openai.com
- Ray Data: batch inference docs.ray.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Incremental indexing and freshness
An index is only as fresh as its update path. Detect changed documents by content hash or source change feeds, re-chunk and re-embed only those, and make deletions reach the index as reliably as additions. Track the lag from a source change to it being searchable: stale or deleted content in answers is a trust and compliance problem.
Reading
- Microsoft Graph: delta query learn.microsoft.com
- Google Drive API: track changes developers.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Keyword and hybrid indexes
Vector search finds meaning; keyword search (BM25) finds exact terms such as product codes, names and error strings. Many systems keep both and merge the results. That means two indexes that must hold the same documents with the same ids and permissions, updated together, or their results disagree in confusing ways.
Reading
- OpenSearch: hybrid search docs.opensearch.org
- Weaviate: hybrid search docs.weaviate.io
- Elastic: hybrid search elastic.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Permission-aware indexes
Retrieval must never return a chunk the asking user could not open in the source system. Store access lists with each chunk and filter at query time, or keep separate indexes per tenant when isolation must be absolute. Permissions change, so sync them as carefully as content, and test with users who should see nothing.
Reading
- Pinecone: implement multitenancy docs.pinecone.io
- OWASP: vector and embedding weaknesses (LLM08) genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Testing retrieval data
Before and after any change to parsing, chunking, embedding or indexing, run a fixed set of real queries with known relevant documents and measure recall at k. A drop shows the data change hurt retrieval before users notice. Keep the query set current with real traffic, and read the failures, not just the score.
Reading
- BEIR: a benchmark for information retrieval arxiv.org
- Ragas documentation docs.ragas.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 6 · Training and evaluation data
-
Training, fine-tuning and evaluation datasets
Training data teaches a model, fine-tuning data shapes its behaviour for a task, and evaluation data measures it. Training data tolerates some noise at volume; fine-tuning data must be consistent because every example counts; evaluation data must be trustworthy, representative and never seen in training. Treat them as separate products with their own owners and checks.
Reading
- Google ML Crash Course: dividing the dataset developers.google.com
- Hugging Face Datasets documentation huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Preparing fine-tuning data
Fine-tuning data is a set of example conversations or prompt and response pairs in the provider's format, usually JSON Lines. Quality beats quantity: a few hundred consistent, correct examples covering the real variety of inputs often beat thousands of noisy ones. Validate the format, remove duplicates and contradictions, and hold examples back for evaluation.
Reading
- OpenAI: supervised fine-tuning platform.openai.com
- Hugging Face: chat templates huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Deduplication: exact and near-duplicate
Duplicates waste compute, push a model to memorise and repeat text, and inflate evaluation scores when copies land in both training and test sets. Exact duplicates fall to hashing normalised text; near duplicates, such as the same page with a new date, need fuzzy methods like MinHash with locality-sensitive hashing. Define what counts as a duplicate and inspect what was removed.
Reading
- Deduplicating training data makes language models better arxiv.org
- datasketch: MinHash LSH ekzhu.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Quality filtering
Filters remove text that is too short, too repetitive, in the wrong language or scored low by a quality classifier. Every filter also removes some good data, and it can remove some groups of writers or topics far more than others. Measure what each filter drops on a labelled sample, and keep the removed set where people can inspect it.
Reading
- Hugging Face: FineWeb, building a web dataset huggingface.co
- Documenting large webtext corpora (C4) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Splits without leakage
A test set means something only if nothing from it influenced training. Random row splits leak when the same user, document, patient or near-duplicate appears on both sides, or when a model trained on later data is tested on earlier data. Split by group or by time to match how the model will meet new data in use.
Reading
- scikit-learn: cross-validation (group and time splits) scikit-learn.org
- Google ML Crash Course: dividing the dataset developers.google.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Decontaminating evaluation sets
When evaluation questions or their answers appear in training data, scores rise without any real gain in skill. Check training corpora for overlap with every evaluation set using n-gram or near-duplicate matching, remove the matches, and record that the check ran. For public benchmarks, assume web-scraped data may already contain them.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Labelling and annotation pipelines
Labels are only as good as the guidelines and checks around them. Write guidelines with worked edge cases, measure agreement between labellers on shared items, seed known gold items to catch drift, and send disagreements to an expert. A label set nobody has checked for agreement is an opinion, not ground truth.
Reading
- Label Studio documentation labelstud.io
- MIT Data-Centric AI: label errors dcai.csail.mit.edu
- cleanlab documentation docs.cleanlab.ai
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Preference and feedback data
Preference data records which of two responses people prefer, or ratings and thumbs from live use, and it feeds tuning methods such as DPO and reward models. Human signals are noisy and biased: raters often favour longer answers, and users who leave feedback are not typical users. Record who rated and under what instructions, and check agreement before training on it.
Reading
- Direct Preference Optimization (DPO) arxiv.org
- Hugging Face TRL: DPO trainer huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Synthetic data and its checks
Generated data can fill gaps such as rare cases, new formats or privacy-sensitive fields, but it repeats the generator's habits and errors. Check it for correctness, diversity and duplicates, keep it labelled as synthetic, and confirm on real held-out data that it actually helps. Never evaluate on synthetic data alone.
Reading
- Self-Instruct arxiv.org
- The curse of recursion: training on generated data arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Feature pipelines and train/serve skew
A model tested well offline but failing in production often has one cause: a feature computed one way in training and another way at serving. A feature store removes the skew by giving both paths a single shared definition, so offline and online values cannot diverge.
Reading
- Feast: feature store documentation docs.feast.dev
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
Chapter 6 lab
Write the instruction for a feature skew audit agent
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 7 · Managing datasets over time
-
Dataset versioning
Any model or index should be traceable to the exact data that built it. Snapshot or tag datasets when they are used for training, store that version with the model, and never overwrite a version in place. Then a bad result can be reproduced, compared and rolled back.
Reading
- lakeFS documentation docs.lakefs.io
- DVC documentation dvc.org
- Apache Iceberg: branching and tagging iceberg.apache.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Documenting datasets
A datasheet records why a dataset exists, where it came from, how it was collected and cleaned, what it leaves out and what it should not be used for. Writing one forces questions about consent, coverage and bias before training, and it is what auditors and future teammates will ask for. Keep it versioned with the data.
Reading
- Datasheets for datasets arxiv.org
- Hugging Face: dataset cards huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data mixtures and sampling
A training set is a mix of sources, and the mix shapes the model as much as any single source does. Weight sources on purpose, upsample rare but important cases without repeating them so often they are memorised, and record the final proportions. Change the mix one variable at a time and evaluate each change.
Reading
- DoReMi: optimizing data mixtures arxiv.org
- The Pile: a diverse text dataset arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Feeding training jobs
GPUs are expensive to leave idle, so training data must be read fast and in a good order. Store data in large shards, shuffle across shards as well as within them, stream from object storage with prefetching, and make loading resumable so a restart neither repeats nor skips examples.
Reading
- PyTorch: datasets and data loaders docs.pytorch.org
- Hugging Face Datasets: streaming huggingface.co
- WebDataset github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Logging AI traffic as data
Prompts, outputs, retrieved context and user feedback from production are the best source of new evaluation and training data. Log them with ids that link each step, sample when volume is high, redact personal data at capture time, and honour the consent and retention terms users were given. Logs collected without that care often cannot be used later.
Reading
- OpenTelemetry: semantic conventions for generative AI opentelemetry.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Building eval sets from production
An evaluation set built only from imagined cases misses what users actually ask. Sample real traffic, stratify it by intent, language and difficulty, label the expected outcomes, and add every production failure as a new case. Refresh the set on a schedule and version it, so scores stay comparable over time.
Reading
- OpenAI: evaluation best practices platform.openai.com
- Anthropic: create strong empirical evaluations docs.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 8 · Data quality and observability
-
Validation and conservation checks
The most common data bug is silent row loss, and the cheapest guard is a conservation check: rows and key totals in should match rows and totals out across a transform. Assertions that run on every load catch a broken join the moment it happens instead of a quarter later.
Reading
- Great Expectations documentation docs.greatexpectations.io
- Monte Carlo: what is data observability montecarlodata.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Handling missing and dirty data
Before filling or dropping a missing value you must know why it is missing. If the gap is random, simple imputation is fine; if it correlates with the outcome, any fill or drop launders real signal into bias. The mechanism, not the statistic, chooses the remedy.
Reading
- scikit-learn: imputation of missing values scikit-learn.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Freshness and data SLAs
Freshness is how old the newest data is when someone uses it. Agree a target with each consumer (a fraud model may need minutes, a weekly report a day), measure the real lag continuously, and alert when the target is missed. A pipeline that succeeds late still breaks its consumer.
Reading
- Google SRE book: service level objectives sre.google
- dbt: source freshness docs.getdbt.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Monitoring pipelines and data
A pipeline can succeed while delivering wrong data, so monitor the data itself: row volumes against expected ranges, schema changes, null and duplicate rates, and the distributions of key fields. Start with volume and freshness on the most important tables, because those two catch most breakages cheaply.
Reading
- The ML Test Score (Google Research) research.google
- Soda documentation docs.soda.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data incidents and on-call
When bad data ships, contain it first: pause the pipeline or quarantine the bad partition, then tell the teams and models that consumed it. Fix the cause, backfill, verify, and write a short blameless postmortem naming the check that would have caught it. Page people only for alerts that need action now.
Reading
- Google SRE book: postmortem culture sre.google
- PagerDuty incident response guide response.pagerduty.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Quality checks for text data
Text pipelines fail in ways row checks miss: a parser returns empty pages, OCR returns gibberish, a site redesign fills every chunk with menus. Track per-source distributions of length, language, character mix and duplicate rate, and read a few documents from every new source or parser version.
Reading
- Hugging Face: FineWeb, building a web dataset huggingface.co
- Scaling language models: Gopher (quality filters) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Detecting data drift
When an input distribution shifts, it is as likely to be a pipeline bug as a real-world change, and labels usually lag too far to tell you which. Drift monitoring is an early warning: its job is to prompt an investigation, not to trigger an automatic retrain on data you have not yet trusted.
Reading
- Evidently: data drift in production ML evidentlyai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
Chapter 8 lab
Write the instruction for a drift-alert triage agent
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 9 · Privacy, security and governance
-
PII handling and data minimization
The privacy-preserving default is to not hold what you do not need. Pulling only the fields a task requires and redacting PII in free text shrinks exposure at the source, something access control on an over-broad copy can never do. Minimization is a design-time decision, not a later cleanup.
Reading
- OWASP Top 10 for LLM Applications owasp.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Finding and redacting PII at scale
Personal data hides in free text: names, emails, phone numbers, ids and addresses inside tickets, chats and documents. Pattern rules catch structured ids; entity models catch names but miss some. Measure a detector's recall on a labelled sample, choose redaction or reversible tokenisation by whether anyone needs the value back, and redact before data reaches indexes or training sets.
Reading
- Microsoft Presidio microsoft.github.io
- Google Cloud Sensitive Data Protection cloud.google.com
- NIST SP 800-122: protecting PII csrc.nist.gov
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Data licensing and copyright
Being able to download data does not mean you may train on it. Licences, website terms, customer contracts and copyright law each limit use, and they differ by source. Record the licence and terms for every source at ingestion, keep that provenance through every derived dataset, and get legal review for anything unclear before it enters training.
Reading
- Data Provenance Initiative dataprovenance.org
- Creative Commons: licence list creativecommons.org
- US Copyright Office: copyright and AI copyright.gov
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Data rules for AI: GDPR and the EU AI Act
Under the GDPR, personal data needs a lawful basis and a stated purpose, people can ask for access and erasure, and data should not be kept longer than needed. The EU AI Act adds data governance and record-keeping duties for high-risk systems. Know which rules apply to each dataset, and check dates and guidance against official sources, because they change.
Reading
- GDPR (Regulation (EU) 2016/679) eur-lex.europa.eu
- EU AI Act (Regulation (EU) 2024/1689) eur-lex.europa.eu
- European Data Protection Board edpb.europa.eu
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data lineage and access control
When a sensitive column leaks, containing it means knowing every downstream table, dashboard, and model that consumed it. Column-level lineage records that map precisely, and policy enforced at the source stops the field spreading in the first place. Search and polling only approximate the map, leaving gaps.
Reading
- OpenLineage documentation openlineage.io
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Encryption, secrets and network boundaries
Encrypt data at rest and in transit by default, and keep keys in a key management service. Keep credentials out of code, notebooks and logs by using a secret store and short-lived credentials. Reach data stores and model APIs over private network paths where you can, so a leaked key alone is not enough to read data.
Reading
- OWASP: secrets management cheat sheet cheatsheetseries.owasp.org
- AWS KMS: concepts docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Poisoned and untrusted sources
Anyone who can write to a source you ingest can try to change what your model learns or retrieves: false facts, hidden instructions aimed at an AI reader, poisoned training examples. Rank sources by trust, keep provenance on every chunk and example, scan for hidden text and instructions, and be able to remove everything from one source quickly.
Reading
- OWASP: data and model poisoning (LLM04) genai.owasp.org
- OWASP: prompt injection (LLM01) genai.owasp.org
- Poisoning web-scale training datasets is practical arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data ownership and stewardship
Every dataset needs a named owner who answers for its quality, approves access and decides when it is retired. Without one, access requests stall or get waved through, broken data has nobody to fix it, and old copies live forever. Record the owner in the catalog and review ownership when people change teams.
Reading
- NIST Privacy Framework nist.gov
- Unity Catalog documentation docs.unitycatalog.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 10 · Cost and performance
-
Cost and latency of data infrastructure
Reprocessing all history on every run is the most common source of a runaway data bill. Incremental processing makes each run's work proportional to new data, usually preserving freshness at a fraction of the cost. Match the work to what changed rather than buying cheaper hardware for a wasteful job.
Reading
- dbt: incremental models docs.getdbt.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Tuning slow jobs and queries
Before buying more compute, read the query plan or job profile. Most slow jobs scan too much (no partition pruning), shuffle too much, spill to disk for lack of memory, or wait on one skewed task. Fix the biggest cost the plan shows, measure again, and repeat.
Reading
- PostgreSQL: using EXPLAIN postgresql.org
- BigQuery: query plan and timeline cloud.google.com
- Spark: web UI spark.apache.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Storage cost: tiers, compression and retention
Storage looks cheap per gigabyte but grows forever unless something deletes it. Compress with columnar formats, move cold data to cheaper tiers (minding retrieval fees and minimum storage periods), expire snapshots and intermediate tables, and set retention per dataset from its purpose and legal duties.
Reading
- Amazon S3 storage classes aws.amazon.com
- Google Cloud Storage: storage classes cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Compute cost of embedding and LLM processing
Embedding and LLM processing bills scale with tokens. Estimate the cost per document before running a whole corpus, cut tokens by stripping boilerplate and skipping unchanged content, use batch endpoints for work that can wait, and compare a smaller or self-hosted model on a quality sample. Cache results keyed by content and model version.
Reading
- OpenAI: API pricing platform.openai.com
- Anthropic: pricing docs.claude.com
- OpenAI: Batch API platform.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Planning for data growth
Data volume, index size and spend grow with users and sources, often faster than expected. Track growth per dataset, project it forward, and know where the limits sit: index memory, warehouse quotas, API rate limits, budgets. Plan the next step (sharding, tiering, a bigger plan) before you hit a limit, not during an outage.
Reading
- FinOps Framework finops.org
- AWS Well-Architected: cost optimization pillar docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 11 · Data for AI applications
-
Serving data at low latency
AI features often need data inside a request: a customer's recent orders, a feature vector, a document's latest version. Serve it from an online store or cache built for key lookups, not by querying the warehouse at request time. Decide how stale each value may be, and compute the online copy the same way as the offline one.
Reading
- Feast: online stores docs.feast.dev
- Redis documentation redis.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Giving agents safe access to data
An agent with database access will eventually run a query nobody intended. Give it narrow tools over curated views, read-only credentials scoped to the task, row and time limits, and a log of every call. Treat what it reads as untrusted, because retrieved text can carry instructions.
Reading
- Model Context Protocol: security best practices modelcontextprotocol.io
- OWASP: excessive agency (LLM06) genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Text-to-SQL on your data
Models write better SQL when they see a small, well-described schema: curated views with clear names, column descriptions, known join paths and example queries. Run generated queries read-only with timeouts and row limits, check them before execution, and test answers against questions with known results.
Reading
- BIRD text-to-SQL benchmark bird-bench.github.io
- Spider 2.0 spider2-sql.github.io
- dbt Semantic Layer docs.getdbt.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Entity resolution
The same customer, company or product appears under different spellings, ids and formats across systems. Entity resolution normalises fields, generates candidate pairs cheaply (blocking), scores each pair and merges above a threshold. Measure precision and recall on labelled pairs, because a wrong merge mixes two people's data.
Reading
- Splink documentation moj-analytical-services.github.io
- dedupe documentation docs.dedupe.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Knowledge graphs for AI
A knowledge graph stores entities and their relationships explicitly, which helps questions that hop across connections, such as who manages the team that owns this service. Building one means extracting entities and relations, resolving duplicates and keeping it current, which is costly. Use one when relationship questions matter and plain retrieval keeps failing them.
Reading
- From local to global: GraphRAG arxiv.org
- W3C: RDF 1.1 primer w3.org
- Neo4j documentation neo4j.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Designing an AI data platform
An AI data platform is best built one use case at a time. Start from one product need, trace the data it requires from source to model or index, and build the thinnest reliable path: ingestion, storage, processing, quality checks and access control. Reuse shared pieces where they exist, and add components only when a second use case needs them.
Reading
- AWS Well-Architected: machine learning lens docs.aws.amazon.com
- Google Cloud: MLOps pipelines in machine learning cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Changing a platform without breaking consumers
Tables, schemas and indexes have consumers you may not know about. Before changing or retiring one, find them with lineage and access logs, announce the change with a date, run old and new side by side and compare outputs. Remove the old path only after consumers have moved.
Reading
- OpenLineage documentation openlineage.io
- Data Contract Specification datacontract.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Practise the AI Data Engineer roadmap
306 questions, each graded on the server out of 100. Free · no card.
Other AI careers
- Agent Engineer
- AI Alignment Researcher
- AI Engineer
- AI Evals Engineer
- AI Governance Analyst
- AI Infrastructure Engineer
- AI Integration Engineer
- AI Product Manager
- AI Red Team Specialist
- AI Reliability Engineer
- AI Research Engineer
- AI Safety Engineer
- AI Security Engineer
- AI Solutions Architect
- AI Strategist
- Computer Vision Engineer
- Context Engineer
- Conversational AI Designer
- Forward-Deployed Engineer
- Inference Optimization Engineer
- ML Engineer
- Multimodal AI Engineer
- Post-Training Engineer