By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
(Classification, Regression, Clustering, Anomaly Detection)
Problem framing is the first and most critical step in any ML project—it defines what you’re solving, how you’ll measure success, and which algorithm to use. In AWS, this means mapping business problems (e.g., "Why are customers churning?") to ML tasks (e.g., binary classification with Amazon SageMaker Autopilot or XGBoost). Real-world example: A fintech company uses SageMaker to frame fraud detection as a binary classification problem (fraud vs. not fraud), then deploys the model behind an API Gateway + Lambda endpoint for real-time scoring.
Classification (Binary/Multi-class): Predicts a discrete label (e.g., spam/not spam, customer churn risk: high/medium/low). AWS tools: SageMaker Autopilot, XGBoost, BlazingText (text classification). Use case: Flagging fraudulent transactions in Amazon Fraud Detector.
Regression: Predicts a continuous value (e.g., house price, sales forecast). AWS tools: SageMaker Linear Learner, Factorization Machines, DeepAR (time-series). Use case: Forecasting demand for AWS Supply Chain.
Clustering: Groups unlabeled data by similarity (e.g., customer segmentation, anomaly detection). AWS tools: SageMaker K-Means, SageMaker Object2Vec (for embeddings). Use case: Segmenting users for targeted marketing in Amazon Personalize.
Anomaly Detection: Identifies rare or unexpected patterns (e.g., fraud, equipment failure). AWS tools: SageMaker Random Cut Forest (RCF), Amazon Lookout for Metrics, Amazon DevOps Guru. Use case: Detecting server failures in AWS CloudWatch Anomaly Detection.
Amazon SageMaker Clarify: Detects bias and feature importance during problem framing (e.g., "Is our churn model biased against a demographic?"). Key feature: Generates bias reports for protected groups (e.g., gender, age).
SageMaker Processing: Runs preprocessing jobs (e.g., feature engineering, data validation) before training. Use case: Cleaning raw logs from Amazon Kinesis Data Firehose before clustering.
SageMaker Autopilot: Automates algorithm selection and hyperparameter tuning for classification/regression. Limitation: Only supports tabular data (not images/text).
Amazon Fraud Detector: Pre-built binary classification service for fraud detection (uses XGBoost under the hood). Use case: Real-time transaction scoring with Amazon EventBridge triggers.
Amazon Lookout for Equipment: Anomaly detection for industrial sensors (e.g., predicting pump failures). Key feature: No ML expertise required—just upload sensor data.
AWS Glue DataBrew: Visual data cleaning for problem framing (e.g., handling missing values before regression). Alternative: SageMaker Data Wrangler (more ML-focused).
avg_session_duration
days_since_last_purchase
When to use SageMaker: If you need custom features or multi-class fraud types.
Anomaly Detection:
Correct:
Clustering vs. Classification:
Distractor: SageMaker Autopilot (requires labels).
Scenario: "A bank needs to predict loan defaults (yes/no) with high precision."
A healthcare startup wants to predict patient readmission risk (high/medium/low) using EHR data. Which AWS service should they use for the core ML task? ✅ SageMaker Autopilot (multi-class classification for tabular data).❌ Amazon Comprehend Medical (NLP for text, not structured EHR data).❌ SageMaker K-Means (clustering, not classification).
A manufacturing plant wants to detect equipment failures in real time using sensor data. The data has no labels. Which AWS service is the best fit? ✅ Amazon Lookout for Equipment (anomaly detection for unlabeled sensor data).❌ SageMaker Random Cut Forest (works but requires manual setup).❌ Amazon Fraud Detector (for fraud, not equipment failures).
A marketing team wants to forecast quarterly sales (a continuous number) using historical data. Which metric should they optimize for? ✅ RMSE (Root Mean Squared Error) (standard for regression).❌ F1-score (for classification).❌ Silhouette Score (for clustering).
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.