Easy ReviewCLF-C02
Billing, Pricing, and Support40

Billing and cost management

Estimate, track, alert on and allocate AWS costs, and understand what data transfer costs.

AWS Billing and Cost Management tools cover the whole cost cycle: estimate before building, watch spending against budgets, analyze where money goes, and break costs down by team or project.

AWS Budgets

AWS Budgets tracks costs against a spending target and can alert on actual or forecasted spending.

How it works

  1. Create a cost budget with a spending target and period, such as a monthly budget.
  2. Add a threshold for actual or forecasted spending.
  3. Send the alert by email or to an Amazon SNS topic.

Exam cues

  • If the question says alert before spending passes a limit, think AWS Budgets with a forecast alert, because it can alert before the cost accrues.
  • If the question says alert on spending already incurred, think an actual spend alert, because it tracks costs after they accrue.

Remember

  • Alerts on actual and forecasted spend.

Trap: A forecast alert concerns expected spending, while an actual spend alert tracks costs after they accrue.

From the AWS docs (7)
  • AWS Budgets tracks and takes action on AWS costs and usage, and can monitor utilization and coverage of Reserved Instances and Savings Plans.
  • A cost budget can alert on actual spend (after it accrues) and on forecasted spend (before it accrues).
  • A usage budget with forecasted notifications helps stay within a service's limits.
  • Budgets can use a custom period aligned with a fiscal year, project duration or grant period.
  • AWS Budgets sends its alerts by email or to Amazon SNS topics.
  • AWS Cost Anomaly Detection uses machine learning to detect and alert on unusual spend patterns, accounting for seasonality and natural growth to reduce false positives.
  • Cost Anomaly Detection sends alerts individually or in aggregated reports by email or to an Amazon SNS topic, which Amazon Q Developer in chat applications can forward to a Slack channel.

AWS Cost Explorer

AWS Cost Explorer is the analysis tool for past and forecast costs. It charts spending by service, account, tag or other dimensions and helps find what drives cost.

How it works

  1. Open Cost Explorer in the Billing and Cost Management console; the interface is free.
  2. Filter and group costs by service, account, Region, tag and more.
  3. Look back up to 13 months, or forecast 18 months ahead.
  4. Read Reserved Instance reports and purchase recommendations.
Tool Question it answers
AWS Cost Explorer Where did the money go, and where is it heading?
AWS Budgets Are we about to pass our limit?
AWS Cost and Usage Reports What is every line item, in full detail?

Exam cues

  • If the question says visualize, analyze or understand cost trends, think AWS Cost Explorer.
  • If the question says Reserved Instance purchase recommendations, think Cost Explorer.
  • If the question says underutilized EC2 instances across accounts, think Cost Explorer rightsizing recommendations, because they show them in one view.

Remember

  • 13 months of history, 18 months of forecast.
  • Console free; API 0.01 USD per paginated request.
  • Granularity: monthly or daily; hourly and resource-level data are optional.
  • Optional history: 38 months of monthly multi-year data; 14 days of daily resource-level data.

Trap: Cost Explorer can’t be turned off after it’s enabled; that’s not a reason to avoid it, since the console is free.

From the AWS docs (11)
  • AWS Cost Explorer views and analyzes costs and usage with a main graph, cost and usage reports and Reserved Instance reports.
  • Cost Explorer shows data for up to the last 13 months and forecasts spending for the next 18 months.
  • Cost Explorer recommends which Reserved Instances to purchase.
  • The Cost Explorer user interface is free; each paginated Cost Explorer API request costs 0.01 USD, and Cost Explorer can't be disabled once enabled.
  • Cost Explorer can answer cost questions asked in plain words through AWS assistant, explaining trends, top drivers and anomalies.
  • Cost Explorer rightsizing recommendations show underutilized EC2 instances across member accounts in one view and suggest downsizing or terminating them.
  • AWS gives Savings Plans recommendations based on past usage, viewable from the management account or a member account and through the Cost Explorer API.
  • The Cost Explorer API lets you query cost and usage data programmatically, from monthly totals down to granular usage, for custom reports and automation.
  • Hourly granularity in Cost Explorer is optional and billed daily per hourly usage record kept for the past 14 days.
  • Cost Explorer shows costs at monthly or daily granularity; hourly and resource-level data are optional features.
  • Cost Explorer can add up to 38 months of multi-year data at monthly granularity for an organization, and daily resource-level data for chosen services covering the past 14 days.

Cost and Usage Reports

AWS Cost and Usage Reports (CUR) are the most detailed billing data AWS provides: line items by hour, resource and tag, delivered to Amazon S3 for your own analysis.

How it works

  1. Create a report and choose an S3 bucket.
  2. AWS writes line items for every product, usage type and operation, by hour, day or month.
  3. Activated cost allocation tags appear as columns, so costs can be split by team or project.
  4. Analyze the files with spreadsheets, Amazon Athena or other tools. Today AWS recommends CUR 2.0 through AWS Data Exports.

Exam cues

  • If the question says most granular or detailed billing data, think AWS Cost and Usage Reports.
  • If the question says deliver billing data to S3 for analysis, think CUR (Data Exports).

Remember

  • Delivered to your S3 bucket, updated at least daily.
  • CUR 2.0 in Data Exports is the recommended version.

Trap: CUR is raw data, not a dashboard. For charts and quick analysis, use AWS Cost Explorer.

From the AWS docs (6)
  • AWS Cost and Usage Reports (AWS CUR) contain the most comprehensive set of AWS cost and usage data available and are published to an Amazon S3 bucket you own.
  • CUR breaks costs down by the hour, day or month, by product or resource, and by tags you define, with a line item for each combination of product, usage type and operation.
  • AWS updates the Cost and Usage Report in your bucket at least once a day until charges are finalized.
  • AWS Data Exports creates billing and cost management exports with basic SQL; Cost and Usage Report 2.0 (CUR 2.0) in Data Exports is the new and recommended way to receive detailed cost and usage data.
  • CUR files can be read with spreadsheet software or from applications through the Amazon S3 API.
  • Data Exports delivers CUR 2.0 data to an S3 bucket as gzip-compressed CSV or Parquet files, with a manifest describing the export.

AWS Pricing Calculator

AWS Pricing Calculator estimates what AWS services will cost before you use them. It’s free and needs no AWS experience.

How it works

  1. Add the services you plan to use and their configuration, such as instance type, storage and traffic.
  2. Choose payment options, such as On-Demand or Savings Plans.
  3. Read the estimate: upfront, monthly and annual costs, with the math shown.
  4. Save or share the estimate to compare options.

Exam cues

  • If the question says estimate cost before migrating or building, think AWS Pricing Calculator.
  • If the question says compare pricing of configurations, think AWS Pricing Calculator.

Remember

  • Free, web-based, for planning.
  • Shows upfront, monthly and annual costs.

Trap: Pricing Calculator estimates; Cost Explorer and Budgets work with real spending.

From the AWS docs (4)
  • AWS Pricing Calculator is a free web-based planning tool for creating cost estimates for AWS services before using them.
  • Use cases include modeling solutions before building them, exploring service price points, reviewing the calculations behind estimates, planning AWS spend and finding cost saving opportunities.
  • An estimate includes upfront, monthly and annual costs for the chosen configuration and payment options.
  • No experience with cloud computing or AWS is needed to use AWS Pricing Calculator.

Cost allocation tags

Cost allocation tags split the AWS bill by business dimension, such as team, project or environment. A tag is a key and value on a resource; activating it makes billing tools use it.

How it works

  1. Tag resources, for example CostCenter = 1234.
  2. Activate the tag key as a cost allocation tag in the Billing and Cost Management console. AWS-generated tags need activating too.
  3. Costs then group by the tag in Cost Explorer, the cost allocation report and the Cost and Usage Report.
Type Created by Example
AWS-generated AWS or an AWS Marketplace ISV Who created the resource
User-defined You Department, Project, Environment

Exam cues

  • If the question says track costs by department or project, think cost allocation tags.
  • If the question says a tag is missing from billing reports, think the tag isn’t activated.

Remember

  • Two types: AWS-generated and user-defined.
  • Both need activation before they appear in billing tools.

Trap: Tagging alone doesn’t change the bill’s breakdown. The tag must be activated as a cost allocation tag.

From the AWS docs (8)
  • A tag is a label with a key and a value that you or AWS assigns to a resource; each tag key on a resource is unique and has one value.
  • There are two types of cost allocation tags: AWS-generated tags, created by AWS or an AWS Marketplace ISV, and user-defined tags, created by you.
  • Both types of cost allocation tags must be activated separately before they appear in Cost Explorer or on a cost allocation report.
  • After activation, AWS uses cost allocation tags to organize resource costs on the cost allocation report so costs can be categorized and tracked.
  • Cost and Usage Reports can break down costs by tags that you define.
  • AWS-generated cost allocation tags carry the reserved aws: prefix, such as aws:createdBy, while user-defined tags appear with the user: prefix in the cost allocation report.
  • After user-defined tags are applied, their keys can take up to 24 hours to appear for activation as cost allocation tags, and up to another 24 hours to activate.
  • The management account can request a backfill that applies the current activation status of cost allocation tags to up to twelve past months.

Data transfer costs

Data transfer pricing depends on direction and distance. Data coming in from the internet is free. Data leaving AWS for the internet, crossing Regions, or crossing Availability Zones is generally charged.

How it works

Path Charged?
Internet into AWS Free
AWS out to the internet Charged; first 100 GB per month free across all services
Between Regions Charged on the way out of the source Region; free coming in
Between AZs in one Region Charged in each direction (0.01 USD/GB for EC2, RDS and similar); some services are free in-Region
  1. Keep chatty components in the same AZ when the design allows, or accept the cross-AZ charge as the price of high availability.
  2. Serve users through edge caches such as Amazon CloudFront to cut repeated transfer from the origin.
  3. Check each service’s pricing page, because rules vary by service.

Exam cues

  • If the question says uploading data to AWS costs, think free inbound.
  • If the question says copying data to another Region, think charged out of the source Region.
  • If the question says traffic between AZs, think a small charge in each direction.
  • If the question says S3 to EC2 in the same Region, think no data transfer charge, because in-Region transfer out of S3 to AWS services is free.

Remember

  • Inbound from the internet: free.
  • 100 GB out to the internet free per month, across all services and Regions (except China and GovCloud).
  • Cross-AZ for EC2: 0.01 USD/GB each way.
  • S3 to an AWS service in the same Region: free.

Trap: Multi-AZ designs are not free of transfer costs. Replication and traffic between AZs are charged for many services.

From the AWS docs (11)
  • There is no charge for data transfer from the internet to AWS.
  • Data transfer from AWS out to the internet is charged, under the DataTransfer-Out-Bytes usage type.
  • AWS customers get 100 GB of data transfer out to the internet free each month, aggregated across all AWS services and Regions except China and GovCloud.
  • For data transfer between Regions there is no charge for data coming into the destination Region; the charge is for data going out of the source Region.
  • Data transfer between Availability Zones in the same Region is charged for both inbound and outbound traffic of each resource, although some services have in-Region traffic at no cost.
  • Data transferred in to and out from Amazon EC2, Amazon RDS, Amazon Redshift, DAX, ElastiCache and network interfaces across Availability Zones in the same Region is charged at 0.01 USD/GB in each direction.
  • Data transferred from an Amazon S3 bucket to any AWS service in the same Region, such as Amazon EC2, is free.
  • Data transferred directly between Amazon S3 and EC2 instances in the same Region is free in both directions.
  • Within a Region, data sent to or from a public or Elastic IPv4 address is charged in each direction, while EC2 traffic over private IPs to an ALB or Classic Load Balancer in the same VPC is free.
  • AWS charges for every public IPv4 address, including those on running instances and Elastic IP addresses.
  • Data transferred between EC2, RDS, Redshift and ElastiCache instances and network interfaces in the same Availability Zone over private IPs is free.

AWS credits

AWS credits lower an AWS bill, for example credits from a promotion or a program. They apply automatically to eligible charges until they run out or expire.

How it works

  1. AWS picks which credit to use: soonest to expire, then fewest eligible services, then oldest.
  2. In an organization with credit sharing, the credit covers its own account first.
  3. What is left goes to the account with the highest spend, and inside it to the group with the highest charges.

Exam cues

  • If the question says which credit applies first, think the soonest to expire, because AWS uses credits before they lapse.
  • If the question says credits in an organization, think credit sharing, because it lets one account’s credits cover others.

Remember

  • Order: soonest to expire, fewest eligible services, oldest.
  • Shared credits cover the owning account first, then the highest spender.
  • Within an account: largest eligible service charge first.

Trap: With credit sharing, a credit doesn’t go straight to the organization’s biggest spender. It covers the account that owns it first; only the remainder moves to the account with the highest spend.

From the AWS docs (7)
  • AWS credits apply to eligible charges on the bill until they are used up or they expire.
  • When an account has several credits, the one that expires soonest applies first, then the one with the fewest eligible services, then the oldest.
  • With credit sharing turned on in AWS Organizations, credits cover the owning account's charges first, then go to the account with the highest spend, and within an account to the group with the highest charges.
  • Within an account, a credit applies to the largest eligible service charge first, then down the remaining charges.
  • A new AWS account chooses a free or paid account plan and receives USD 100 in Free Tier credits, plus up to USD 100 more for completing activities.
  • The free account plan incurs no charges and ends after six months or when the credits run out, whichever comes first, and it cannot use some services that would rapidly consume the credits; the paid plan continues with pay-as-you-go pricing once credits are used.
  • Always Free offers, such as monthly AWS Lambda requests, apply on both account plans; short-term trials are available only on the paid plan.

Flashcards

tap to flip
Answer

·

All 40 cards as a list

A company wants an email before its monthly AWS spend goes over 1,000 USD. Which AWS service does this?

AWS Budgets, with an alert on forecasted spend, which fires before the cost accrues.

Does AWS Budgets only report costs after they happen?

No. It can alert on forecasted spend before it accrues, as well as on actual spend.

How can AWS Budgets tell a team that spending crossed a budget threshold?

It sends an alert by email or to an Amazon SNS topic.

A finance team wants an alert when daily spend jumps unexpectedly, without setting fixed thresholds for every service. Which AWS feature fits?

AWS Cost Anomaly Detection, which learns spend patterns with ML and alerts by email or SNS.

Fixed spending limits with alerts versus unexpected spending patterns. Which AWS feature fits each?

  • Fixed limits: AWS Budgets.
  • Unexpected patterns: AWS Cost Anomaly Detection.

Which AWS tool helps a company view and analyze its costs and usage?

AWS Cost Explorer provides graphs and reports for costs and usage.

How can AWS Cost Explorer help a team plan its cloud budget?

It shows past costs and forecasts future spending.

How can AWS Cost Explorer help a company choose Reserved Instances?

It recommends Reserved Instances to purchase.

Does a company pay to use the AWS Cost Explorer user interface?

No. The user interface is free; API requests have a charge.

How can a team ask AWS Cost Explorer about the drivers of a spending trend?

Use AWS assistant to ask cost questions in plain language.

How can AWS Cost Explorer help identify underused Amazon EC2 capacity?

Its rightsizing recommendations show underutilized instances and suggest downsizing or terminating them.

What information supports AWS Savings Plans recommendations in Cost Explorer?

Past usage informs the recommendations.

What kind of information can a company analyze with AWS Cost Explorer?

Costs and usage, including Reserved Instance reports.

A finance team needs to compare AWS costs year over year for the past three years in Cost Explorer. What should it enable?

Multi-year data, which keeps up to 38 months at monthly granularity.

A finance team needs the most detailed AWS billing data, line by line and hour by hour, delivered to Amazon S3. Which AWS feature provides it?

AWS Cost and Usage Reports, now delivered as CUR 2.0 through AWS Data Exports.

Where does AWS deliver the Cost and Usage Report?

To an Amazon S3 bucket the customer owns, updated at least daily.

How can a Cost and Usage Report show costs per project?

Activate cost allocation tags; CUR then breaks costs down by those tags.

A company that has never used AWS wants to estimate the monthly cost of a planned architecture. Which AWS tool fits?

AWS Pricing Calculator, a free tool for estimating costs before building.

What does an AWS Pricing Calculator estimate include?

Upfront, monthly and annual costs for the chosen services, configurations and payment options, with the calculations shown.

Can AWS Pricing Calculator show what a company actually spent last month?

No. It estimates future costs; actual spending is in AWS Cost Explorer and the bill.

A company wants to see AWS costs per department. What should it do?

Tag resources with a key such as Department, activate it as a cost allocation tag, then group costs by it in Cost Explorer or the Cost and Usage Report.

What are the two types of AWS cost allocation tags?

AWS-generated tags, created by AWS or a Marketplace ISV, and user-defined tags, created by you.

A team tagged all its resources with Project but the tag doesn't appear in Cost Explorer. Why?

The tag wasn't activated as a cost allocation tag. Both types must be activated before they show in billing tools.

After a company activates its cost allocation tags, how does AWS use them?

It organizes resource costs by those tags on the cost allocation report, so the company can categorize and track its costs.

How do cost allocation tags help a company understand its AWS spending?

They organize resource costs in a cost allocation report so the company can categorize and track them.

Does AWS charge for data uploaded from the internet into AWS?

No. Inbound data transfer from the internet is free; outbound to the internet is charged.

An application copies data from us-east-2 to ap-south-1. Which side of the transfer does AWS charge?

The data going out of the source Region (us-east-2). Data coming into the destination Region is free.

Two EC2 instances in different Availability Zones of the same Region exchange data. Is that transfer free?

No. Cross-AZ transfer is charged in each direction, 0.01 USD/GB for EC2.

How do AWS data transfer charges differ for traffic coming from and going to the internet?

Data transfer into AWS from the internet is free. Transfer from AWS to the internet can incur charges.

An application on Amazon EC2 reads objects from an Amazon S3 bucket in the same Region. Is the data transfer from S3 to EC2 charged?

No. Data transfer from S3 to any AWS service in the same Region is free.

An EC2 instance writes backups to an Amazon S3 bucket in the same Region. Is that data transfer charged?

No. Direct transfer between S3 and EC2 in the same Region is free in both directions.

How are transfers between Availability Zones in the same AWS Region generally charged?

They are charged in both directions, although some services have no charge for in-Region traffic.

How is data transfer between AWS Regions charged?

AWS charges for data leaving the source Region; data entering the destination Region is free.

Two chatty EC2 instances move terabytes between them. How can the transfer be free?

Keep them in the same Availability Zone and use private IP addresses.

An AWS account has two credits that both cover Amazon EC2. One expires next month, the other next year. Which credit does AWS apply first?

The one that expires next month. AWS applies the soonest-to-expire credit first, then the one with the fewest eligible services, then the oldest.

In an AWS organization with credit sharing turned on, where do a member account's credits apply first?

To the charges of the account that owns the credit. Remaining credit goes to the account with the highest spend.

An AWS account has a credit valid for both Amazon EC2 and Amazon S3, and EC2 is its biggest charge. Which charge does the credit reduce first?

The EC2 charge. A credit applies to the largest eligible service charge first, then down the rest.

A student creates a new AWS account on the free account plan. When does that plan end, and can it be charged?

After six months or when its Free Tier credits run out, whichever comes first. It incurs no charges; continuing past that needs an upgrade to the paid plan.

How much AWS Free Tier credit does a new account get?

USD 100 at sign-up, plus up to USD 100 more for completing activities, on either the free or the paid account plan.

Which AWS Free Tier offers does a free account plan keep, compared with a paid plan?

Always Free offers apply to both plans. Short-term trials are only on the paid plan.

You finished every topic of CLF-C02!

Your badge turned gold. Next step: book the exam on AWS. Once you pass, add yourself to Who passed.

Share

Share that you finished this certification

I finished every topic of AWS Certified Cloud Practitioner (CLF-C02) on Easy Review. Come study too!