Day 2 • Foundations + AWS Service Selection

AWS AIF-C01 — Day 2 Comprehensive Reference Guide

Day 2 is your structured reference for the foundations of machine learning, the SageMaker toolbox, and the AWS pre-built AI services. By the end you should be able to look at any exam scenario and answer two questions instantly: "What ML problem is this?" and "Which AWS service fits?" That's the whole game.

Use the topic index to jump between sections, then revise the quick checks before practice exams.
Section
Section I — Foundations of Machine Learning

Before any AWS service or specific algorithm, you need a clean mental map of what machine learning is, what kinds of problems it solves, and how a project flows from raw data to a deployed model. This section gives you that map.

Topic
The Mental Model You Need

Every exam scenario is a walk down this four-step ladder:

StepQuestion to ask
1What type of ML is this? (supervised / unsupervised / RL / semi-supervised)
2What problem type? (classification / regression / clustering / anomaly / recommendation)
3Which AWS service fits? (SageMaker / Rekognition / Textract / Bedrock / etc.)
4Which deployment / inference type? (real-time / batch / async / serverless)

Master this ladder and the exam stops being a memorization contest. Every story — a hospital detecting tumors, a streaming service suggesting movies, a factory finding defects — is a guided walk down those four rungs.

Topic
The Four Types of Machine Learning

2.1 Supervised Learning

The intuition: A child learning what a cat is. You show photos and say "this is a cat" or "this is not a cat." Each example has the right answer attached.

Mechanics:

FlavorOutputExample
ClassificationA categorySpam or not spam
RegressionA numberPredicted house price

Real examples:

🔑 Exam clue words: "labeled data", "historical data with known outcomes", "predict category", "predict value", "training examples include the answer"

2.2 Unsupervised Learning

The intuition: Same child, but now you dump a pile of photos with no labels and say "sort these however you want." The child finds structure that was already there but hidden.

Mechanics:

Real examples:

🔑 Exam clue words: "unlabeled data", "discover patterns", "group similar items", "segment customers", "no predefined categories"

2.3 Reinforcement Learning (RL)

The intuition: Training a dog. The dog tries something → you give a treat (reward) or say "no" (penalty). Over many trials, the dog learns which actions lead to treats.

Mechanics:

Real examples:

🔑 Exam clue words: "agent", "environment", "reward", "policy", "trial and error", "learn through interaction"

2.4 Semi-supervised Learning

The intuition: You have 1,000 medical X-rays carefully labeled by a radiologist (very expensive!) and 100,000 unlabeled X-rays sitting in a database. Throwing away the unlabeled ones is wasteful.

Mechanics:

Real examples:

🔑 Exam clue words: "limited labeled data", "large unlabeled dataset", "reduce labeling cost", "labeling is expensive"

🧠 Quick check — try these in your head:

🧠 Quick Check
"A bank wants to detect fraudulent transactions. They have 5 years of transactions, each marked as fraud or legitimate."
Supervised. Labels exist.
🧠 Quick Check
"A retailer wants to discover natural groups of customers based on shopping behavior. They have no predefined groups."
Unsupervised. No labels.
🧠 Quick Check
"A robot vacuum learns the optimal cleaning path by trying routes and being rewarded for coverage."
Reinforcement. Agent + reward.
Topic
ML Problem Types

The "problem type" answers: What shape is the output?

This is different from "type of ML." A supervised problem can be classification or regression — those are different problem types.

3.1 Classification — predict a category

Output is discrete (a finite set of choices).

InputOutput
Email textSpam / Not spam
TransactionFraud / Legitimate
X-ray imageDisease / No disease / Inconclusive
🔑 Exam clue words: "which class?", "category", "yes/no", "type of object", "label"

3.2 Regression — predict a number

Output is continuous (a number on a scale).

InputOutput
House detailsPrice ($427,500)
Last 30 days of salesRevenue forecast ($1.2M)
Weather dataEnergy demand (450 MWh)

Key distinction from classification: "Will this customer churn?" = classification. "How many days until they churn?" = regression.

🔑 Exam clue words: "predict price", "forecast demand", "estimate value", "numeric output", "how much", "how many"

3.3 Clustering — group similar things (unsupervised)

No labels exist. Model finds groups.

Examples:

🔑 Exam clue words: "group similar", "segment", "no labels", "natural groupings"

3.4 Anomaly Detection — find the weird stuff

Find rare events that don't match the normal pattern.

Examples:

Why it's special: You usually have very few anomaly examples. So pure supervised learning struggles. Often handled as unsupervised or one-class.

🔑 Exam clue words: "unusual", "outlier", "abnormal", "rare event", "deviation from normal", "strange spike"

3.5 Recommendation — suggest relevant items

Predict what a user will like based on their history and similar users' behavior.

Examples:

🔑 Exam clue words: "personalized", "users who bought X also bought Y", "next best item", "recommend"

🧠 Map the problem to the type

ProblemML TypeProblem Type
Spam filterSupervisedClassification
Predict tomorrow's stock priceSupervisedRegression
Group products by similarityUnsupervisedClustering
Find rare network attacksUnsupervised (usually)Anomaly detection
"You may also like..."SpecializedRecommendation
Topic
The ML Pipeline (7 Stages)

Every real ML system moves through these 7 stages. Each AWS feature you'll memorize maps to one of them.

#StageWhat happens
1Data collectionGather raw data from databases, logs, sensors, websites
2PreprocessingClean: handle missing values, remove duplicates, normalize, fix formats
3Feature engineeringTransform raw data into useful inputs (e.g., DOB → age)
4TrainingAlgorithm learns patterns from data, adjusts parameters
5EvaluationTest on unseen data, measure accuracy/F1/etc.
6DeploymentPut model into production (real-time / batch / async / edge)
7MonitoringWatch for drift, errors, latency, bias
Critical principle: "Garbage in, garbage out." A model trained on bad data gives bad predictions, no matter how clever the algorithm.

💡 Exam trap: When a scenario describes a model producing biased/unfair results, the fix is usually the data, not the algorithm.

🧠 Quick check — Walk through one full scenario:

"A logistics company predicts whether packages arrive late. They gather 3 years of shipment records (collection), fill missing weather data and unify weight units (preprocessing), convert timestamps to day-of-week features (feature engineering), train an XGBoost classifier (training), check F1 on the last 6 months (evaluation), put the model behind a real-time endpoint for the checkout page (deployment), and 9 months later detect drift when a new carrier joins (monitoring) — triggering a retrain."

That's the 7-stage loop, end to end.

Section
Section II — Data, Parameters, and Inference

Once you understand what ML is, the next layer is the materials and machinery. Data, parameters vs hyperparameters, and training vs inference. These distinctions create most of the exam traps.

Topic
Training Data Concepts

5.1 Labeling

Adding the correct answer to each training example. Required for supervised learning.

🔑 Exam clue: "need labeled data", "annotators", "label training set"Ground Truth

5.2 Data Splits — the cardinal rule

Never use all data for training. Split it:

SplitTypical %Purpose
Training70-80%What the model learns from
Validation10-15%Tune hyperparameters, pick best model
Test10-15%Final, honest evaluation — only used at the END

⚠️ Cardinal rule: Never train on the test set. Never tune on the test set. The moment you peek, your accuracy number becomes a lie.

5.3 Class Imbalance

When one class dominates (fraud is 1% of transactions, rare disease is 0.1% of patients).

Why accuracy lies here: A model that always predicts "legitimate" is 99% accurate but useless.

Fixes:

TechniqueWhat it does
Oversampling minority classDuplicate (or synthesize) fraud examples
Undersampling majority classDrop some legit examples
SMOTEGenerates synthetic minority samples
Class weightsPenalize minority-class mistakes more
Switch metricUse F1 / recall instead of accuracy
🔑 Exam clue: "99% of data is class A", "imbalanced", "rare event" → think F1, recall, oversampling, SMOTE

5.4 Data Augmentation

Artificially expand your training set by creating modified versions of existing examples.

ModalityAugmentation tricks
ImagesRotate, crop, flip, brightness, noise, zoom
TextSynonym replacement, back-translation
AudioTime stretch, pitch shift, add background noise

Why it works: More effective data + teaches model to be robust to variations.

🔑 Exam clue: "reduce overfitting", "more training data without collecting"augmentation
Topic
Parameters vs Hyperparameters

This distinction is small but heavily tested.

6.1 Parameters

What: Numbers the model learns automatically during training.

Examples:

You never set these by hand. They emerge from training.

6.2 Hyperparameters

What: Numbers you choose before training.

Examples:

You don't know the best values in advance — you search.

6.3 The clean distinction

TypeSet byExample
ParameterThe model (during training)Neural net weights
HyperparameterYou (before training)Learning rate

💡 Mnemonic: Parameters are the model's homework. Hyperparameters are the rules you set for the homework.

6.4 Hyperparameter Tuning

You search for good hyperparameters. AWS: SageMaker Automatic Model Tuning (uses Bayesian optimization).

🧠 Quick check:

🧠 Quick Check
"A team picks learning rate = 0.001 and tree depth = 6 before training. The model then learns the weights and split points on its own."
Picks before = hyperparameters. Learned during = parameters.
Topic
Training vs Inference

Two phases in the life of a model. Different characteristics, different costs.

AspectTrainingInference
WhenPeriodic (once, then occasional retrains)Continuous (every request)
ComputeHeavy (GPUs often required)Lighter (but adds up at scale)
LatencyHours to weeksMilliseconds (usually)
Model stateParameters being updatedParameters frozen

7.1 Inference Deployment Types (4 ways to serve a model)

TypeUse whenExample
Real-time endpointSub-second latency requiredFraud check during a payment
Batch transformOffline, large dataset, no rushScore all 50M customers overnight
Asynchronous inferenceLarge payload OR long processing time1GB video analysis (10 min)
Serverless inferenceSporadic, unpredictable trafficInternal tool used a few times/day
🔑 Exam clue map:
PhrasePick
"sub-second", "real-time", "during transaction"Real-time endpoint
"overnight", "large dataset", "no real-time requirement"Batch transform
"large payload", "long processing", "async response OK"Async inference
"unpredictable traffic", "rarely used"Serverless
Section
Section III — Model Quality and Evaluation

A model that runs is not a model that works. This section teaches you to recognize subtle failures, describe them with bias/variance language, and pick the right metric.

Topic
Overfitting & Underfitting

The single most important concept in ML.

8.1 Overfitting

The intuition: A student who memorized every practice exam answer. Aces practice exams. Fails the real one. They never learned — they memorized.

Symptom:

Training accuracyValidation/Test accuracy
OverfitVery high (e.g., 99%)Much lower (e.g., 65%)

Big gap = overfitting.

Causes:

Fixes:

FixWhat it does
More training dataHarder to memorize
Regularization (L1, L2)Penalty for being too complex
Reduce model complexityFewer params, simpler architecture
Dropout (NN)Randomly turn off neurons during training
Early stoppingStop training when validation accuracy plateaus
Cross-validationBetter estimate of true performance
Data augmentationArtificially expand training set

8.2 Underfitting

The intuition: A student who only studied the chapter titles. Fails practice exams. Fails the real one. Never learned anything substantive.

Symptom:

Training accuracyValidation/Test accuracy
UnderfitLow (e.g., 60%)Also low (e.g., 58%)

Both low, small gap = underfitting.

Causes: Too-simple model, too few features, too little training, wrong algorithm.

Fixes: More complex model, more features, train longer, less regularization.

🧠 Quick diagnosis check:

Training accValidation accDiagnosis
98%71%Overfitting (big gap)
55%58%Underfitting (both low)
92%90%Healthy (close, both reasonable)
Topic
Bias and Variance

Mathematical language for the same overfit/underfit story.

BiasVariance
MeansError from over-simple assumptionsError from too much sensitivity to training data
MnemonicBias = Bad assumptionsVariance = Volatile output
High =UnderfittingOverfitting
BehaviorMisses the pattern systematicallyDifferent training set → very different model

💡 The bias-variance tradeoff: Simple model = high bias, low variance. Complex model = low bias, high variance. Sweet spot = both low enough.

🧠 Quick check — three teams predicting house prices:

TeamModelBiasVariance
ALinear regression on sq ft onlyHigh (line can't bend)Low
BDeep NN on 1000 homesLowHigh (memorizes quirks)
CXGBoost on full datasetLowLow

Team C wins.

Topic
Evaluation Metrics

The single most heavily tested area. Wrong metric = wrong answer.

10.1 The Confusion Matrix (foundation of all classification metrics)

Actual: PositiveActual: Negative
Predicted PositiveTrue Positive (TP)False Positive (FP)
Predicted NegativeFalse Negative (FN)True Negative (TN)

10.2 Accuracy

Accuracy = (TP + TN) / Total

Plain English: Of all predictions, how many were right?

Use when: Classes are roughly balanced.

⚠️ The accuracy trap: On imbalanced data (99% legit / 1% fraud), a model that always says "legit" is 99% accurate and useless. Switch to F1 / recall.

10.3 Precision

Precision = TP / (TP + FP)

Plain English: Of everything I flagged as positive, how many actually were?

Use when: False positives are expensive. You want to be sure when you say "positive."

Classic example — Spam filter:

10.4 Recall (Sensitivity)

Recall = TP / (TP + FN)

Plain English: Of all the actual positives out there, how many did I catch?

Use when: False negatives are expensive. Can't afford to miss a positive case.

Classic example — Cancer screening:

10.5 The Precision–Recall Tradeoff

You trade one for the other by adjusting the decision threshold.

Choose based on what's costlier in your domain.

10.6 F1 Score

F1 = 2 × (Precision × Recall) / (Precision + Recall)

Plain English: Harmonic mean. Single number balancing both. Bad if either is bad.

Use when:

💡 F1 is your default for imbalanced classification. AWS loves to ask "imbalanced fraud dataset, which metric?"F1 or recall.

10.7 AUC-ROC

ROC curve: Plots True Positive Rate vs False Positive Rate at every threshold. AUC: Area Under that Curve, a single number 0–1.

AUCMeaning
1.0Perfect separation
0.5Random guessing
< 0.5Worse than random (flip predictions)

Use when: Comparing classifiers without committing to a threshold.

10.8 Regression Metrics

MetricWhat it measures
MAE (Mean Absolute Error)Average of absolute errors
MSE (Mean Squared Error)Average of squared errors (penalizes big errors more)
RMSE (Root MSE)Same units as target — easier to interpret
Fraction of variance explained (0–1)

🧠 Metric scenario quick-fire:

ScenarioBest Metric
Balanced classes, just want overall correctnessAccuracy
Imbalanced fraud detectionF1 or recall
Spam filter (FPs hurt)Precision
Cancer screening (FNs hurt)Recall
Compare two binary classifiers without fixed thresholdAUC-ROC
Regression: predict house pricesRMSE or MAE
Section
Section IV — Neural Networks and Deep Learning

The engines of modern AI. Tested at conceptual level — understand intuitions, no math required.

Topic
Neural Network Basics

11.1 The Neuron

Each neuron:

  1. Takes numerical inputs
  2. Multiplies each by a weight
  3. Adds them up + a bias
  4. Runs result through an activation function
  5. Outputs a number

Weights and biases = parameters (learned during training).

11.2 Layers

LayerRole
Input layerReceives raw features (pixels, customer attributes, etc.)
Hidden layer(s)Where pattern-finding happens
Output layerProduces final prediction

Deep learning = many hidden layers.

11.3 Activation Functions

FunctionUsed for
ReLU (Rectified Linear Unit)Default for hidden layers — fast, simple, works well
SigmoidOutput for binary classification (squashes to 0–1 probability)
SoftmaxOutput for multi-class classification (probabilities sum to 1)
TanhOlder, used in some sequence models

💡 Without activation functions, a neural net is just linear math no matter how many layers.

11.4 Backpropagation (how it learns)

  1. Forward pass: Input → output → prediction
  2. Compute error (prediction vs correct answer)
  3. Backward pass: Error flows backward, layer by layer
  4. Update weights in the direction that reduces error
  5. Repeat for every batch, thousands of times
Topic
Deep Learning Architectures

Three architectures dominate three kinds of data. Memorize this.

12.1 CNN — Convolutional Neural Network

Best for: images and visual data.

Why: Uses small filters that slide over the image to detect local patterns (edges → textures → shapes → objects).

Use cases:

🔑 Exam clue words: images, pictures, video frames, visual content, pixels

12.2 RNN — Recurrent Neural Network

Best for: sequential data where order matters.

Why: Has memory — output at each step depends on current input + hidden state from previous step.

Use cases:

Weakness: Struggles with long-range dependencies — forgets the start of a long sequence.

Modern variants: LSTM, GRU (better memory).

🔑 Exam clue words: sequence, time series, step by step, temporal, order matters

12.3 Transformers

Best for: language and generative AI. The architecture behind every modern LLM (GPT, Claude, Llama).

Why they dominate: Instead of step-by-step like RNNs, transformers use an attention mechanism that lets every token directly look at every other token.

Use cases:

🔑 Exam clue words: LLM, generative AI, foundation model, attention, chatbot, summarization, text generation

🧠 Quick mapping:

Data shapeUse
Images, videoCNN
Time series, sensor streamsRNN (or LSTM/GRU)
Text, language, generative tasksTransformer
Section
Section V — Production Machine Learning

A model in a notebook is not a useful model. MLOps is the discipline of getting them into production safely.

Topic
MLOps Concepts

MLOps = DevOps applied to ML.

13.1 Model Versioning

Track every version of every model.

Why:

13.2 CI / CD / CT for ML

StageMeaning
CI (Continuous Integration)Test code, data pipelines, training scripts on every change
CD (Continuous Delivery)Deploy new models safely (canary, blue-green)
CT (Continuous Training)Retrain automatically when triggers fire

13.3 Production Monitoring

MonitorWhy
Accuracy / business metricIs the model still useful?
LatencyIs inference still fast?
ErrorsAre requests failing?
Data driftHas input distribution shifted?
Model drift (concept drift)Has the input → output relationship changed?
BiasIs the model fair across groups?

13.4 Retraining Triggers

You retrain when:

AWS service: SageMaker Pipelines automates this loop end to end.

🧠 Quick scenario:

"A fraud model worked great in January. In May, complaints spike that legit transactions are being declined. Model Monitor shows data drift since a new payment processor came online. The team rolls back to v1, fixes the retraining pipeline, and v3 deploys via canary release in 2 days."

That's the MLOps loop in action — possible only because the tooling was already in place.

Section
Section VI — Amazon SageMaker

The AWS flagship ML platform. The single most heavily tested service on the exam.

Topic
SageMaker AI Features

The exam tests which feature handles which stage of the ML lifecycle. Memorize these.

14.1 SageMaker Studio

14.2 SageMaker Autopilot

14.3 SageMaker Ground Truth

14.4 SageMaker Pipelines

14.5 SageMaker Clarify

14.6 SageMaker Model Monitor

14.7 SageMaker JumpStart

14.8 SageMaker Feature Store

14.9 SageMaker Data Wrangler

14.10 SageMaker Canvas

🧠 Scenario → SageMaker feature:

ScenarioFeature
Healthcare team has CSV, no production ML experience, wants a modelAutopilot
Compliance team needs bias audit before approvalClarify
9-month-old recommender making weird suggestionsModel Monitor
Labeling 30K satellite imagesGround Truth
Multiple teams computing customer features differentlyFeature Store
Want to deploy a Llama 2 fine-tune on AWS infraJumpStart
Topic
SageMaker Training Job Types

Three options, trade off control vs effort.

OptionWhat you provideUse when
Built-in algorithmJust data + hyperparametersCommon problem (XGBoost, K-Means, DeepAR, Linear Learner, RCF, etc.)
Script modeYour training script in TF/PyTorch/sklearnCustom logic, but standard framework
Custom containerFull Docker imageExotic dependencies, niche frameworks

💡 Rule: Use the simplest option that fits. Most problems → built-in.

15.1 Common Built-in Algorithms

AlgorithmProblem type
XGBoostClassification / regression (most popular general-purpose)
Linear LearnerLinear regression / classification
K-MeansClustering
Random Cut Forest (RCF)Anomaly detection
Factorization MachinesRecommendations
DeepARTime series forecasting
Object Detection / Image ClassificationComputer vision
Topic
SageMaker Deployment Types
TypePatternUse when
Real-time endpointAlways-on, ms latencyLive fraud check, chatbot, web recommendations
Batch transformOne-shot offline jobScore 50M customers overnight
Asynchronous inferenceQueue + result later1GB video, 10-min processing
Serverless inferenceScales to zeroSporadic / unpredictable traffic
🔑 Exam clue map (memorize):
PhrasePick
"sub-second", "during transaction"Real-time
"overnight", "large dataset", "no rush"Batch transform
"large payload", "long processing"Async
"unpredictable traffic", "rarely used"Serverless
Section
Section VII — Pre-built AWS AI Services

You're not building a model — you're calling a service that already has one. Faster, cheaper, no ML expertise needed.

Topic
Vision and Document Intelligence

Both deal with visual input but answer different questions.

17.1 Amazon Rekognition

What: Image and video analysis.

Capabilities:

🔑 Exam clue words: images, video, faces, objects, visual content, content moderation

17.2 Amazon Textract

What: Document data extraction (OCR + structure).

Capabilities:

🔑 Exam clue words: extract text, OCR, invoice, form, table, receipt, scanned document

🧠 Rekognition vs Textract — the trap:

QuestionPick
What's shown in the picture? (faces, objects)Rekognition
What does the document say? (line items, fields)Textract

⚠️ A scanned invoice of food → Textract (you want the text/numbers, not the picture of the food).

Topic
Language and Speech

18.1 Amazon Comprehend

What: Natural language processing on text.

Capabilities:

🔑 Exam clue words: sentiment, entities, key phrases, analyze text, NLP

18.2 Amazon Translate

What: Language translation (real-time + batch).

🔑 Exam clue words: translate, language pair, localization

18.3 Amazon Transcribe

What: Speech to text.

Capabilities:

🔑 Exam clue words: speech to text, transcribe, audio to text, meeting transcript, call analysis, subtitles

18.4 Amazon Polly

What: Text to speech (the opposite of Transcribe).

Capabilities:

🔑 Exam clue words: text to speech, read aloud, voice generation, audiobook

🧠 Transcribe vs Polly — the mirror:

💡 Mnemonic: Transcribe writes down what was said. Polly reads things out loud.

Topic
Conversational AI and Enterprise Search

19.1 Amazon Lex

What: Chatbot service (same engine as Alexa).

Two key concepts:

🔑 Exam clue words: chatbot, voice bot, IVR, conversational interface, intents, slots

19.2 Amazon Kendra

What: Intelligent enterprise search (NL question answering across documents).

Capabilities:

🔑 Exam clue words: enterprise search, natural language search, across documents, internal knowledge base

🧠 Lex vs Kendra:

NeedPick
Multi-turn dialogue collecting infoLex
One-shot question against many docsKendra
Topic
Forecasting, Recommendation, and Anomaly Detection

20.1 Amazon Forecast

What: Time-series forecasting service.

Use cases: Demand forecasting, sales forecasting, inventory planning, workforce demand.

🔑 Exam clue words: forecast, predict future values, time series, demand planning

20.2 Amazon Personalize

What: Recommendation engine (same tech as amazon.com).

Use cases: Product recommendations, content recommendations, personalized rankings, similar items.

🔑 Exam clue words: recommend, personalize, users who liked X, similar items

🧠 Forecast vs Personalize — the trap:

QuestionPick
Predict a number over time (next month's sales)Forecast
Recommend items to a user (next movie)Personalize

20.3 Amazon Fraud Detector

What: Dedicated fraud detection (online payments, fake accounts, transaction risk).

⚠️ Important: As of November 7, 2025, AWS stopped accepting new customers for Fraud Detector. Existing customers continue. New fraud projects → SageMaker. Know the concept; don't expect deep questions.

20.4 Amazon Lookout for Metrics

What: Detect anomalies in business/operational metrics (revenue, traffic, conversion rates).

🔑 Exam clue words: KPI anomaly, unusual change in metric, business metric monitoring

20.5 Other Lookout Services

ServiceUse case
Lookout for VisionIndustrial defect detection in images
Lookout for EquipmentPredictive maintenance from sensor data
Topic
Generative AI Services

21.1 Amazon Bedrock

What: Fully managed service for foundation models (Claude, Llama, Titan, etc.).

Capabilities:

⚠️ Important: Customized (fine-tuned) Bedrock models require Provisioned Throughput for hosting — they're not available on standard on-demand.

🔑 Exam clue words: generative AI, foundation model, managed API, no infrastructure, Claude / Llama / Titan

21.2 Amazon Q

What: Generative AI assistant (finished product, built on foundation models).

FlavorFor
Amazon Q BusinessEnterprise users — answers questions over company data
Amazon Q DeveloperSoftware engineers — code generation, IDE integration

🧠 Bedrock vs JumpStart vs Q:

NeedPick
Managed API for foundation models, no infraBedrock
Pretrained / foundation models inside SageMaker, full controlJumpStart
Finished AI assistant for business users or developersAmazon Q
Section
Section VIII — Exam Mastery
Topic
Master Service Selection Table

Memorize this table cold. Cover the right column, quiz yourself row by row.

Use caseAWS service
Detect objects, faces, scenes in images/videoAmazon Rekognition
Moderate unsafe image/video contentAmazon Rekognition
Extract text from scanned documents (OCR)Amazon Textract
Extract tables, forms, key-value pairs from invoicesAmazon Textract
Convert speech/audio to textAmazon Transcribe
Convert text to natural-sounding speechAmazon Polly
Translate text between languagesAmazon Translate
Analyze sentiment in customer reviewsAmazon Comprehend
Extract entities and key phrases from textAmazon Comprehend
Build a chatbot with intents and slotsAmazon Lex
Forecast future demand or salesAmazon Forecast
Recommend products or content to usersAmazon Personalize
Search across enterprise docs in natural languageAmazon Kendra
Detect fraud (existing customers)Fraud Detector or SageMaker
Detect anomalies in business KPIsAmazon Lookout for Metrics
Detect defects in manufacturing imagesAmazon Lookout for Vision
Predict equipment failure from sensor dataAmazon Lookout for Equipment
Build, train, deploy a custom ML modelAmazon SageMaker AI
Label training data for supervised learningSageMaker Ground Truth
Auto-build ML models with minimal codeSageMaker Autopilot
Detect bias and explain predictionsSageMaker Clarify
Monitor a deployed model for driftSageMaker Model Monitor
Store and reuse ML features across teamsSageMaker Feature Store
Use pretrained / foundation models inside SageMakerSageMaker JumpStart
Automate end-to-end ML workflowsSageMaker Pipelines
Sub-second predictionsSageMaker Real-time Endpoint
Offline bulk predictions on large datasetsSageMaker Batch Transform
Long-running inference with large payloadsSageMaker Async Inference
Sporadic / unpredictable inference trafficSageMaker Serverless Inference
Build generative AI apps with foundation modelsAmazon Bedrock
Enterprise GenAI assistant for business usersAmazon Q Business
AI coding assistant in IDEAmazon Q Developer
Topic
The Top 10 Exam Traps
#TrapTruth
1High accuracy on imbalanced dataSwitch to F1 / recall / AUC-ROC
2Rekognition vs TextractVisual content = Rekognition. Text in document = Textract
3Transcribe vs PollyTranscribe = audio→text. Polly = text→audio
4Comprehend vs KendraComprehend analyzes text. Kendra searches documents
5Forecast vs PersonalizeForecast = numbers over time. Personalize = items to users
6SageMaker vs pre-built serviceUse pre-built if it fits. SageMaker only for custom
7Inference deploymentReal-time / batch / async / serverless are NOT interchangeable
8Underfitting fixMake model more complex (regularization is for overfitting)
9Bias misdirectionBias often means fix the data or use Clarify
10JumpStart vs BedrockJumpStart = inside SageMaker. Bedrock = managed API
Topic
One-Line Memory Sheet

Pre-exam revision. Read it three times the night before.

Topic
Day 2 Study Plan
OrderWhatTime
1Read Parts 1–10 in order (foundations + metrics)60 min
2Drill Part 10 metrics aloud — quiz yourself on each scenario20 min
3Read Parts 11–13 (NN, deep learning, MLOps)30 min
4Read Parts 14–21 (SageMaker + AI services)60 min
5Memorize Part 22 (master service table) — cover right column, quiz30 min
6Read Part 23 (top 10 traps) twice15 min
7Use Part 24 (memory sheet) as last 5 min before exam5 min

🧠 Final Self-Test (10 questions)

Answer aloud before reading the answer:

  1. A bank flags fraud where 1 in 1000 transactions is fraud. Best metric? Why is accuracy bad?

F1 / recall. Always-legit predicts 99.9% accurate but useless.

  1. 50M customer records, segment without predefined groups. Type and problem?

→ Unsupervised, clustering.

  1. 98% training, 71% validation. Diagnosis + 3 fixes?

→ Overfitting. More data, regularization, dropout, simpler model, early stopping.

  1. Extract line items, totals, tax from PDF invoices. Service?

Amazon Textract.

  1. Detect when input data shifted away from training data. Service?

SageMaker Model Monitor.

  1. Score 50M customers Sunday night, no real-time need. Deployment?

Batch Transform.

  1. Flight booking chatbot with departure / destination / date / passengers. Service?

Amazon Lex.

  1. Difference between a parameter and a hyperparameter? One example each.

→ Parameter = learned by model (NN weights). Hyperparameter = set by you (learning rate).

  1. Which deep learning architecture powers modern LLMs and why?

Transformers — attention lets every token see every other token, scales massively.

  1. When pick Bedrock instead of SageMaker?

Bedrock = managed API for foundation models, no infra. SageMaker = custom training, full control.

If you got 8+ right, you're ready. Move to practice exams. If under 8, find the weak sections and reread.

End of Day 2. Sleep well. Tomorrow → Day 3 (responsible AI, security, governance, cost).