Matching EC2 Purchasing Options to Workloads
This lesson explains the EC2 pricing models that can cut costs dramatically, and how to match each workload to the right model.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish On-Demand, Savings Plans, Reserved Instances, Spot and Dedicated options.
- Explain how diversification and capacity rebalancing handle Spot interruptions.
- Explain how purchasing models combine in one design.
The options
EC2 purchasing options trade commitment for discount, and exam scenarios usually describe a usage pattern that points to one of them. On-Demand has no commitment and is billed per second for Linux, so it suits short-term, spiky or unpredictable workloads and anything being tested.
For steady usage, a commitment earns a discount. Savings Plans commit to a dollar amount of compute per hour for one or three years. Compute Savings Plans apply to any instance family, size, operating system and Region, and to Fargate and Lambda, which suits organisations whose usage changes shape; EC2 Instance Savings Plans give a larger discount for one family in one Region. Reserved Instances commit to a specific instance configuration. Standard RIs give the largest discount and can be sold on the RI Marketplace, and zonal RIs also reserve capacity in an Availability Zone; convertible RIs can be exchanged for other types for a smaller discount. Paying more upfront increases the discount.
Spot Instances use spare capacity at up to 90% off, but AWS can reclaim them with a two-minute notice, so they suit stateless, fault-tolerant work that can run on several instance types, such as batch jobs and CI builds. Dedicated Hosts give a whole physical server with visibility of its sockets and cores, which is needed to bring existing per-socket or per-core software licences, such as Windows Server, SQL Server or Oracle. Dedicated Instances run on hardware used by no other customer, without host-level control. On-Demand Capacity Reservations guarantee capacity in one Availability Zone at the On-Demand price, for critical events, and can be combined with Savings Plans for a discount. The following table summarises the options.
| Option | Discount | Commitment | Best for |
|---|---|---|---|
| On-Demand | None | None; per-second billing (Linux) | Short-term, spiky, unpredictable |
| Compute Savings Plans | Up to 66% | $/hour, 1 or 3 years; any family, size, OS, Region, plus Fargate and Lambda | Flexible steady usage |
| EC2 Instance Savings Plans | Up to 72% | $/hour for one family in one Region | Stable family choice |
| Standard Reserved Instances | Up to 72% | Instance type, Region, tenancy; sellable on the RI Marketplace; zonal RIs reserve capacity | Steady 24/7 |
| Convertible Reserved Instances | Less | Exchangeable for other types | Steady but changing |
| Spot | Up to 90% | None; 2-minute interruption notice | Stateless, fault-tolerant, flexible |
| Dedicated Hosts | — | A physical server; socket and core visibility | BYOL (Windows Server, SQL Server, Oracle), compliance |
| Dedicated Instances | — | Hardware isolation, no host control | Isolation requirements |
| On-Demand Capacity Reservations | On-Demand price (combine with Savings Plans) | Capacity in one AZ | Guaranteed capacity for critical events |
Paying more upfront (all, partial, none) gives a bigger RI discount.
The following diagram arranges the options from no commitment to the largest committed discount.

Choosing a purchasing option
Handling Spot interruptions
Spot Instances can be reclaimed with two minutes' notice, so workloads that use them must tolerate interruption. The most effective measure is diversification: requesting capacity across many instance types and Availability Zones with the price-capacity-optimized allocation strategy, through EC2 Fleet, Spot Fleet or an Auto Scaling group, so that capacity comes from the pools least likely to be interrupted.
Auto Scaling capacity rebalancing acts on rebalance recommendations, which often arrive before the interruption notice, by launching a replacement before the at-risk instance is reclaimed. Long-running jobs should checkpoint their progress regularly, and applications should react to the two-minute notice, available from instance metadata or as an EventBridge event, by draining work and saving state.
Living with Spot
Combining models
Cover the steady baseline with Savings Plans or RIs, predictable peaks with On-Demand or scheduled scaling, and flexible work with Spot. An Auto Scaling group with a mixed instances policy does all of this in one fleet.
Combining purchasing options
A web application needs 10 instances all day, rises to 30 during business hours, and a nightly batch job uses 50 instances for two hours but can be restarted if interrupted.
| Usage | Option |
|---|---|
| The steady 10 instances | Savings Plan (1 or 3 years) |
| The extra 20 during business hours | On-Demand, scaled by Auto Scaling |
| The nightly batch | Spot Instances, diversified across instance types |
Committing to 30 instances would waste money every night; running the batch On-Demand would cost up to ten times more than Spot. Layering the options to match each part of the demand is the cost-optimised design.
Which purchasing option gives the largest discount for fault-tolerant batch jobs that can be interrupted?
Show answer
Spot Instances, which can be reclaimed with a two-minute warning, so the jobs must tolerate interruption.
Exam Tips
Remember for the exam
- Steady 24/7 workloads suit Savings Plans or Reserved Instances.
- Fault-tolerant batch jobs at the lowest cost suit Spot.
- Software licensed per socket or per core requires Dedicated Hosts.
- To guarantee capacity for a short, critical event without a long commitment, use an On-Demand Capacity Reservation.
- For a baseline, peaks and flexible work in one fleet, combine Savings Plans, On-Demand and Spot in a mixed instances Auto Scaling group.
- To reduce Spot interruptions, diversify instance types and zones and use price-capacity-optimized allocation.