Purchasing options
On-Demand, Savings Plans, Reserved Instances, Spot, Dedicated Hosts, Dedicated Instances and Capacity Reservations, and how to choose between them.
What it is
The same EC2 instance can be paid for in several ways. They trade flexibility against price: commit to more, or accept interruptions, and the price drops. Choosing well is one of the biggest cost levers on AWS, and the exam asks about it in every cost question.
- On-Demand: pay by the second, no commitment.
- Savings Plans: commit to spending an amount per hour for 1 or 3 years.
- Reserved Instances: commit to an instance configuration for 1 or 3 years.
- Spot Instances: spare capacity at a big discount, but AWS can take it back.
- Dedicated Hosts: a whole physical server for one customer.
- Dedicated Instances: instances on hardware no other customer uses.
- Capacity Reservations: guaranteed capacity in one AZ, for as long as it's needed.
Choosing an option
- Can the work be interrupted and restarted? Batch jobs, data analysis, CI builds, stateless web servers behind a load balancer → Spot, the cheapest option.
- Will it run steadily for a year or more? An always-on app or database → Savings Plans or Reserved Instances.
- Do software licences tie the workload to physical servers, or do rules require dedicated hardware? → Dedicated Hosts.
- Must capacity be guaranteed in one AZ for an event or a disaster-recovery plan? → Capacity Reservation, usually combined with a Savings Plan for the discount.
- None of the above, or usage can't be predicted yet → On-Demand.
Real systems mix them: a baseline covered by Savings Plans, peaks on On-Demand, and fault-tolerant extra work on Spot.
The options in detail
On-Demand Instances
- Billed per use: per second (60-second minimum) for Linux and Windows, per hour for some other systems.
- The highest price, but no upfront payment and no commitment.
- Best for short-term, unpredictable workloads that mustn't be interrupted, and for trying things out.
Reserved Instances (RIs)
A Reserved Instance isn't a server. It's a billing discount applied to running instances that match its attributes.
- Up to 72% off On-Demand.
- The reservation fixes specific attributes: instance type, Region, tenancy and platform (OS).
- Term: 1 year, or 3 years for a bigger discount.
- Payment: No Upfront, Partial Upfront, or All Upfront. More upfront means a bigger discount.
- Scope: Regional (discount applies in any AZ, no capacity reserved) or zonal (applies in one AZ and also reserves capacity there).
- Standard RIs: the biggest discount; can be modified a little, and sold on the Reserved Instance Marketplace if they're no longer needed.
- Convertible RIs: up to 66% off; can be exchanged for different instance families, OS or tenancy, but can't be sold on the Marketplace.
- An RI can't be cancelled. When it expires, usage is billed at On-Demand rates again.
- Good for steady-state use, such as a database that runs all year.
Savings Plans
The customer commits to a spend per hour (for example $10/hour) for 1 or 3 years. Usage up to that amount gets the discounted rate; anything above it is billed at On-Demand prices.
- Compute Savings Plans: up to 66% off. Apply to EC2 in any family, size, OS, tenancy or Region, and also to Fargate and Lambda. The most flexible.
- EC2 Instance Savings Plans: up to 72% off, the same as Standard RIs. Locked to one instance family in one Region (for example M7 in us-east-1), but flexible on size, OS and tenancy.
- Two newer types cover other services: Database Savings Plans (up to 35% on RDS, Aurora, DynamoDB, ElastiCache and others) and SageMaker AI Savings Plans.
- Same payment options as RIs. Spot usage isn't covered.
Spot Instances
- Up to 90% off, using EC2's spare capacity.
- AWS can reclaim the instance with a 2-minute warning when it needs the capacity back.
- The most cost-efficient option, for workloads that can survive interruption: batch jobs, data analysis, image processing, distributed and containerised workloads, work with a flexible start and end time.
- Not for critical jobs or databases. See Spot Instances for the details.
Dedicated Hosts
- A physical server with its EC2 capacity fully dedicated to one customer.
- The sockets and physical cores are visible, and instances can stay on the same host over time (host affinity). That allows bring your own licence (BYOL) for software licensed per socket, per core or per VM, such as Windows Server, SQL Server or Oracle.
- Also used for strict compliance or regulatory requirements.
- Pay On-Demand per host per second, or reserve for 1 or 3 years. The most expensive option.
Dedicated Instances
- Instances that run on hardware dedicated to one account. No other customer's instances share it.
- They may share hardware with the account's own other instances, and the customer doesn't control placement: a stop and start can move them.
- Billed per instance, plus a $2 per hour fee in each Region where at least one runs.
Dedicated Host vs Dedicated Instance:
| Host | Instance | |
|---|---|---|
| Billing | per host | per instance |
| Sockets and cores visible | yes | no |
| Placement control | yes | no |
| Per-core licences (BYOL) | yes | limited |
Capacity Reservations
- Reserve On-Demand capacity in a specific AZ for any duration, so instances can always launch when needed.
- Immediate reservations have no commitment: create and cancel any time. Future-dated reservations book capacity for a start date, with a minimum commitment.
- No discount: the On-Demand rate applies whether instances run in the reservation or not. Combine with Regional RIs or Savings Plans to get a discount.
- Good for short, uninterrupted workloads that must be in one AZ: a product launch, a sale event, a disaster-recovery standby.
- For GPU clusters for machine learning, Capacity Blocks for ML reserve GPU instances for a future date and length.
How much each saves
More flexibility costs a little more: Compute Savings Plans and Convertible RIs save up to 66%, the more locked-in EC2 Instance Savings Plans and Standard RIs up to 72%, and Spot up to 90%, in exchange for accepting interruptions. Dedicated Hosts and Capacity Reservations start at the On-Demand price.
Example
The course compares them to a resort. On-Demand: turn up at any time and pay full price. Reserved: book a long stay in advance for a good discount. Savings Plans: pay a set amount per hour and stay in any room type. Spot: take an empty room very cheaply, but the guest can be asked to leave at short notice. Dedicated Host: book the whole building. Capacity Reservation: book a room at full price for a period, even if nobody sleeps there.
Updated since the slides
AWS now recommends Savings Plans over Reserved Instances for new purchases, because they give the same discount with more flexibility. Discount percentages change over time and the exam doesn't test exact numbers. Database Savings Plans and future-dated Capacity Reservations are newer than the slides. And Spot no longer works by bidding: AWS sets the Spot price, which moves slowly with supply and demand.
Exam tips
- "Steady-state", "always on", "1 or 3 years" → Savings Plans or Reserved Instances.
- "Flexibility across instance families, Regions, or Fargate and Lambda" → Compute Savings Plans.
- "Change instance family during the term" → Convertible RI or Compute Savings Plan, not Standard RI.
- "Fault-tolerant", "can be interrupted", "flexible timing", "cheapest" → Spot.
- "Short-term, unpredictable, can't be interrupted" → On-Demand.
- "BYOL per-socket / per-core licences", "control over the physical server" → Dedicated Hosts.
- "Hardware not shared with other AWS accounts", no licence need → Dedicated Instances.
- "Guarantee capacity in a specific AZ" → On-Demand Capacity Reservation (or a zonal RI).
Common traps
- "Reserved Instances reserve capacity." Only zonal RIs do. Regional RIs and Savings Plans are billing discounts only.
- "Capacity Reservations give a discount." They don't; On-Demand rates apply unless an RI or Savings Plan covers them.
- "Sell an unused Convertible RI on the Marketplace." Only Standard RIs can be sold.
- "Use Spot for the production database." A 2-minute warning isn't enough for a stateful database.
- "Dedicated Instances let me bring per-core licences." That needs Dedicated Hosts.
Hands-on lab: price one server four ways
Goal: see the real difference between purchasing options for the same instance.
Free
The AWS Pricing Calculator is free and creates nothing in your account. Don't buy Reserved Instances or Savings Plans to experiment: those purchases can't be cancelled.
Open the calculator
Go to calculator.aws and choose Create estimate → Amazon EC2 → Configure. Region US East (N. Virginia).
Describe the server
Operating system Linux, 1 instance, constant usage, 100% utilisation. Search the instance type m7g.large.
Compare the payment options
Under Pricing strategy, look at the monthly cost for On-Demand, then Compute Savings Plans (1 year, no upfront), EC2 Instance Savings Plans (3 years, all upfront) and Spot. Note each monthly figure.
Expected result: four monthly prices for the same machine. Spot is far cheaper than On-Demand, and the 3-year EC2 Instance Savings Plan sits between them.
Clean up: nothing to delete. You can save or discard the estimate.
AWS documentation
Connecting to EC2
Logging in to an instance with SSH or PuTTY, EC2 Instance Connect, Session Manager and the EC2 Instance Connect Endpoint, and fixing SSH problems.
Spot Instances
How Spot pricing, requests and interruptions work, how to stop Spot Instances properly, and launching many at once with fleets.