SkillSprout
Chapter 6 · Lesson 5
Beginner
6 min read

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

OptionCommitmentDiscountBest for
On-DemandNoneNoneUnpredictable, short-lived workloads
Savings Plans1 or 3 years of $/hourUp to ~72%Steady usage with flexibility
Reserved Instances1 or 3 years, specific instanceUp to ~72%Steady, predictable usage
SpotNone, can be interrupted with 2-minute noticeUp to ~90%Fault-tolerant, flexible jobs
Dedicated HostOn-Demand or reservationVariesBYOL, compliance
Capacity ReservationNoneNone (pay On-Demand rate)Guarantee capacity

Reserved Instance types

TypeFlexibilityDiscountNotes
Standard RIFixed family/size within Region (size flexibility for Linux)HighestCan be sold on the RI Marketplace
Convertible RICan exchange for different family, OS or tenancyLowerUseful when needs may change
Regional vs ZonalRegional applies across AZs; Zonal reserves capacity in one AZ-Zonal RIs also reserve capacity

Payment options

OptionUpfrontMonthlyDiscount
All UpfrontFullNoneLargest
Partial UpfrontPartReducedMiddle
No UpfrontNoneReduced hourlySmallest

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

FeatureDedicated HostDedicated Instance
HardwareWhole physical server, visibility of sockets and coresIsolated hardware, no host visibility
LicensingSupports BYOL per-socket/coreLimited
ControlChoose which instances land on the hostAWS decides
BillingPer hostPer instance plus a Region fee

Capacity Reservations

bash
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

DriverRule of thumb
Data transfer INFree
Data transfer OUT to internetTiered per-GB pricing; first 100 GB per month free (aggregate)
Same-AZ private trafficFree; cross-AZ and cross-Region traffic is charged
StorageS3 class (Standard, IA, Glacier tiers) and EBS type change cost; lifecycle policies move data to cheaper tiers
RequestsS3, DynamoDB and API Gateway also charge per request

Decision guide

ScenarioChoice
Steady 24/7 database for 3 yearsReserved or Savings Plan, All or Partial Upfront
Nightly batch that can restartSpot
Uncertain instance family in futureConvertible RI or Compute Savings Plan
Must reuse per-socket Windows licencesDedicated Hosts
Must be sure of capacity for a launch eventOn-Demand Capacity Reservation

Savings checklist

json
{
  "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

Matching purchase options to workload
Architecture
EC2 purchasing
Steady baselineRI / Savings Plan
Variable peaksOn-Demand
InterruptibleSpot
Special needsDedicated / Capacity
  1. 1Measure usage and classify each workload.
  2. 2Cover the steady baseline with RIs or Savings Plans.
  3. 3Use On-Demand for unpredictable peaks.
  4. 4Use Spot for fault-tolerant jobs.
  5. 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