Lesson 1 of 2 AWS Cost Management

Choosing AWS Cost Management Tools

This lesson explains the AWS tools for seeing, allocating, forecasting and optimising spending, and which tool fits a given requirement.

Learning outcomes

After completing this lesson, you will be able to:

  • Choose between Cost Explorer, Budgets and the Cost and Usage Report.
  • Identify optimisation tools such as Compute Optimizer.
  • Describe a cost-saving checklist.

Visibility and control

Several tools show where money is spent and keep spending under control. Cost Explorer graphs and filters costs over time, forecasts future spend, and recommends Savings Plans, Reserved Instances and right-sizing. AWS Budgets sets budgets for cost, usage or commitment utilisation and alerts by email or SNS when they are exceeded or forecast to be; budget actions can go further, applying an IAM policy or SCP or stopping instances.

The Cost and Usage Report, delivered through Data Exports, writes the most detailed line-item billing data to S3 for analysis with Athena or QuickSight. Cost allocation tags attribute costs to teams or projects, but they appear in reports only after they are activated in the billing console. Cost Categories group costs by business rules, and Cost Anomaly Detection alerts on unusual spending. The following table summarises the tools.

ToolUse
Cost ExplorerVisualise and filter costs over time, forecast, Savings Plans and RI recommendations, right-sizing
AWS BudgetsCost, usage, RI/SP utilisation or coverage budgets with email/SNS alerts and budget actions (apply IAM or SCP policies, stop instances)
Cost and Usage Report (Data Exports)Most detailed line-item data in S3, queried with Athena or QuickSight
Cost allocation tagsMust be activated in billing before they appear in reports
Cost CategoriesGroup costs by business rules
Cost Anomaly DetectionAlerts on unusual spend

The following diagram shows how the tools connect.

How the cost tools work together. Cost allocation tags, once activated, attribute spend to teams. Cost Explorer shows and forecasts it and recommends Savings Plans and right-sizing. AWS Budgets alerts through email or SNS when spend exceeds or is forecast to exceed a budget, and budget actions can apply a policy or stop instances. The Cost and Usage Report gives line-item detail for Athena.
The tag is illustrative. A tag that has not been activated does not appear in any of these reports.
True or false

Cost visibility

Exam skills 4.2.6

Check how AWS cost visibility tools work.

Log in to try this activity Interactive activities are free with an account.

Optimisation

Several tools recommend changes that cut costs. Compute Optimizer analyses utilisation and recommends better-sized EC2 instances, Auto Scaling groups, EBS volumes, Lambda functions and ECS services. Trusted Advisor flags idle and underused resources, such as unattached EBS volumes and lightly used instances. Cost Optimization Hub brings recommendations from across accounts and services together and estimates the savings. S3 Storage Lens analyses storage use and activity across buckets, revealing data that could move to cheaper classes. The following table summarises the tools.

ToolRecommends
Compute OptimizerRight-sizing for EC2, ASGs, EBS, Lambda, ECS
Trusted AdvisorIdle resources, underused instances
Cost Optimization HubConsolidated recommendations
S3 Storage LensStorage analysis

Consolidated billing shares volume discounts across accounts.

Match the pairs

Optimisation tools

Exam skills 4.2.6 · 4.1.2

Match each requirement with the cost optimisation tool that meets it.

Log in to try this activity Interactive activities are free with an account.

Cost-saving checklist

Several routine measures reduce AWS costs. Idle resources are deleted, such as unattached EBS volumes, unused Elastic IP addresses and old snapshots, which cost money while doing nothing. Instances are right-sized from measured utilisation, Savings Plans cover steady usage, and Spot Instances run flexible work.

S3 lifecycle rules move ageing data to cheaper storage classes. Non-production environments are stopped outside business hours, with EventBridge Scheduler or the Instance Scheduler solution. For showback and chargeback, tags are enforced with tag policies and with SCPs that deny creating untagged resources, so every cost can be attributed.

Worked example

A 30% saving

A company's monthly bill is $40,000. A cost review uses the tools in order:

FindingToolAction
Development servers run all nightCost Explorer by Environment tagSchedule them off out of hours
Instances average 8% CPUCompute OptimizerRight-size to smaller instances
Idle load balancers and unattached volumesTrusted AdvisorDelete them
Old logs in S3 StandardS3 Storage LensLifecycle rules to Glacier
Steady remaining computeSavings Plans recommendationsBuy a Compute Savings Plan

AWS Budgets then alerts each team when its spending is forecast to exceed its budget, and Cost Anomaly Detection catches unexpected spikes. The order matters: commitments are bought last, for the smaller steady baseline that remains after waste is removed.

Check yourself

Which tool sends an alert when forecast spending is likely to exceed a monthly limit?

Show answer

AWS Budgets, which tracks actual and forecast cost or usage against a budget and can notify or run actions.

Exam Tips

Remember for the exam

  • To alert when monthly spending is forecast to exceed a limit, use AWS Budgets.
  • To analyse cost trends and get Savings Plans recommendations, use Cost Explorer.
  • To track costs by project or department, activate cost allocation tags.
  • For the most detailed billing data for custom analysis, use the Cost and Usage Report with Athena.
  • To stop development environments overnight, schedule them with EventBridge Scheduler or Instance Scheduler.
  • To enforce cost allocation tags on new resources, use tag policies with SCP conditions.