Chapter 8 of 10
AWS Pricing Models, Billing, and Cost Management
Lift the curtain on how AWS pricing actually works, see how to estimate and control costs, and get comfortable with the kinds of billing and economics questions that often surprise exam-takers.
1. Big Picture: How AWS Pricing Works
AWS Pricing at a Glance
AWS pricing is mainly about flexibility and usage-based costs. For CLF-C02, focus on how AWS charges and how customers control spend, not on memorizing dollar amounts.
Three Cost Dimensions
Most AWS bills are dominated by: 1) Compute (EC2, Lambda, Fargate), 2) Storage (S3, EBS, EFS), 3) Data transfer, especially data leaving AWS to the internet or between regions.
Pay-As-You-Go
AWS generally uses pay-as-you-go: pay only for what you use, no required long-term contracts, and often tiered pricing where unit prices drop as your usage grows.
Purchasing Options
Beyond on-demand pricing, AWS offers Savings Plans and Reserved Instances that exchange some flexibility for lower prices. Understanding these models is key for the exam.
Connecting to Other Modules
Your choices in storage, databases, and networking directly influence cost patterns. Monitoring and management tools can also add small but important line items to your bill.
2. Core AWS Pricing Models and Terms
On-Demand
On-Demand pricing: pay by the second or hour, no long-term commitment. Good for spiky, short-lived, or unpredictable workloads like dev/test or new apps.
Savings Plans
Savings Plans: commit to a consistent amount of compute spend (1 or 3 years) for lower prices. Compute Savings Plans are flexible across EC2, Fargate, and Lambda.
Reserved Instances
Reserved Instances: 1- or 3-year commitments to EC2 (and some DBs) for discounts. Standard RIs give the biggest savings; Convertible RIs offer more flexibility.
Spot Instances
Spot Instances: use spare EC2 capacity at deep discounts, but AWS can stop them with 2 minutes' notice. Ideal for fault-tolerant or batch jobs.
Free Tier and Always Free
The AWS Free Tier gives limited usage for the first 12 months of a new account. Some services have Always Free quotas that remain free at low usage levels.
3. Example: Choosing a Pricing Model for EC2
Workload A: New App
Unpredictable traffic, experimenting with instance types, unclear long-term usage. Best fit: On-Demand EC2 for maximum flexibility and no commitments yet.
Workload B: HR System
Stable, long-running internal HR app expected to last years. Best fit: Savings Plans or Standard RIs to trade commitment for lower prices.
Workload C: Rendering Jobs
CPU-heavy batch jobs, can pause and retry, tolerate interruptions. Best fit: Spot Instances (often mixed with some On-Demand) for big discounts.
Exam Angle
If a question mentions fault-tolerant batch and lowest cost, think Spot. If it mentions steady, predictable usage, think Savings Plans or RIs.
4. Key Billing and Cost Management Tools
Billing Console
The AWS Billing Console shows invoices, payment methods, and tax settings. It is also where you enable and manage tools like Cost Explorer and AWS Budgets.
Cost Explorer
AWS Cost Explorer is a visual tool to analyze historical cost and usage. Filter by service, Region, account, or tag and see trends and simple forecasts.
AWS Budgets
AWS Budgets lets you set cost or usage limits and get alerts when you approach or exceed them. It is about proactive control, not just reporting.
Cost and Usage Report
The Cost and Usage Report (CUR) delivers detailed, line-item billing data to S3. It is used for deep analysis, often by finance or BI teams.
AWS Pricing Calculator
The AWS Pricing Calculator estimates future costs for planned architectures. It is for planning and comparison, not for reading your current invoice.
5. Thought Exercise: Pick the Right Billing Tool
Match each situation to the most appropriate AWS billing or cost management tool. Think through your answers before checking with a peer or instructor.
- You want to know which service caused your bill to jump last month.
- Which tool? (Hint: visual trends and filters.)
- You want an alert if your monthly spend goes over $200.
- Which tool? (Hint: proactive notifications.)
- You want to estimate the cost of a new 3-tier web app architecture before deploying it.
- Which tool? (Hint: forward-looking, not historical.)
- Your finance team wants the most detailed, exportable data for integration into their own BI system.
- Which tool? (Hint: raw data in S3.)
Suggested answers (do not peek until you have tried):
- AWS Cost Explorer
- AWS Budgets
- AWS Pricing Calculator
- AWS Cost and Usage Report (CUR)
As you review, connect each choice back to its main purpose: analyze, alert, estimate, or export.
6. Basic Cost Concepts: Regions, Data Transfer, and Storage Classes
Regions and AZs
AWS prices vary by Region. Data transfer within an AZ is often free, but cross-AZ and cross-Region data transfer usually incur extra costs.
Data Transfer Patterns
Data coming into AWS is typically free. Data going out to the internet or between Regions usually costs money and can be a big part of your bill.
S3 Storage Classes
S3 Standard is for frequently accessed data. Standard-IA and Intelligent-Tiering are for infrequent access. Glacier classes are for archival storage.
Lifecycle Policies
S3 lifecycle policies can automatically move data to cheaper storage classes over time, reducing storage costs without manual work.
Exam Connection
If a scenario mentions rarely accessed data kept for years, think Glacier or Standard-IA plus lifecycle rules as a cost optimization.
7. Cost Optimization Fundamentals (CLF-C02 Focus)
Right-Sizing and Elasticity
Avoid oversized instances. Use Auto Scaling and serverless or managed services so you pay only for the capacity you actually need, when you need it.
Match Pricing to Workload
Steady workloads: Savings Plans/RIs. New or spiky workloads: On-Demand. Fault-tolerant batch: Spot. Matching patterns to models saves money.
Optimize Storage and Data
Use cheaper S3 storage classes for infrequent data, delete unused EBS volumes or snapshots, and reduce expensive cross-Region or internet data transfer.
Governance and Tags
Tag resources with `Project`, `Environment`, or `Owner`, then use Cost Explorer and Budgets to track and control spend per team or application.
Organizations and Consolidated Billing
AWS Organizations with consolidated billing lets multiple accounts share volume discounts and simplifies cost management across the company.
8. Quick Check: Pricing Models and Tools
Test your understanding of pricing models and billing tools with this short question.
A company has a steady, predictable web application that has run at roughly the same traffic level for 2 years. They want to reduce compute costs without losing flexibility to change instance types in the future. Which option is the BEST fit?
- Use only On-Demand Instances
- Purchase Compute Savings Plans
- Run the workload entirely on Spot Instances
- Rely only on the AWS Free Tier
Show Answer
Answer: B) Purchase Compute Savings Plans
**Compute Savings Plans** are designed for steady-state compute usage and allow flexibility across instance types and regions. On-Demand is more expensive for long-term steady loads, Spot is not ideal for non-fault-tolerant web apps, and the Free Tier is too limited and time-bound.
9. Mini Scenario: Designing for Cost Awareness
Work through this mini scenario step by step.
A small e-commerce startup is moving to AWS. They have:
- A web front end with unpredictable traffic.
- A stable background order-processing service.
- Product images stored for years but rarely accessed after the first month.
They also have a strict monthly budget and a small team.
Questions to think about:
- Which EC2 pricing model would you choose for the web front end, and why?
- Which pricing model would you choose for the background processing service, and why?
- Which S3 storage strategy would you use for product images, and why?
- Which two AWS cost tools would you set up on day one to avoid surprises?
Sample reasoning (compare with your own):
- Web front end: On-Demand (or a mix of On-Demand and some Spot behind Auto Scaling) because traffic is unpredictable.
- Background processing: Savings Plans or Reserved Instances if its usage is steady and long-term.
- Product images: Store initially in S3 Standard, then use lifecycle policies to move them to Standard-IA or Glacier after the first month.
- Tools: AWS Budgets for alerts and Cost Explorer for visibility, optionally using tags like `Project=ecommerce`.
10. Flashcards: Key Terms Review
Flip through these flashcards to reinforce the core pricing and billing concepts.
- On-Demand Pricing
- A pay-as-you-go model with no long-term commitments. You pay by the second or hour for resources like EC2 or RDS, ideal for new, spiky, or unpredictable workloads.
- Savings Plans
- A 1- or 3-year commitment to a consistent amount of compute usage for lower prices. More flexible than traditional Reserved Instances, especially Compute Savings Plans.
- Spot Instances
- Discounted EC2 capacity using spare AWS resources that can be interrupted with short notice. Best for fault-tolerant, flexible batch or background workloads.
- AWS Cost Explorer
- A visual tool for analyzing historical AWS cost and usage. Supports filtering by service, Region, account, and tag, and provides basic forecasting.
- AWS Budgets
- A service that lets you set custom cost or usage budgets and receive alerts via email or SNS when your actual or forecasted spend exceeds thresholds.
- AWS Pricing Calculator
- A free web-based tool for estimating the future monthly cost of planned AWS architectures. Used for planning and comparing design options.
- Cost and Usage Report (CUR)
- The most detailed AWS billing dataset, delivered to S3 as CSV or Parquet. Contains line-item usage and cost information for advanced analysis.
- Right-Sizing
- The practice of matching resource capacity (for example, EC2 instance size) to actual workload demand to avoid paying for unused capacity.
- Lifecycle Policies (S3)
- Rules that automatically transition S3 objects between storage classes or expire them after a defined period, helping reduce long-term storage costs.
- Consolidated Billing (AWS Organizations)
- A feature of AWS Organizations that combines charges from multiple AWS accounts into a single bill and can unlock volume discounts across the organization.
Key Terms
- On-Demand
- A pricing model where you pay for AWS resources by the second or hour with no long-term commitment, ideal for variable or unpredictable workloads.
- AWS Budgets
- A service that lets you define cost and usage budgets and sends alerts when thresholds are exceeded or forecasted to be exceeded.
- Right-Sizing
- Optimizing resource sizes to match actual workload needs, reducing over-provisioning and unnecessary cost.
- Savings Plans
- Discounted pricing for compute usage in exchange for a 1- or 3-year commitment to a consistent amount of usage, offering flexibility across services and instance types.
- Spot Instances
- EC2 instances that use spare AWS capacity at significant discounts but can be interrupted by AWS with short notice.
- AWS Cost Explorer
- A visual analytics tool for exploring and understanding AWS cost and usage over time.
- Reserved Instances
- A pricing option that provides a discount compared to On-Demand in exchange for a 1- or 3-year commitment to specific EC2 (or some database) usage.
- AWS Billing Console
- The AWS console area where you view and manage invoices, payment methods, tax settings, and enable cost management tools.
- S3 Lifecycle Policy
- A configuration on an S3 bucket that automatically transitions or expires objects based on age or other criteria to reduce storage costs.
- Consolidated Billing
- An AWS Organizations feature that combines billing for multiple AWS accounts into a single invoice and can provide shared volume discounts.
- AWS Pricing Calculator
- A web-based tool for estimating the future monthly cost of AWS architectures before deployment.
- AWS Cost and Usage Report (CUR)
- A detailed, exportable report of AWS cost and usage data delivered to an S3 bucket, used for deep financial analysis.