⭐⭐⭐ Resource Right-Sizing

šŸ’” AWS Compute Optimizer

Compute Optimizer uses machine learning to analyze your resource utilization and recommends optimal AWS resource configurations — helping you reduce costs and improve performance by right-sizing your infrastructure.

šŸ”‘ Covers: Supported Resources Ā· How Recommendations Work Ā· Finding Wasteful Resources

šŸ’” What is AWS Compute Optimizer?

AWS Compute Optimizer
A service that uses ML to analyze the utilization history of your AWS resources (CPU, memory, network) and recommends better-suited resource types. It identifies over-provisioned resources (paying for more than you need) and under-provisioned resources (too small, affecting performance). Think of it as an automatic right-sizing advisor.

šŸ“¦ Supported Resources

šŸ–„ļø
EC2 Instances
Recommends optimal instance type and size based on CPU, memory, network usage
Ī»
Lambda Functions
Recommends optimal memory size based on execution patterns
šŸ’¾
EBS Volumes
Recommends optimal volume type (gp2→gp3) and IOPS provisioning
šŸ“
Auto Scaling Groups
Recommends optimal instance types for the group
🐳
ECS on Fargate
Recommends CPU and memory settings for containers

šŸ“Š What Compute Optimizer Tells You

Finding TypeWhat It MeansAction
Over-provisionedResource is larger than needed. CPU/memory consistently <30%Downsize to save money. Performance won't suffer.
Under-provisionedResource too small, causing throttling, timeouts, or crashesUpsize to fix performance issues
OptimizedResource is appropriately sized for its workloadNo action needed
Insufficient dataNot enough history (needs at least 30 hours for EC2)Wait for more data collection
šŸŽÆ Exam Tip
Compute Optimizer is the answer for: "right-size EC2 instances", "find optimal Lambda memory without manual testing", "identify over-provisioned resources", "reduce costs by right-sizing". It's different from Lambda Power Tuning (which tests multiple configurations via Step Functions) — Compute Optimizer passively analyzes existing usage patterns.