Certopolis

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.

Written from Amazon Web Services's documentation

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. An account was enabled for Cost Explorer this morning for a cost review tomorrow. The team sees no historical data yet and is preparing to raise a support case, and separately plans to switch Cost Explorer off after the review to avoid any charge. The team needs the historical data for the review without paying anything for Cost Explorer. Which solution meets these requirements?

    Right. In the game that’s Renown for your Design Cost-Optimized Architectures building.

    Not that one: D is right. In the game your Design Cost-Optimized Architectures building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    After which "Cost Explorer refreshes your cost data at least once every 24 hours." On switching it off: "you can't disable Cost Explorer after you enable it." Viewing costs nothing - "you can view your costs and usage using the Cost Explorer user interface free of charge" - so the charge the team is worried about applies to the API rather than to the feature being on.

    Written from docs.aws.amazon.com/cost-management/latest/userguide/ce-what-is.html

  2. A finance team wants to be told when monthly spend is forecast to exceed a target, and separately when the share of EC2 usage covered by its Savings Plans drops below 80 percent. A solutions architect must say whether one service covers both. Which approach will meet these requirements?

    Right. In the game that’s Renown for your Design Cost-Optimized Architectures building.

    Not that one: B is right. In the game your Design Cost-Optimized Architectures building would lose a little Renown, and this question would come back later.

  3. A company runs EC2 instances, EBS volumes and Lambda functions in one account and wants right-sizing recommendations for all three. The security team forbids installing any software on the instances, and the finance team wants the recommendations to reflect utilisation rather than a fixed idle threshold. Which solution meets these requirements?

    Right. In the game that’s Renown for your Design Cost-Optimized Architectures building.

    Not that one: A is right. In the game your Design Cost-Optimized Architectures building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Supported resources include EC2 instances, EC2 Auto Scaling groups, EBS volumes, Lambda functions, ECS services on Fargate and RDS instances, which covers all three the company named. Nothing is installed on the resource, so the security constraint holds. The analysis can take up to 24 hours to complete before findings appear.

    Written from docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html