From raw transactions to features a model can learn from

Module 2 of a visual study guide for the AWS Certified Machine Learning Engineer – Associate (MLA‑C02) exam: exploring, cleaning and engineering data, then storing, checking and protecting the features. One color rule carries over from Module 1: warm means live, risky or leaking; teal means the safe default; blue means stored history.

timestamp03:12 Wed
amount$480.00
merchantshopping_net
card…4417
3 txns in last hour$612 spent in 1 h z = +4.1 vs own 7‑day meanlog(amount) merchant fraud rate (train only)merchant one‑hot hour_sin, hour_cosis_night = 1weekday
velocityamount scalingmerchant encodingtime
Exam versionThese notes follow MLA‑C02 (the English MLA‑C01 exam ended on September 28, 2026). This module covers Task 1.2 (transform and engineer features) and Task 1.3 (data quality and bias), plus the Feature Store skill from Task 1.1. MLA‑C02 adds generative‑AI data prep to both tasks; the Deep dives section covers it.
Cheatsheet

Everything to recall on one screen

Each line maps an exam phrase to the answer it usually points to.

If the question says… pick

“Visual, low‑code data prep inside SageMaker”Data Wrangler (now inside SageMaker Canvas)
“Quick report on quality, leakage and imbalance before training”Data Wrangler Data Quality and Insights report
“Rules that fail an ETL job when data is bad”Glue Data Quality (DQDL rules)
“Analysts profile and clean data without code”Glue DataBrew
“Reuse features across teams; same values in training and inference”SageMaker Feature Store
“Millisecond feature lookup at inference”Online store, GetRecord
“Full feature history for training”Offline store in S3, query with Athena
“Features must update seconds after each event”Lambda or Flink computing, then PutRecord
“Bias in the training data, before any model exists”Clarify pre‑training bias (CI, DPL…)
“Bias in the model’s predictions”Clarify post‑training bias
“Which features drive a prediction”Clarify SHAP explanations
“Live endpoint inputs drift from training data”Model Monitor data quality monitor
“Heavily right‑skewed number”Log transform; cap at a high percentile
“Outliers distort scaling”Robust scaling (median and IQR) or percentile capping
“Hour of day, day of week, month”Sine and cosine (cyclical) encoding
“Few categories, no order”One‑hot encoding
“Thousands of categories”Target (out‑of‑fold), frequency or hash encoding
“Great validation score, poor in production”Target leakage or train‑serve skew
“Positive class under 1%”Judge by PR‑AUC, recall, F1; fix with class weights or resampling
“Data ordered in time”Time‑based split, never a random shuffle
“Find which buckets hold PII”Amazon Macie
“Detect and redact PII in text”Amazon Comprehend PII detection
“Mask PII inside an ETL job”Glue sensitive data detection or DataBrew masking
“Humans must label images or text”SageMaker Ground Truth
“RAG answers lack surrounding context”Hierarchical chunking in Bedrock Knowledge Bases
“Smaller model should mimic a larger one”Bedrock Model Distillation
“Cheapest compute for a pandas preprocessing job”Processing job on a CPU instance; Managed Spot is for training only

Numbers and formulas

  • Fraud share in this dataset: well under 1%
  • Outlier fences: Q1 − 1.5·IQR and Q3 + 1.5·IQR
  • Redundant pair: correlation above 0.9
  • Z‑score: (x − mean) / std; min‑max: (x − min) / (max − min)
  • Cyclical hour: sin(2π·h/24), cos(2π·h/24)
  • Class imbalance CI: (na − nd) / (na + nd)
  • DPL: qa − qd (positive‑label rates of the two groups)
  • Bedrock KB default chunk: about 300 tokens
  • Bedrock distillation: up to 15,000 prompts, 100+ recommended

Leakage in one breath

  • Split first, then fit scalers, imputers and encoders on train only
  • Rolling features use only the past; exclude the current row’s label
  • Never turn the label into a feature (a customer’s fraud rate that includes today)
  • Split by time when the future must be predicted

Feature Store in one breath

  • Every record needs a record identifier and an event time
  • Create the group, wait for Created, then ingest
  • Online store is off unless you enable it
  • Online writes copy to the offline store automatically
  • Writer role needs sagemaker:PutRecord on that group

MLA‑C02 tasks this module covers

1.2 Transform, engineer, pre‑processmain
1.3 Validate quality, manage biasmain
1.1.9 Ingest into Feature Storeone skill

All inside Domain 1, Data Preparation for ML and AI (28%).

1

The module on one page

Data leaves the Module 1 lake, gets explored and cleaned, becomes features, lands in Feature Store, and is checked for quality and bias before any model trains on it.

S3 processed Parquetbuilt in Module 1 Explore (EDA)skew, imbalance, fraud rates, correlation Cleanimpute, cap outliers, timestamps to UTC Engineer featuresvelocity, scaling, encoding, time Data Wrangler flow or Processing jobsame steps, repeatable at full scale Online storelatest values, ms reads Offline store (S3)full history for training Quality and bias checksClarify pre‑training bias, quality baseline Next: model trainingreads features from the offline store to theendpoint
The online store feeds a live fraud endpoint; the offline store feeds training. Same feature definitions in both is what prevents train‑serve skew.
2

The dataset and its rare class

Each row is one card transaction with a 0/1 fraud label. Fraud is well under 1% of rows. Here are 1,000 transactions at a 0.5% rate: five are fraud.

A model that always answers “legitimate” is right 995 times out of 1,000 and catches nothing. Try it below.

Why accuracy lies

Out of 100,000 transactions with 500 frauds. Set how many frauds the model catches and how many legitimate ones it wrongly flags.

What the exam wantsFor rare classes, accuracy is the wrong metric. Use recall (how many frauds you catch), precision (how many flags are real), their balance F1, or the area under the precision‑recall curve (PR‑AUC). Fixes such as class weights and resampling come in training.
3

Every chart should change a decision

Exploratory data analysis (EDA) means looking at distributions, rates and relationships before building anything. The rule: each finding should lead to a specific feature choice.

What you seeWhat you do Long right tailamount Log transform, or cap the taildon’t delete the tail: fraud may live there Rare positive~0.5% fraud Score with PR‑AUC, recall, F1stratify or time‑split so test has fraud Fraud rate variesby category Encode the categoryone‑hot, or target encoding fit on train Correlationabove 0.9 Keep one of the pairthe one less sensitive to single outliers Missing valuesper column Drop or impute by the column’s rolesee the flowchart in section 4 Proxy for a groupzip, age, location Run Clarify pre‑training biasbefore the model learns the pattern
Use it as a lookup while you clean and engineer features.
4

Cleaning: missing values, outliers, time

Drop or impute?

Is the field essential?ID, timestamp, amount, label Yes Drop the rowcan’t be guessed No Is most of the column empty?e.g. over half the rows Yes Drop the columntoo little signal No Does “missing” itself meansomething? Yes Impute + flagadd is_missing No Impute by type, fit on the training set only skewed numbers: median · symmetric numbers: mean categories: mode or an explicit “unknown” domain knowledge: cohort median (e.g. per merchant type) local structure, small data: KNN imputation
The 50% threshold is a rule of thumb, not an AWS rule. Write each choice in a data dictionary so it can be audited.

Cap, don’t delete

In fraud data the extreme values are often the signal. Capping (also called winsorizing) pulls extreme values back to a limit and keeps the row. Remove a row only when the value is impossible: a negative amount, a date in the future, an age of 250.

$0amount → Q3 + 1.5·IQR 99th pct middle 50% On skewed data the IQR fence clips every red dot;a 99th‑percentile cap clips only the last one.
Clipping at the IQR fence is a common default, but on skewed data it flattens much of the tail. Choose the cap after looking at amounts by label.

Timestamps

Convert every timestamp to one time zone (UTC) before anything else, then extract hour, weekday and weekend flags. Time features only work if all rows speak the same clock.

5

Four feature families

FamilyExampleFraud pattern it catches
Velocitytransactions and amount per card in the last 1 h, 24 h, 7 daysA stolen card used many times quickly
Amount scalingz‑score against the card’s own recent meanA purchase far outside this customer’s normal size
Merchant encodingone‑hot category; category fraud rate from training dataRisky merchant types such as online retail
Timehour_sin, hour_cos, is_night, weekdayActivity at hours this card never uses

Before keeping a feature, ask five things: can you define it in one sentence, is it mostly populated, how many distinct values does it take, does it stay stable week to week, and does it move with the label at all?

Choosing a scaler

MethodFormulaUse whenWatch out
Z‑score (standardize)(x − mean) / stdRoughly bell‑shaped data; linear models, neural netsOutliers inflate the std
Min‑max(x − min) / (max − min)You need 0 to 1, e.g. neural net inputsOne huge value squashes everything else
Robust(x − median) / IQROutliers you want to keepLess familiar to readers
Loglog(1 + x)Long right tail: amounts, counts, incomeOnly for values ≥ 0
Per‑entity z(x − own mean) / own std“Unusual for this customer”Needs history; cold‑start fallback
Tree modelsXGBoost and random forests don’t need scaling, because they split on thresholds. Scaling matters for linear models, k‑nearest neighbours, k‑means and neural networks. The exam likes this distinction.

Choosing an encoding

Do the values have a naturalorder (low, medium, high)? Yes Ordinal1, 2, 3 in order No Only a few categories?tens, not thousands Yes One‑hotone 0/1 column each No Target encodinglabel mean per categoryfit on train only,out‑of‑foldleakage risk Frequency or hashcount per category, orhash into N buckets;embeddings for deep nets
Plain integer codes for unordered categories invent a fake order (category 9 is not “more” than category 2).

Why hours need sine and cosine

061218
6

Leakage: features that know the answer

Target leakage means a feature carries information the model would not have at prediction time, usually the label itself or data from the future. Validation scores look superb; production collapses.

Rolling windowearlier transactions only this transaction Futurenever in a feature Also off‑limits: this row’s own label, and any statisticcomputed on the full dataset before the train/test split.

Three common leaks

CodeThe leakFix
groupby('merchant_category')['is_fraud'].mean() on all rowsTest rows’ labels shape their own encodingFit on training rows only, out‑of‑fold (scikit‑learn TargetEncoder)
customer_fraud_rate = customer’s mean is_fraud over all historyIncludes the current row’s label and the futureUse only labels confirmed before this transaction, or drop it
StandardScaler().fit_transform and per‑customer mean/std on the full tableTest and future rows set the scaleFit on train; per‑customer stats from a past‑only rolling window

Split by time

Random shuffle future leaks into training Time‑based split train: Jan–Sep val test Fraud patterns change; test on months the model has never seen.
7

SageMaker Data Wrangler

A visual tool for building data‑prep steps without code. It now lives inside SageMaker Canvas. The flow is saved as a JSON file you can version, and it can run at full scale as a job.

ImportS3, Athena, Redshift Data Quality and Insights reportmissing, outliers, imbalance, target leakage Transform steps (300+ built‑in)drop missing, cap outliers, scale, encode,date features, custom pandas or PySpark Quick model and analysesfeature importance, histograms, bias report Run as a joboutput to S3 orFeature Store Pipeline stepSageMakerPipelines Export codePython scriptfor CI/CD
The insights report is the exam‑friendly answer to “quickly find quality problems and target leakage before training”.
NeedData WranglerGlue DataBrewGlue / EMR Spark
Who uses itData scientists in SageMakerAnalysts, no codeEngineers writing code
Best atML prep, leakage and bias insight, Feature Store exportProfiling, cleaning, data quality rules, PII maskingLarge or custom ETL, joins, streaming
ScaleJob on processing instancesServerless jobsAny size
8

SageMaker Feature Store

A shared library of features. Define a feature once, then training reads its history and the live model reads its latest value, so the two can’t drift apart (train‑serve skew).

Order of operations

  1. Prepare the DataFrame: a record identifier column, an event‑time column (Unix seconds or ISO‑8601 text), and string columns cast to pandas’ string type.
  2. Define features: load_feature_definitions(df) infers Integral, Fractional and String types.
  3. Create the group with an S3 location for the offline store, the identifier and event‑time names, a role, and enable_online_store=True if you need live reads (off by default).
  4. Wait until status is Created; ingesting earlier fails.
  5. Ingest: batch with ingest(), or one record at a time with PutRecord from a stream.
  6. Read: GetRecord on the online store at inference; Athena on the offline store for training sets.
Point‑in‑time correctnessWhen you build a training set from the offline store, join each label to the feature values as they were at that label’s event time, not the latest values. That is the Feature Store version of the leakage rule in section 6.
Recent changeFeature Store supports SageMaker Python SDK v3 (version 3.8.0 or later) since May 2026, and offline stores can now use Lake Formation for column‑ and row‑level access. Older tutorials use SDK v2, which still works; module paths differ between the two.
9

Data quality and bias

Which check, when

When should the check run? Before trainingAfter deployment Glue Data Qualityrules that gate an ETL job DataBrew / Data Wranglerprofiles and insight reports Clarify pre‑trainingbias in the labels and data Model Monitor data quality: inputs vstraining baseline model quality: accuracyonce labels arrive bias drift (via Clarify) feature attribution drift Clarify post‑training bias and SHAP explanations need atrained model, so they come after training.
Model Monitor watches data sent to a live endpoint or batch transform. For data before training, use the left column.

Clarify’s pre‑training bias metrics

A facet is the attribute you’re checking, such as region or age group. Clarify compares group a (often the larger or favoured group) with group d (the group that might be disadvantaged).

MetricQuestion it answers
CI Class imbalanceIs one group much smaller in the data?
DPL Difference in proportions of labelsDoes one group get the positive label more often?
KL, JS divergenceHow different are the groups’ label distributions?
LP, TVD, KSOther distances between the groups’ label distributions
CDD Conditional demographic disparityDoes a gap persist within subgroups (set with group_name)?

CI and DPL calculator

Fairness termsDemographic parity, equalized odds and predictive parity compare a model’s predictions across groups, so they are post‑training ideas. Before training, Clarify measures the data with the metrics above.
10

Security and cost

Least privilege for the pipeline role

Processing jobexecution role Raw bucketGetObject, ListBucket Features bucketPutObject only One feature groupsagemaker:PutRecord One KMS keyDecrypt, GenerateDataKey
No wildcards, no delete. Add encryption with KMS on both feature stores, run jobs inside a VPC when data is sensitive, and limit who can read the online store.

Cost levers

11

Hands‑on project: decide like an engineer

Three situations you will meet when a feature pipeline runs for real. Pick an answer, then open the reasoning.

1. The score that’s too good

Offline validation shows a PR‑AUC of 0.97. In a shadow test on live traffic, the same model scores 0.41.

  1. Collect more data
  2. Audit the features for leakage: rebuild them with a time‑based split and past‑only windows
  3. Switch to a larger model
Suggested answer
b. A gap that size almost always means some features saw information at training time that they can’t see live: encodings or customer statistics computed on all rows, or rolling windows that include the current or later transactions. Rebuild, re‑validate, then judge the model.

2. A merchant category nobody has seen

A new merchant type starts appearing in live traffic. It didn’t exist when you trained.

  1. Let the endpoint fail on unknown values
  2. Map unseen values to an “unknown” bucket fitted at training time, and monitor its share
  3. Retrain every time a new category appears
Suggested answer
b. Fit encoders with an explicit unknown bucket (for example scikit‑learn’s OneHotEncoder(handle_unknown="ignore") or a reserved category) so inference never breaks. Track how many rows land there; when the share grows, retrain with real examples.

3. Velocity that arrives a day late

A nightly job writes txn_count_1h to the online store. A card used five times in ten minutes still shows yesterday’s count.

  1. Run the batch job hourly
  2. Compute velocity on the event stream (Flink or Lambda) and write each update with PutRecord
  3. Have the endpoint query the offline store with Athena
Suggested answer
b. A one‑hour window needs updates within seconds. Streaming computation keeps the online store fresh; hourly batches still miss bursts, and an Athena query is far too slow inside a real‑time call.

The build, step by step

  1. Load the processed Parquet from Module 1 and check schema, row count and fraud share.
  2. Split by time first: training months, a validation month, a test month.
  3. Clean: drop rows missing essentials, impute the rest with values learned from training data, convert timestamps to UTC, cap extreme amounts.
  4. Engineer: velocity over 1 hour, 24 hours and 7 days from earlier transactions only; a per‑card amount z‑score; sine and cosine of the hour; merchant encoding fitted on training data.
  5. Rebuild visually in Data Wrangler and export the flow and the Python code.
  6. Register a feature group keyed by card with an event‑time column: create, wait for Created, ingest.
  7. Check bias with a Clarify pre‑training report on a facet such as age band or region.
  8. See a leak for yourself: compute one feature the wrong way, a merchant fraud rate over all rows, and compare validation scores with the correct version. The jump you see is what leakage looks like.
12

The rest of the exam guide for this module

Every skill MLA‑C02 lists for Tasks 1.2 and 1.3, where it’s covered, then a short lesson for each one the sections above don’t fully reach.

Skill in the exam guideWhere
1.1.9 Ingest data into Feature StoreSection 8
1.2.1 Transform with Glue, DataBrew, Spark on EMR, Data WranglerSection 7, deep dive 1
1.2.2 Create and manage features in Feature StoreSection 8
1.2.3 Transform streaming data (Lambda, Spark)Deep dive 2
1.2.4 Scaling, standardizing, splitting, binning, log, normalizingSection 5, deep dive 1
1.2.5 Embedding models for text and imagesDeep dive 6
1.2.6 Tokenization, domain‑specific augmentationDeep dive 6
1.2.7 RAG document prep: chunking, metadataDeep dive 6
1.2.8 Mask, redact, anonymizeDeep dive 5
1.2.9 Data for fine‑tuning, continued pre‑training, distillationDeep dive 6
1.3.1 Validate quality (DataBrew, Glue Data Quality)Section 9, deep dive 3
1.3.2 Label and annotate dataDeep dive 3
1.3.3 Find and mitigate bias (split, shuffle, augment)Section 9, deep dive 4
1.3.4 Bias metrics across numeric, text, imageSection 9, deep dive 4
1.3.5 Resolve class imbalanceSection 2, deep dive 4
1.3.6 Validate AI training data (prompt‑response pairs, safety)Deep dive 6
1.3.7 Clean: outliers, imputation, dedupSection 4

Deep dive 1: the rest of the feature engineering toolbox

TechniqueWhat it doesExample
BinningTurns a number into rangesage → 18–25, 26–40, 41–65, 65+; quantile bins give equal counts per bin
Feature splittingBreaks one field into useful partstimestamp → hour, weekday; “Toronto, ON” → city, province; email → domain
Log transformCompresses a long right tailnp.log1p(amount)
Feature crossingCombines two features into onemerchant category × is_night
Dimensionality reductionFewer columns that keep most informationPCA on many correlated numeric features

Glue jobs and Spark on EMR do the same transformations in code at large scale; DataBrew does many of them without code.

Deep dive 2: transforming streaming data

Velocity features are only useful at inference if they are fresh. Batch jobs that run nightly can’t tell you a card was used three times in the last minute.

Card swipe event Kinesis Data Streams or MSKholds events in order Lambdasimple per‑record work:parse, mask, enrich Flink or Spark streamingwindows: count per cardin the last hour PutRecord → online store

Deep dive 3: data quality rules and labeling

Glue Data Quality uses a small rule language, DQDL. A failed rule can stop the job before bad data reaches training:

Rules = [
  IsComplete "trans_num",
  IsUnique "trans_num",
  Completeness "category" > 0.95,
  ColumnValues "amt" > 0
]

DataBrew offers the same idea without code: profile a dataset, then attach data quality rules to a job. A completeness rule is exactly what catches a column that suddenly goes blank.

Labeling needService
Your own or vendor workforce labels images, text, video; optional automated labeling to cut costSageMaker Ground Truth
AWS runs the whole labeling project for youGround Truth Plus
Humans review low‑confidence predictions in productionAmazon Augmented AI (A2I)

Deep dive 4: fixing imbalance and bias

Try in this order, cheapest first 1. Split with carestratified (same fraud share in every split) or by time 2. Weight the rare classclass weights; XGBoost scale_pos_weight 3. Resample the training set onlyundersample majority, oversample or SMOTE minority 4. Move the decision thresholdtrade precision for recall on purpose Text and images: augmentsynonyms, back‑translation; flips, crops,color shifts for the rare class or group
Never resample before splitting, or copies of the same fraud row end up in both training and test.

Bias in text and images works the same way as in tables: check how each group is represented (counts per group, label rates per group) and rebalance with more data, augmentation or reweighting. Shuffling before splitting removes order effects when data isn’t time‑dependent.

Deep dive 5: masking and redacting sensitive data

Find it Amazon Maciescans S3 buckets for PII Amazon Comprehenddetects and redacts PII in text Transform it in the pipeline Gluesensitive data detection DataBrewmask, hash, encrypt columns Guard it at run time Bedrock Guardrails sensitive information filtersblock or mask PII in prompts and model responses Techniques: redact (remove), mask (****4417), hash or tokenize(join without exposing), generalize (zip → first 3 digits)
Keeping only the first three digits of a zip code is generalization: it lowers re‑identification risk but can still act as a proxy for protected groups.

Deep dive 6: preparing data for generative AI

SkillWhat to know
Embeddings (1.2.5)An embedding model (Bedrock Titan Text Embeddings, Nova multimodal embeddings, Cohere Embed) turns text or images into number lists. The vector index dimension must match the model’s output; use the same model for documents and queries.
Tokenization (1.2.6)Models count tokens, not words or characters. Context windows, chunk sizes and prices are all in tokens.
Augmentation (1.2.6)Add domain examples: paraphrases, back‑translation, synthetic examples from an FM, then review them.
Chunking (1.2.7)Bedrock Knowledge Bases offers default (about 300 tokens, whole sentences), fixed‑size with overlap, hierarchical (match small child chunks, return the larger parent), semantic (split where meaning changes; uses an FM, costs more), or no chunking.
Metadata (1.2.7)Attach source, date, department and so on to each chunk so retrieval can filter (“policies from 2026 only”).
Fine‑tuning data (1.2.9)Labeled prompt and desired‑response pairs in JSONL; the exact schema depends on the model.
Continued pre‑training (1.2.9)Large amounts of unlabeled domain text; teaches vocabulary and style, not tasks.
Distillation (1.2.9)You supply prompts (up to 15,000; 100+ recommended); a large teacher model writes answers that train a smaller student. Can also draw from invocation logs.
Data integrity (1.3.6)Validate the JSONL format, remove duplicate and contradictory pairs, strip PII, and screen for unsafe or toxic content before training.
13

Self‑check questions

Answer each one aloud first, then open it to check.

Exploring data vs engineering features: what’s the difference, and why do you need both?

EDA is looking: distributions, missing values, class balance, correlations, rates by category. Feature engineering is building: new columns that turn what you found into signals a model can use. EDA without feature engineering leaves insights unused; feature engineering without EDA encodes guesses, and you may build features you don’t understand or that leak the label.

Why does a rare positive class change how you explore and evaluate?

Fraud is well under 1% of rows. A model that never predicts fraud scores over 99% accuracy and is useless, and training updates are dominated by the majority class. During EDA you measure the imbalance so you choose honest metrics (recall, precision, F1, PR‑AUC), split so test sets contain fraud (stratified or by time), and plan class weights or resampling.

When do you drop missing data, and when do you fill it in?

Drop when the value is essential or impossible to guess: a row without a timestamp or amount, or a column that is mostly empty. Impute when the column is useful and only a little is missing: a missing merchant category becomes “unknown” or the mode; a missing amount in a skewed column gets the median. If missingness is meaningful, impute and add a flag column. Fit imputers on training data only.

Compare three ways to scale transaction amounts
  • Global z‑score: simple, but outliers stretch the scale and it ignores who the customer is.
  • Min‑max to 0–1: bounded, but one extreme value squashes everyone else.
  • Per‑customer z‑score: captures “unusual for this person”, the strongest fraud signal, but needs history and a fallback for new customers.

Also useful: a log transform for the long tail, and robust scaling when outliers must stay.

What is a velocity feature, and why does it catch fraud?

Velocity is how often and how much a card is used in a recent window: count and total amount in the last hour, day or week. Stolen cards are typically used many times in quick succession, often small test charges first. Velocity catches that burst even when each single transaction looks normal. Compute it only from earlier transactions, and keep it fresh with streaming updates if it feeds a live model.

How does target encoding work, and what can go wrong?

Target encoding replaces each category with the average label for that category, for example the fraud rate of “shopping_net”. It handles thousands of categories in one column. The risk is target leakage: if the averages include test rows or the current row, the feature contains the answer. Compute it on training data only, use out‑of‑fold encoding inside training, and smooth rare categories toward the overall rate.

Why encode hour of day with sine and cosine?

As a plain number, 23:00 and 00:00 look 23 apart even though they are one hour apart. Mapping the hour onto a circle with sine and cosine puts them next to each other, so the model sees the real distance. The same applies to weekday and month.

Online store vs offline store: what does each do?

The online store keeps the latest value per record for millisecond reads by a live endpoint (GetRecord). It is off by default. The offline store keeps every version in S3, cataloged for Athena, for building training sets and audits. Online writes are copied to the offline store automatically, so training and inference share one definition of each feature.

What is demographic parity, and why does it matter for fraud models?

Demographic parity means each group receives the positive outcome (here, a fraud flag or decline) at a similar rate. In fraud detection, a model that flags one region or age group far more often wrongly declines honest customers in that group, which hurts customers and can break regulations. Before training, Clarify’s CI and DPL show whether the data is already skewed; after training, post‑training metrics show whether the model is.

How would you secure a pipeline that handles customer data?
  • Least‑privilege roles: read raw, write features, PutRecord on one feature group, one KMS key; no wildcards, no delete
  • KMS encryption for S3 and both feature stores; TLS in transit
  • Jobs inside a VPC with VPC endpoints; no public internet access
  • Mask, hash or drop PII before it becomes a feature; Macie to find stray PII
  • Lake Formation or IAM to limit who can read the offline store
  • CloudTrail for auditing, and alarms on failed writes
14

Exam drill

Scenario questions in the exam’s style. Tap an answer to see why.

0 / 0
15

Common traps and outdated advice

Mistakes that show up often in tutorials and sample code, with the fix.