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
- Create a cost budget with a spending target and period, such as a monthly budget.
- Add a threshold for actual or forecasted spending.
- 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.
Da documentação da AWS (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
- Open Cost Explorer in the Billing and Cost Management console; the interface is free.
- Filter and group costs by service, account, Region, tag and more.
- Look back up to 13 months, or forecast 18 months ahead.
- 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.
Da documentação da AWS (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
- Create a report and choose an S3 bucket.
- AWS writes line items for every product, usage type and operation, by hour, day or month.
- Activated cost allocation tags appear as columns, so costs can be split by team or project.
- 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.
Da documentação da AWS (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.
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
- Tag resources, for example
CostCenter = 1234. - Activate the tag key as a cost allocation tag in the Billing and Cost Management console. AWS-generated tags need activating too.
- 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.
Da documentação da AWS (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 |
- Keep chatty components in the same AZ when the design allows, or accept the cross-AZ charge as the price of high availability.
- Serve users through edge caches such as Amazon CloudFront to cut repeated transfer from the origin.
- 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.
Da documentação da AWS (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.
Budget actions and coverage
AWS Budgets can monitor Reserved Instance and Savings Plans coverage and utilization, send notifications, and trigger actions at a budget threshold. These options help a team track its commitments and respond to costs.
How it works
- Choose a budget for Reserved Instance or Savings Plans coverage or utilization, and set a threshold.
- Set notifications by email or Amazon SNS. A utilization notification can alert when utilization falls below a target.
- For a budget action, configure a custom IAM policy that denies provisioning more resources when the threshold is reached.
- For a quick setup, use the zero spend template to get notified when spending exceeds AWS Free Tier limits.
Exam cues
- If the question says stop new resource provisioning at a budget threshold, think an AWS Budgets action, because it can apply a custom IAM policy.
- If the question says notify when Reserved Instance or Savings Plans utilization falls below a target, think a utilization budget, because it can send notifications by email or Amazon SNS.
- If the question says alert when Savings Plans coverage falls below a target, think a coverage budget, because it tracks coverage against a threshold.
- If the question says get notified about spending beyond AWS Free Tier limits with a quick setup, think the zero spend budget template, because it creates a budget in one step.
Remember
- A utilization notification can use a target such as 80 percent for a day.
- The zero spend template notifies after spending exceeds AWS Free Tier limits.
Trap: Coverage and utilization are different measures. A coverage budget alerts when coverage falls below its threshold; a utilization budget alerts when utilization falls below its target.
Da documentação da AWS (5)
- A budget can trigger an action at a threshold, for example applying a custom IAM policy that denies provisioning more resources in an account.
- AWS Budgets tracks and takes action on AWS costs and usage, and can monitor utilization and coverage of Reserved Instances and Savings Plans.
- Budget notifications can go to email and Amazon SNS topics, for example when RI or Savings Plans utilization drops below 80 percent for a day.
- AWS Budgets can track Reserved Instance and Savings Plans coverage as well as utilization, and alert when coverage drops below a threshold.
- AWS Budgets templates create a budget in one step: a zero spend budget notifies once spending exceeds the AWS Free Tier limits, and a monthly cost budget notifies on actual or forecasted spend above the amount.
Cost Anomaly Detection and Cost Optimization Hub
Budgets alert on limits you set; Cost Anomaly Detection alerts on spending that doesn’t look normal; Cost Optimization Hub tells you where to save.
How it works
- Create a cost monitor (for example per service or account) and an alert subscription.
- ML models learn normal spend, including seasonality, and check net unblended cost about three times a day.
- Alerts go by email or SNS, with root causes ranked by impact.
- Separately, enable Cost Optimization Hub to see deduplicated savings recommendations for all accounts and Regions.
| Need | Feature |
|---|---|
| Alert when spend crosses a limit you set | AWS Budgets |
| Alert on unusual spend without thresholds | AWS Cost Anomaly Detection |
| Prioritized savings recommendations | Cost Optimization Hub |
| Instance and Lambda rightsizing detail | AWS Compute Optimizer |
Exam cues
- If the question says detect unexpected or anomalous spend, think Cost Anomaly Detection.
- If the question says one view of savings opportunities across the organization, think Cost Optimization Hub.
Remember
- Anomaly Detection: ML, email or SNS, about three runs a day, root causes by impact.
- Optimization Hub: rightsizing, idle, Savings Plans, RIs; uses your own pricing.
Trap: AWS Budgets needs a threshold you choose. For “alert on anything unusual”, Cost Anomaly Detection is the fit.
Da documentação da AWS (3)
- Cost Anomaly Detection ranks an anomaly's root causes by dollar impact across AWS service, account, Region and usage type, and runs about three times a day.
- Cost Optimization Hub consolidates and prioritizes cost optimization recommendations across accounts and Regions, covering rightsizing, idle resource deletion, Savings Plans and Reserved Instances.
- Cost Optimization Hub estimates savings using your own pricing and discounts and deduplicates overlapping recommendations.
Flashcards
Nada para revisar aqui agora. Escolha outros tópicos ou outro filtro.
·
Todos os 37 flashcards em lista
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 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.
A team wants AWS to stop people from launching new resources in an account once it reaches its budget. What can do this?
An AWS Budgets action that applies a custom IAM policy denying new provisioning at the threshold.
Which AWS service alerts when Reserved Instance or Savings Plans utilization falls below a target?
AWS Budgets, with a utilization or coverage budget notifying by email or Amazon SNS.
A team must be told when too much EC2, Fargate and Lambda usage runs outside its Compute Savings Plans. What fits?
An AWS Budgets Savings Plans coverage budget with a coverage threshold and notifications. A utilization budget tracks the opposite problem, unused commitment.
A new learner wants an email as soon as the account spends anything beyond the Free Tier. What is the quickest setup?
The zero spend budget template in AWS Budgets.
Which AWS feature gives one prioritized list of cost-saving actions (rightsizing, idle resources, Savings Plans, RIs) across all accounts and Regions?
Cost Optimization Hub.
After an anomaly alert, how does AWS Cost Anomaly Detection help find the cause?
It ranks root causes by dollar impact by service, account, Region and usage type.