Cost Management Tools
Overview
Knowing prices is only half the story; you also need to estimate what a design will cost, track what you are spending and get alerted before surprises. AWS gives you a set of tools covering the full cost lifecycle: before, during and after you deploy.
A household budget is a good comparison. The Pricing Calculator is the quote you get before buying a car, Cost Explorer is your bank statement chart showing where money went, Budgets is the alert that texts you when you hit 80% of your monthly limit, and tags are the labels that categorise each expense.
The exam repeatedly asks "which tool would you use to...", so learn the one-line purpose of each.
Key Concepts
- AWS Pricing Calculator estimates the cost of a planned architecture before you build it.
- AWS Cost Explorer visualises and analyses past spending and usage, with filters, grouping and forecasts up to 12 months.
- AWS Budgets sets cost, usage, Savings Plans or RI coverage/utilisation budgets and sends alerts (SNS or email) when thresholds are crossed or forecast to be crossed.
- AWS Cost and Usage Report (CUR) is the most detailed dataset of costs, delivered to S3 for analysis with Athena or QuickSight.
- Cost allocation tags (user-defined and AWS-generated) attribute costs to teams, projects or environments once activated in the Billing console.
- AWS Cost Anomaly Detection uses ML to detect unusual spending and alert you.
- AWS Compute Optimizer recommends right-sized EC2, EBS, Lambda and Auto Scaling configurations; Trusted Advisor flags idle resources.
- The Billing and Cost Management console shows bills, payment methods, credits and Free Tier usage; Migration Evaluator builds a TCO business case for moving on-premises workloads.
Detailed Notes
Cost tools by lifecycle stage
| Stage | Question | Tool |
|---|---|---|
| Plan | What will this architecture cost? | Pricing Calculator |
| Plan | What would migrating cost vs staying on-premises? | Migration Evaluator (TCO) |
| Monitor | Where did our money go last month? | Cost Explorer |
| Monitor | Which team spends what? | Cost allocation tags |
| Control | Tell me if spend exceeds $500 | AWS Budgets |
| Control | Something odd happened to spend | Cost Anomaly Detection |
| Optimise | Are my instances the right size? | Compute Optimizer |
| Optimise | Which resources are idle? | Trusted Advisor |
| Analyse deeply | Every line item for finance | Cost and Usage Report |
AWS Pricing Calculator
You add services, Regions, sizes and usage patterns, and it produces a monthly and yearly estimate you can export and share. It is for estimating future costs, not for viewing your actual bill.
Cost Explorer
Cost Explorer shows trends for the past 13 months (and can forecast ahead), with filters for service, linked account, tag, Region or usage type. It also offers Savings Plans and RI recommendations, and hourly or resource-level granularity as optional features.
AWS Budgets
| Budget type | Tracks |
|---|---|
| Cost | Dollar spend |
| Usage | Quantity such as GB or hours |
| Savings Plans / RI utilisation and coverage | How well commitments are used |
Budgets can alert on actual or forecasted spend and can trigger budget actions (for example applying an IAM or SCP policy that restricts further launches).
{
"BudgetName": "monthly-dev-budget",
"BudgetLimit": { "Amount": "500", "Unit": "USD" },
"TimeUnit": "MONTHLY",
"BudgetType": "COST"
}
aws budgets create-budget --account-id 111122223333 --budget file://budget.json \
--notifications-with-subscribers file://notifications.json
Cost allocation tag types
| Type | Created by | Notes |
|---|---|---|
| User-defined tags | You | Prefix not required; must be activated in the Billing console to appear in cost reports |
| AWS-generated tags | AWS (for example aws:createdBy) | Must be activated; prefixed with aws: |
Activated tags show as columns in the Cost and Usage Report and as filters in Cost Explorer. AWS Billing Conductor lets organisations create custom pro forma billing groups and rates, useful for resellers and internal chargeback, without changing the real invoice. The Cost and Usage Report (CUR) is the most detailed billing dataset, delivered to S3.
Tags and cost allocation
A tag is a key-value label such as Project=Checkout or Environment=Prod. Activate them as cost allocation tags in the Billing console, and they appear in Cost Explorer and the CUR. Combine with tag policies in AWS Organizations to enforce naming consistency.
| Tag type | Example |
|---|---|
| User-defined | CostCenter=1234 |
| AWS-generated | aws:createdBy |
Pricing Calculator versus Cost Explorer versus Budgets
| Tool | Looks at | Time |
|---|---|---|
| Pricing Calculator | Hypothetical architecture | Future |
| Cost Explorer | Actual spend | Past (and forecast) |
| Budgets | Spend against a limit | Present / forecast with alerts |
Other helpers
AWS Billing Conductor customises billing views for chargeback in large organisations, and Savings Plans and Reserved Instance recommendations appear in Cost Explorer. Using AWS Free Tier alerts inside Billing warns when usage approaches limits.
Real World Example
A start-up CTO uses the Pricing Calculator to estimate a new analytics platform before approval. After launch she activates cost allocation tags (Team, Environment) and reviews Cost Explorer weekly, grouping by tag.
An AWS Budget alerts at 80% of the monthly limit, and Cost Anomaly Detection catches a runaway NAT Gateway bill within a day. Compute Optimizer suggests moving three oversized instances to smaller types, saving about 25% on compute.
Architecture Diagram
- 1Estimate the architecture with the Pricing Calculator before building.
- 2Deploy resources with consistent cost allocation tags.
- 3Analyse actual spending by service, account and tag in Cost Explorer.
- 4Set Budgets and anomaly detection so overspend triggers alerts early.
Best Practices
- ✓Create a budget alert on every account, including sandbox accounts.
- ✓Define a tagging strategy and activate cost allocation tags early.
- ✓Review Cost Explorer and Compute Optimizer regularly for right-sizing.
- ✓Enable Cost Anomaly Detection to catch unexpected spikes.
- ✓Use the Cost and Usage Report with Athena for detailed chargeback.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Estimate cost of a planned solution" = Pricing Calculator.
- "Visualise and analyse past spending" = Cost Explorer.
- "Alert when costs exceed a threshold" = AWS Budgets.
- "Track costs by project" = cost allocation tags.
Finished this lesson?
0 of 43 lessons done · 0% of the course

