EC2 Pricing in Depth: Reserved, Dedicated and Capacity Options
Overview
Compute is usually the largest line on an AWS bill, so Task 4.1 digs into the EC2 purchasing options and the other things that affect price: data transfer and storage tiers. You already know On-Demand and Spot; here you learn how Reserved Instances behave, how they flow through AWS Organizations, and when Dedicated Hosts and Capacity Reservations make sense.
Compare hiring a car. On-Demand is a walk-up rental. Reserved is a long lease with a discount. Savings Plans is a prepaid mileage package. Spot is a leftover-car bargain you may have to return. Dedicated Host is renting a whole garage so no one else parks there, and Capacity Reservation is a guaranteed parking space that you pay for even when empty.
Key Concepts
- Standard Reserved Instances give up to about 72% off for a 1- or 3-year commitment; Convertible RIs give slightly less discount but allow changing instance family.
- Payment options for RIs and Savings Plans are All Upfront, Partial Upfront and No Upfront; more upfront means a bigger discount.
- Savings Plans commit to an hourly spend; Compute Savings Plans apply flexibly across EC2, Fargate and Lambda.
- In AWS Organizations, RI and Savings Plans discounts are shared across member accounts under consolidated billing.
- Spot Instances offer up to about 90% off for interruptible workloads.
- Dedicated Hosts are physical servers for you (BYOL, compliance); Dedicated Instances run on hardware dedicated to your account.
- On-Demand Capacity Reservations guarantee capacity in an AZ and are billed whether used or not.
- Data transfer in is free, transfer out and cross-Region or cross-AZ traffic is charged; storage price depends on class and tier.
Detailed Notes
Pricing options compared
| Option | Commitment | Discount | Best for |
|---|---|---|---|
| On-Demand | None | None | Unpredictable, short-lived workloads |
| Savings Plans | 1 or 3 years of $/hour | Up to ~72% | Steady usage with flexibility |
| Reserved Instances | 1 or 3 years, specific instance | Up to ~72% | Steady, predictable usage |
| Spot | None, can be interrupted with 2-minute notice | Up to ~90% | Fault-tolerant, flexible jobs |
| Dedicated Host | On-Demand or reservation | Varies | BYOL, compliance |
| Capacity Reservation | None | None (pay On-Demand rate) | Guarantee capacity |
Reserved Instance types
| Type | Flexibility | Discount | Notes |
|---|---|---|---|
| Standard RI | Fixed family/size within Region (size flexibility for Linux) | Highest | Can be sold on the RI Marketplace |
| Convertible RI | Can exchange for different family, OS or tenancy | Lower | Useful when needs may change |
| Regional vs Zonal | Regional applies across AZs; Zonal reserves capacity in one AZ | - | Zonal RIs also reserve capacity |
Payment options
| Option | Upfront | Monthly | Discount |
|---|---|---|---|
| All Upfront | Full | None | Largest |
| Partial Upfront | Part | Reduced | Middle |
| No Upfront | None | Reduced hourly | Smallest |
RIs in AWS Organizations
With consolidated billing the management account receives one bill. Unused RI or Savings Plans capacity in one account automatically applies to matching usage in another account of the Organization. Sharing can be turned off per account if needed. This pools the discounts and avoids waste.
Dedicated Hosts versus Dedicated Instances
| Feature | Dedicated Host | Dedicated Instance |
|---|---|---|
| Hardware | Whole physical server, visibility of sockets and cores | Isolated hardware, no host visibility |
| Licensing | Supports BYOL per-socket/core | Limited |
| Control | Choose which instances land on the host | AWS decides |
| Billing | Per host | Per instance plus a Region fee |
Capacity Reservations
aws ec2 create-capacity-reservation \
--instance-type m6i.large --instance-platform Linux/UNIX \
--availability-zone eu-west-1a --instance-count 4
A reservation guarantees you can launch instances even during a high-demand event. It does not give a discount unless combined with a Savings Plan or a zonal RI.
Beyond compute: other price drivers
| Driver | Rule of thumb |
|---|---|
| Data transfer IN | Free |
| Data transfer OUT to internet | Tiered per-GB pricing; first 100 GB per month free (aggregate) |
| Same-AZ private traffic | Free; cross-AZ and cross-Region traffic is charged |
| Storage | S3 class (Standard, IA, Glacier tiers) and EBS type change cost; lifecycle policies move data to cheaper tiers |
| Requests | S3, DynamoDB and API Gateway also charge per request |
Decision guide
| Scenario | Choice |
|---|---|
| Steady 24/7 database for 3 years | Reserved or Savings Plan, All or Partial Upfront |
| Nightly batch that can restart | Spot |
| Uncertain instance family in future | Convertible RI or Compute Savings Plan |
| Must reuse per-socket Windows licences | Dedicated Hosts |
| Must be sure of capacity for a launch event | On-Demand Capacity Reservation |
Savings checklist
{
"baseline": "Reserved/Savings Plans",
"peaks": "On-Demand",
"interruptible": "Spot",
"data": "S3 lifecycle + CloudFront to cut egress"
}
Real World Example
An online retailer covers its always-on web and database tier with a three-year Compute Savings Plan (Partial Upfront) and uses On-Demand for seasonal peaks. Image processing runs on Spot, and a Capacity Reservation guarantees compute for Black Friday.
The company's 40 accounts share one Organization, so unused Savings Plan capacity in the marketing account automatically discounts the data team's instances. Old product photos move to S3 Glacier through lifecycle rules, and CloudFront reduces data-transfer-out charges.
Architecture Diagram
- 1Measure usage and classify each workload.
- 2Cover the steady baseline with RIs or Savings Plans.
- 3Use On-Demand for unpredictable peaks.
- 4Use Spot for fault-tolerant jobs.
- 5Use Dedicated Hosts or Capacity Reservations for licensing or capacity guarantees.
Best Practices
- ✓Commit only to the steady baseline, not peaks.
- ✓Prefer Compute Savings Plans for flexibility across services.
- ✓Use Spot with checkpointing for interruptible work.
- ✓Share commitments across accounts with Organizations.
- ✓Reduce data transfer out with CloudFront and keep chatty services in the same AZ and Region.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Largest discount for predictable 3-year usage" = Reserved or Savings Plan, All Upfront.
- "Interruptible, up to 90% off" = Spot.
- "Guarantee capacity" = Capacity Reservation; "physical server for licences" = Dedicated Host.
- Data in is free; data out and cross-Region transfer are charged.
Finished this lesson?
0 of 43 lessons done · 0% of the course

