Lesson 3 of 4 Billing and Cost Management

Finding and Removing Waste in a Running Account

This lesson explains the other half of cost management: finding and removing waste in a running account. AWS provides tools that point out savings, and a few simple habits deliver most of the benefit.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the practices that deliver most AWS savings, such as rightsizing and turning off idle resources.
  • Identify the tools that recommend savings, such as AWS Compute Optimizer and Trusted Advisor.
  • Describe good cost management habits.

Where savings usually come from

Most AWS savings come from a handful of practices. Rightsizing moves workloads to smaller or different instance types when resources are under-used, and turning things off stops development and test servers outside working hours, when nobody uses them. Removing idle resources, such as unattached EBS volumes, idle load balancers and unused Elastic IP addresses, stops paying for things that do nothing.

Commitments, through Savings Plans or Reserved Instances, cut the price of steady usage. Storage tiering moves old data to cheaper S3 storage classes automatically. Moving to managed and serverless services, such as Lambda, Fargate or DynamoDB on-demand, means paying for use rather than for idle servers. Moving to newer, more efficient hardware, such as current-generation and Graviton instances, gives more performance for the same price. The following table summarises each practice and the tools that support it.

PracticeWhat it meansTool
RightsizingUsing smaller or different instance types when resources are under-usedAWS Compute Optimizer, Cost Explorer recommendations
Turning things offStopping development and test servers outside working hoursAWS Systems Manager, EventBridge Scheduler
Removing idle resourcesDeleting unattached EBS volumes, idle load balancers and unused Elastic IP addressesAWS Trusted Advisor cost checks
CommitmentsSavings Plans or Reserved Instances for steady usageCost Explorer Savings Plans recommendations
Storage tieringMoving old data to cheaper S3 classesS3 Lifecycle, S3 Intelligent-Tiering
Managed and serverless servicesPaying for use instead of idle serversLambda, Fargate, DynamoDB on-demand
Newer, efficient hardwareMoving to current-generation and Graviton instancesCompute Optimizer
Match the pairs

Savings practices

Exam skills 1.4.4 · 4.3.4

Match each savings practice with a tool that supports it.

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

Tools that find savings

Several AWS tools look at how resources are used and point out savings, each with a different focus. AWS Compute Optimizer uses machine learning on actual usage to recommend better-sized EC2 instances, Auto Scaling groups, EBS volumes, Lambda functions and more. Cost Optimization Hub collects savings recommendations from across all accounts into one place, with the estimated savings of each. AWS Trusted Advisor includes cost checks that flag idle and under-used resources. AWS Cost Explorer shows spending trends and recommends rightsizing and Savings Plans. The following table summarises the tools.

ToolWhat it does
AWS Compute OptimizerUses machine learning on your usage to recommend better-sized EC2 instances, Auto Scaling groups, EBS volumes, Lambda functions and more
Cost Optimization HubBrings savings recommendations from across accounts into one place, with estimated savings
AWS Trusted AdvisorFlags idle and under-used resources among its cost optimisation checks
AWS Cost ExplorerShows trends, rightsizing and Savings Plans recommendations

Good habits

Cost management is most effective when it is practised consistently. The following list describes recommended habits.

  • Tag resources so every cost has an owner.
  • Set a budget with alerts for every account or project.
  • Review recommendations regularly, for example monthly.
  • Rightsize and remove waste before buying Savings Plans, so you do not commit to capacity you will remove.
Scenario questions

Good cost habits

Exam skills 1.4.4 · 4.2.1

Apply good cost management habits.

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

A monthly cost review

A company's AWS bill has crept up to $20,000 a month. In one review meeting, the team works through the tools. The following table shows what it finds and the saving from each action.

FindingSourceActionMonthly saving
15 test servers run all night and at weekendsCost Explorer by Environment tagSchedule them to stop out of hours$2,500
8 instances average 5% CPUCompute OptimizerMove to smaller sizes$1,800
40 unattached EBS volumesTrusted AdvisorSnapshot if needed, then delete$400
Two years of logs in S3 StandardCost Explorer by serviceLifecycle rule to Glacier$600
Steady remaining usageSavings Plans recommendationBuy a 1-year Compute Savings Plan$2,200

Together these cut the bill by about $7,500 a month, roughly 37%, without changing what the applications do. The order matters: the Savings Plan is bought last, for the smaller baseline that remains.

Check yourself

What is rightsizing?

Show answer

Changing resources to the smallest size that still meets the workload's needs, based on measured use.

Exam Tips

Remember for the exam

  • For rightsizing recommendations based on usage, use AWS Compute Optimizer.
  • To find idle resources such as unattached volumes, use Trusted Advisor cost checks.
  • Stopping non-production resources outside working hours is a simple, large saving.
  • Rightsize and remove waste before buying Savings Plans.
  • For savings recommendations across many accounts in one place, use Cost Optimization Hub.