← Cloud Practitioner study path

Billing, pricing and support · 13 min

AWS Budgets, AWS Cost Explorer and consolidated billing

In this lesson you will learn when to use AWS Budgets, AWS Cost Explorer or the AWS Cost and Usage Report, how tags split spend by project and what consolidated billing in AWS Organizations gives you.

Once you use AWS, the spend already exists, and AWS has three tools to monitor it and understand it: AWS Budgets, AWS Cost Explorer and AWS Cost and Usage Report. The exam also assesses two ways to organize that spend: tags, which split it across projects, and consolidated billing, which brings the spend of several accounts together in a single bill. For example, an online store that already has its website on AWS needs to know whether it will overspend this month, where the money went and how much each part of the store costs.

AWS cost tools ordered in time: Pricing Calculator, Budgets, Cost Explorer and Cost and Usage Report

These three tools read what you have already spent: Budgets alerts you, Cost Explorer lets you see where the money went and the Cost and Usage Report gives you every charge line. AWS Pricing Calculator, on the other hand, estimates the cost before you build, when there is no spend yet. For example, the store uses the calculator before moving to AWS and these three tools afterward, once bills start arriving.

AWS Budgets

AWS Budgets is there so your spend doesn't take you by surprise. In Budgets you define an amount, which is called a budget, and AWS alerts you when you get close to that amount or go over it. You can create cost budgets (how much money you spend), usage budgets (how much you use a service, for example how many hours), and Reserved Instances and Savings Plans utilization or coverage budgets, which measure whether you are making use of the discounts you bought. For example, the store creates a monthly cost budget to find out in time if the month is getting out of hand.

A budget alert can be triggered by actual spend or by forecasted spend, which is what AWS calculates you will spend by the end of the month if you keep the same pace. The alert arrives by email, through an Amazon SNS topic (the AWS notification service, which sends the notice to whoever is subscribed) or both. For example, if halfway through the month the store's pace points to going over the budget, the forecasted spend alert warns it before that happens.

Besides alerting you, a budget can run actions when the spend gets close to the amount. Those actions can apply an or an , or act on Amazon EC2 or Amazon RDS (the AWS database service) , and they run automatically or after you approve them. For example, the store can make it so that, when it reaches 90% of its budget, a policy prevents anyone from creating new instances until someone reviews it.

Budgets information is updated up to three times a day, so an alert can arrive a while after the charge. As for the price, monitoring budgets and receiving alerts doesn't cost anything, and the first two budgets with actions are free each month, while the following ones are charged. For example, the store can have several budgets that only send alerts without paying anything, and two budgets with actions that are also free.

True or false?

0 of 4
  1. A budget alert arrives at the same moment as the charge.

  2. A budget can automatically apply an IAM policy when you get close to the amount.

  3. Receiving budget alerts costs money.

  4. An alert can be triggered by forecasted spend, before you spend it.

AWS Cost Explorer

AWS Cost Explorer is for understanding where your spend comes from. It shows the spend in charts, which cover up to 13 months back, the current month and a forecast for the next 18 months. In those charts you can filter and group the spend by service, account, Region or tag, and Cost Explorer also recommends which Reserved Instances to buy. Using it in the is free, while its charges for each request. For example, the store groups its spend by service and discovers that half of it goes to EC2 instances.

Cost Explorer and Budgets show the spend and forecast it, but only Budgets monitors an amount and does something when you get close to it. Cost Explorer is for exploring the spend and understanding where it comes from. For example, the store uses Budgets to alert it if it goes over this month and Cost Explorer to see why it spent more last month than the month before.

AWS Cost and Usage Report

When the Cost Explorer charts aren't enough, the AWS Cost and Usage Report (CUR) delivers the most complete set of cost and usage data to an Amazon S3 of yours, by hour, by day or by month. That data is queried with tools such as Amazon Athena, which asks questions about files stored in S3, or loaded into Amazon Redshift, a service for analyzing large amounts of data. That makes the CUR the tool for someone who needs to analyze every charge line. For example, the finance department of a large company uses the CUR to review every hour of every instance it paid for during the year.

Cost allocation tags

A tag is a key and value pair that you put on a , such as proyecto=tienda: the key says what kind of data it is and the value says which one. When you activate a tag as a cost allocation tag, you can group the spend by project, department or customer in Cost Explorer and in the reports, even if those resources are in the same account. For example, if the store tags each resource with the department that uses it, Cost Explorer tells it how much the sales department spends and how much the marketing department spends.

Cost allocation tags come in two types:

  • The tags you define, which appear in the reports with the user: prefix.
  • The tags AWS generates, which carry the aws: prefix, such as aws:createdBy, which says who created the resource.

Each type is activated separately in the Billing console, and a tag you don't activate doesn't appear in the reports. For example, if the store puts the tag proyecto=tienda on its resources but never activates it, it can't group the spend with it in Cost Explorer.

True or false?

0 of 3
  1. If you put the tag proyecto=tienda on a resource, it already appears in the cost reports.

  2. The tags you define appear in the reports with the user: prefix.

  3. Tags let you group the spend by project, department or customer.

Consolidated billing in AWS Organizations

AWS Organizations is the service that groups several AWS accounts into an organization, to manage them together. One of those accounts, the management account, receives the bill and pays the spend of all of them, and that is called consolidated billing. For example, a company with one account for its store, another for testing and another for its data receives a single bill instead of three.

Consolidated billing: three member accounts and the management account that receives a single bill

Because the management account pays the cost of all of them, the usage of the accounts is added together. For example, the discount of a Reserved Instance that a production account bought reaches a development account that uses matching instances, and what a data account stores in S3 counts toward the volume discount for all the accounts.

Consolidated billing doesn't cost extra, and the AWS documentation gives it three benefits:

  • One bill, which the management account pays.
  • Tracking of each account's cost, which stays separate within that bill.
  • Combined usage, which shares volume discounts, Reserved Instances discounts and Savings Plans discounts across the accounts.

In the case of Reserved Instances, the discount benefits the account that bought it first, and the management account can turn off that sharing across accounts. For example, if the store's account bought a Reserved Instance and isn't using it during a given hour, that discount can pass to the testing account, unless the management account has turned off the sharing.

What do you use?

0 of 6

Tap the correct column for each case.

  1. Getting alerted if the month's forecasted spend goes over the amount you defined

  2. Seeing charts of the spend for the last 13 months

  3. Recommendations on which Reserved Instances to buy

  4. Every hourly charge line in an S3 bucket, to query it with Athena

  5. Three AWS accounts that pay with a single bill

  6. Having one account's S3 usage count toward the volume discount for all of them

If your account uses the new experience

The new experience is the way to open an AWS account with Google, GitHub, Apple, Amazon or email. In it you have AWS Budgets and AWS Cost Explorer in the Billing and Cost Management console, but you don't have Cost and Usage Report, Cost Anomaly Detection, Cost Categories or Budget Reports. Your projects already form an organization that AWS manages, and you see the cost of each project in AWS Settings. For example, if you create a project to practice with the store, in AWS Settings you see how much that project has spent so far.

AWS Settings also has the spending limit, which the full account doesn't have and which is not in the exam guide. This limit only exists on the paid plan and is a monthly cap per project, before taxes and without counting , with a minimum of 20 USD (or an estimate of your spend, if that is higher). If you reach the cap, AWS pauses the project and stops its resources, and if you don't do anything within 90 days, it deletes its data. A Budgets budget, on the other hand, only alerts you or runs the actions you configured. For example, if the store's practice project has a limit of 20 USD and reaches it, AWS pauses it, while a 20 USD budget only sends you an email.

On the exam

Questions on this topic describe a cost control need and ask you for the tool that covers it. To choose, look in the question for these clues, each of which points to an answer:

  • "Alert", "notify when it goes over" or "the forecasted spend exceeds", which point to AWS Budgets.
  • "Analyze the spend of previous months", "see trends" or "Reserved Instance recommendations", which point to AWS Cost Explorer.
  • "The most complete detail" or "query with Athena", which point to AWS Cost and Usage Report.
  • "Cost per project or department", which points to cost allocation tags.
  • "Several accounts, one bill" or "volume discounts across accounts", which point to consolidated billing in AWS Organizations.

For example, if a question says that a school wants to receive an email when the month's forecasted spend exceeds its budget, the answer is AWS Budgets.

Review question

A company has five AWS accounts in AWS Organizations. Several departments share the same account, and Finance wants to see in Cost Explorer how much each department spends. What does it have to do?

Next