Cert Notes/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
SCS-C03 · SpecialtySecurity - Specialty
MLA-C01 · AssociateMachine Learning Engineer - Associate
  • Week 1
    • 1.ML Lifecycle and the Role of ML Engineers
    • 2.ML Problem Types and Evaluation Metrics Basics
    • 3.Day 3
    • 4.SageMaker Overview: Studio, Training/Inference, Built-in Algorithms
    • 5.Week 1 Comprehensive Review — ML Fundamentals & AWS Stack
  • Week 2
    • 1.Data Collection: S3 Data Lake, Kinesis, Batch Ingestion, Data Formats
    • 2.Data Catalog & ETL: AWS Glue and DataBrew
    • 3.Query & Exploration: Athena, Redshift, EDA Basics
    • 4.Data Storage Strategy: Partitioning, Format Optimization, Training Readiness
    • 5.Week 2 Comprehensive Review — Data Collection & Storage Recap
  • Week 3
    • 1.Feature Engineering: The Art of Transforming Data into Numbers Models Can Read
    • 2.SageMaker Data Wrangler: No-Code Data Preparation
    • 3.SageMaker Feature Store: Managing Features as Assets
    • 4.Data Bias·Quality: Clarify, Class Imbalance Handling, Data Split
    • 5.Week 3 Comprehensive Review — Feature Engineering·Data Quality
  • Week 4
    • 1.SageMaker Training Job: Estimator, Input Channels, Instances, Spot
    • 2.Built-in Algorithms: XGBoost, Linear Learner, Image·Text, Input Formats
    • 3.Hyperparameter Tuning (AMT): Bayesian·Random·Grid, Early Stopping, Warm Start
    • 4.JumpStart·Pre-trained Models·Transfer Learning + Training Cost Optimization
    • 5.Week 4 Comprehensive Review: Model Development 1 — SageMaker Training
  • Week 5
    • 1.Custom Training: Script Mode, BYOC, Framework Containers
    • 2.Distributed Training: Data Parallel and Model Parallel
    • 3.Debugging and Profiling: SageMaker Debugger and Profiler
    • 4.Model Evaluation: Metric Selection, Overfitting, Cross-validation, Confusion Matrix
    • 5.Week 5 Comprehensive: Model Development 2 Review
  • Week 6
    • 1.Inference Options Overview: 4 Deployment Modes and Selection Criteria
    • 2.Real-time Endpoints: Configuration, Auto-scaling, Instance Selection
    • 3.Cost & Advanced Inference: Multi-model, Multi-container, Inference Pipeline, Inferentia
    • 4.Batch & Serverless Inference Deep Dive: Throughput Tuning & Cost Tradeoffs
    • 5.Week 6 Synthesis: Inference Deployment Review
  • Week 7
    • 1.Declare parameters, injectible at execution
    • 2.Create package group bundling models of same purpose
    • 3.buildspec.yml — commands CodeBuild executes
    • 4.CloudFormation: SageMaker endpoint declared as code
    • 5.Synthesis code: pipeline end with condition passes → approval triggers deploy
  • Week 8
    • 1.SageMaker Model Monitor: Data Quality and Model Quality Drift
    • 2.Bias and Explainability Drift: Monitoring During Operations with Clarify
    • 3.Filter recent errors from log group
    • 4.Day 4
    • 5.Best practice: aggregating operational metrics + model monitor metrics on one dashboard
  • Week 9
    • 1.Day 1
    • 2.Day 2
    • 3.Data and Model Protection: KMS Encryption and Secrets
    • 4.Day 4
    • 5.Day 5
  • Week 10
    • 1.Day 1
    • 2.Day 2
    • 3.Day 3
    • 4.Day 4
    • 5.Day 5
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
← MLA-C01/Week 1/Day 3
MLA-C01· AssociateWeek 1 · Day 3~12 min read

Day 3 - AWS ML Stack at a Glance

Now that you've identified the ML problem, it's time to choose your tools. AWS has dozens of ML-related services, which feels overwhelming at first. But in reality, they're organized cleanly into three layers. Answer the question "Will you build a model from scratch, call pre-trained models via API, or manage bare infrastructure?" and you'll know which layer to use.

Today, we'll survey this 3-layer stack — AI Services, ML Platform (SageMaker), and Infrastructure — see when ML engineers choose each layer, and learn how to identify in exam scenarios "which tool should we use?"

AWS ML Stack: The 3-Layer Structure

\
┌─────────────────────────────────────────────────┐ │ Top: AI Services (Pre-trained models, API calls only)│ │ Rekognition, Comprehend, Transcribe, │ │ Translate, Polly, Textract, Forecast, Bedrock │ ├─────────────────────────────────────────────────┤ │ Middle: ML Platform (Train & deploy directly) │ │ Amazon SageMaker (AI) │ ├─────────────────────────────────────────────────┤ │ Bottom: ML Infrastructure (Direct compute mgmt) │ │ EC2(GPU), Inferentia, Trainium, EKS, ECS, FSx │ └─────────────────────────────────────────────────┘ \\

The selection principle is the tradeoff between abstraction level and control. Go higher and it's faster and easier, but less control. Go lower and you're more free, but you handle more directly. ML engineers choose: "Top for standard tasks that don't need ML expertise, Middle for custom models, Bottom for extreme performance/cost optimization."

💡 Related Theory: This is the ML version of the shared responsibility model from Day 1. AI Services have AWS handling model training and infrastructure; the customer calls APIs and provides data. SageMaker has the customer handling model code and data while AWS manages infrastructure. Self-managed EC2 puts almost everything on the customer. As abstraction rises, the responsibility boundary moves up.

Top Layer: AI Services — ML Capabilities Without Models

AI Services use pre-trained models with a single API call. You need almost no ML knowledge. Memorizing common mappings helps exam scenario questions.

ServiceInput → OutputUse Case
RekognitionImage/Video → Objects, Faces, TextImage Analysis, Content Moderation
ComprehendText → Sentiment, Entities, KeywordsNLP, Sentiment Analysis
TranscribeAudio → TextSpeech Recognition (STT)
PollyText → SpeechText-to-Speech (TTS)
TranslateText → Translated TextMachine Translation
TextractDocument Image → Structured TextOCR, Form Extraction
ForecastTime Series → Future PredictionDemand Forecasting
PersonalizeUser Behavior → RecommendationsRecommendation System
BedrockPrompt → Generated ContentGenerative AI (LLM)

Summary

Two key takeaways today. First, the AWS ML stack is AI Services (API calls) → SageMaker (train directly) → Infrastructure (direct compute), with tradeoffs between abstraction and control. Second, at the infrastructure layer, chips are split: Trainium for training, Inferentia for inference.

Tomorrow we'll dive deep into the heart of this stack — SageMaker itself.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

For the standard requirement "analyze positive/negative sentiment in English customer review text," which AWS service is most appropriate?

Question 2

Which correctly describes the characteristic as you move up the 3-layer AWS ML stack (toward AI Services)?

Question 3

An ML engineer minimizing inference cost for massive traffic should consider which AWS custom chip?

Question 4

What's the defining difference between SageMaker and AI Services (Rekognition, Comprehend, etc.)?

Question 5

What makes it rational to design training and inference chips separately?

PreviousML Problem Types and Evaluation Metrics BasicsWeek 1 · Day 2Next SageMaker Overview: Studio, Training/Inference, Built-in AlgorithmsWeek 1 · Day 4

On this page

  • AWS ML Stack: The 3-Layer Structure
  • Top Layer: AI Services — ML Capabilities Without Models
  • Summary
  • Practice Questions