AWS Certified Solutions Architect – Associate
Cost Explorer vs AWS Budgets vs Compute Optimizer: which tool
Cost Explorer shows past costs and forecasts them. AWS Budgets alerts you, and can act, when cost, usage, or Savings Plans and Reserved Instance coverage cross a threshold. Compute Optimizer recommends right-sized resources from their measured utilization. Cost allocation tags let all of these split costs by team or project once you activate the tags.
Cost Explorer
Cost Explorer shows up to the last 13 months of costs and usage and forecasts the next 18 months. It also gives Reserved Instance and Savings Plans recommendations. The console is free. Each paginated Cost Explorer API request has a charge.
After you enable it, the current month's data appears in about 24 hours and older data a few days later. Data refreshes at least once every 24 hours. Once enabled, Cost Explorer can't be disabled.
AWS Budgets
Budget types are cost, usage, RI utilization, RI coverage, Savings Plans utilization and Savings Plans coverage. Alerts can fire on actual or forecasted amounts and go to email, an Amazon SNS topic, or both. Budget data updates up to three times a day.
A budget action can run automatically or after approval. It can apply an IAM policy or a service control policy, or target specific EC2 or RDS instances. Alerts lag behind usage, so spend can pass the threshold before the alert arrives.
Compute Optimizer and Trusted Advisor
Compute Optimizer must be opted in. It reads CloudWatch metrics for the last 14 days, or 93 days with the paid enhanced infrastructure metrics feature. It recommends sizes for EC2 instances, Auto Scaling groups, EBS volumes, Lambda functions, ECS services on Fargate, RDS and Aurora, and more. Opting in from an organization's management account covers its member accounts.
Trusted Advisor runs fixed checks. Cost optimization examples include low utilization EC2 instances, idle load balancers, unassociated Elastic IP addresses, underutilized EBS volumes and idle NAT gateways.
Cost allocation tags
There are AWS-generated tags (prefix aws:) and user-defined tags. Both must be activated in the Billing and Cost Management console before they appear in Cost Explorer or the cost allocation report. Tags can take up to 24 hours to appear.
Only the management account of an organization, or a standalone account, can manage cost allocation tags.
Where the exam catches people
- Believing Cost Explorer can be turned off after a review: once enabled it can't be disabled. The console is free, and only API requests are charged.
- Believing Budgets only tracks spend after it happens: it alerts on forecasted amounts too, and it has coverage and utilization budgets for Savings Plans and Reserved Instances.
- Believing a budget stops spending by itself: alerts only notify, unless you configure a budget action such as an IAM policy or SCP.
- Believing tagging a resource is enough for cost reports: the tag must also be activated as a cost allocation tag.
- Believing right-sizing needs an agent on every instance: Compute Optimizer uses CloudWatch metrics after you opt in.