Previous version: MLA-C01. The current version is
MLA-C02.
Which cost tool answers which question
| Question | Cost Explorer | AWS Budgets | Trusted Advisor | Compute Optimizer |
| Primary job | Analyze and forecast spend | Alert on threshold breach | Recommend best-practice fixes | Recommend instance rightsizing |
| Time orientation | Past + forecast (13 mo / 18 mo) | Forward-looking guardrail | Current-state findings | Current-state findings |
| Cost optimization check | Trend and driver analysis | n/a (controls, not finds) | Idle / underutilized resources, RI coverage | Over- or under-provisioned EC2, ASG, Lambda, EBS |
| Acts automatically? | No (analysis only) | Yes (alerts + budget actions) | No (recommendations only) | No (recommendations only) |
| Plan requirement | Free in console | Free for cost/usage budgets | Cost checks need Business+/Enterprise | Free; opt-in |
Decision tree
Cheat sheet Cheat sheet
- Pick the instance family from the binding resource
- Inferentia is inference-only, Trainium is training-only
- Inference Recommender rightsizes a SageMaker endpoint by load-testing it
- Inference Recommender Default job runs ~45 min, Advanced ~2 hours
- Compute Optimizer rightsizes EC2, ASG, EBS, and Lambda from history
- SageMaker AI Savings Plans cut steady usage up to 64%
- Run interruption-tolerant ML work on EC2 Spot
- On-Demand is the default only until the baseline is known
- A steady customer-facing endpoint commits, it does not run on Spot
- Cost allocation tags must be applied and activated before they attribute spend
- Cost Explorer analyzes and forecasts, Budgets alerts on thresholds
- AWS Budgets alerts but does not stop resources by itself
- Trusted Advisor and Compute Optimizer recommend; they do not act
- Trusted Advisor cost checks need a Business or Enterprise plan
- Use X-Ray to find which hop adds latency
- CloudWatch Logs Insights queries logs to find the cause
- CloudTrail logs who invoked re-training; EventBridge triggers it
- Check service quotas first when an endpoint cannot scale
- Graviton offers up to 40% better price-performance
- Target-track on SageMakerVariantInvocationsPerInstance with scale-out cooldown shorter than scale-in
- CostPerInference is the metric for price-performance at throughput
- Benchmarking an existing endpoint requires one variant, no autoscaling, and a non-prod copy