Let’s Get Certified
Module 02 / 13 · Data preparation for ML and AI

Choose a store that matches the training and serving reads

A dispatch team joins trips with vehicle measurements.

Choose a store that matches the training and serving reads

A dispatch team joins trips with vehicle measurements. It needs a reproducible training snapshot, a fresh lookup for scoring and a way to replay late events. First decide what a record meant at prediction time and which consumers need historical access.

At 14:49 the instructor aligns vehicle and trip records by time and checks the resulting row count. The exercise below turns those checks into a point-in-time contract.

Work through the decision

A plain vehicle-ID join doubles trip rows and assigns tomorrow’s reading to yesterday’s departure. Which two checks expose the problem?

Check your reasoning

Compare trip counts before and after the join, then assert that the selected feature timestamp never exceeds the trip timestamp. Choose a deterministic tie-breaker for equal timestamps.

MLA-C02 recording · 14:49

Continue in the recording · 4:39 · 11:38.

Decisions and tradeoffs

Point-in-time join
Join on the entity and the most recent event time at or before prediction. Later observations leak information.
Feature Store online store
Low-latency serving needs the latest feature record by identifier. The offline store retains history for analytical workloads.
Feature Store offline store
Historical event-time features support reproducible training sets and replay analysis.
Kinesis Data Streams
Retained stream data supports independent consumers and replay within the retention window.
Amazon Data Firehose
Firehose buffers and delivers streaming data to supported destinations with managed delivery.
Partitioned Parquet in S3
Column projection and selective partitions reduce analytical scan work for structured history.
Vector index with metadata
A vector store supports similarity search over embeddings and can restrict candidates by metadata when configured.
Shard-level ingestion metrics
Compare per-shard throughput and key distribution when aggregate capacity appears adequate.

Practice each guide skill

The numbers below follow the AWS task and skill identifiers.

  1. Extract a reproducible snapshot from a database, event stream or object store. Preserve the source version and observation time.
  2. Select a low-latency key store for serving and an economical historical store for repeated training reads. Document retention and access limits.
  3. A single partition throttles. Compare incoming bytes per key, consumer lag and available capacity before scaling the entire stream.
  4. Choose Data Streams for independent readers and replay or Firehose for buffered delivery into a supported destination.
  5. Compare CSV with Parquet on a projected analytical read. Preserve raw images or audio with a catalog of their metadata.
  6. For a prediction at noon, join to the last eligible measurement before noon. Check row counts and timestamp boundaries.
  7. Choose vector dimensions, similarity measure, metadata filters and an indexing strategy. Benchmark recall and query time as the corpus grows.
  8. Store binary objects with stable locators and consent metadata while retaining the structured attributes needed for training.
  9. Write a record with its feature-group identifier and event time. Explain how historical training and latest-value serving use it differently.

Official objectives for this lesson

Related lesson · Capture a feed you can replay

Knowledge check

Choose a store that matches the training and serving reads quiz

Answer 3 questions. Check each answer for an explanation.