CLF-C02 ยท Pricing models and cost management
EC2 purchasing options
On-Demand, Spot Instances, Dedicated Hosts, Dedicated Instances and On-Demand Capacity Reservations, and when to use each.
Key points
- On-Demand: per second, no commitment; unpredictable work.
- Spot: spare capacity, big discount, two-minute reclaim notice; interruptible jobs.
- Dedicated Hosts: physical server, socket and core visibility (BYOL).
- Dedicated Instances: single-tenant hardware, no host control.
- On-Demand Capacity Reservations: capacity guaranteed in one AZ, no discount alone.
- Savings Plans, Reserved Instances: discount for a 1- or 3-year commitment.
Source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html
Practice questions
Which EC2 purchasing option uses spare capacity at a large discount but can be interrupted when AWS needs the capacity back?
- On-Demand Instances
- Dedicated Hosts
- Spot Instances
- Capacity Reservations
Show answer
Answer: C. Spot Instances
Spot Instances run on unused EC2 capacity at a steep discount, and EC2 can interrupt them with a two-minute warning. On-Demand Instances are never reclaimed by AWS, and Dedicated Hosts and Capacity Reservations are about isolation and guaranteed capacity, not spare capacity.
Which workloads are good candidates for Spot Instances?
- Nightly batch image rendering that can restart
- The primary database of an online store
- Large-scale data analysis split into small tasks
- A payment checkout service that must stay up
- Background processing of a queue with retries
Show answer
Answer: A. Nightly batch image rendering that can restart, C. Large-scale data analysis split into small tasks, E. Background processing of a queue with retries
Spot suits work that can stop and resume, such as batch jobs, data analysis and background processing. A primary production database or a checkout service must not disappear on a two-minute notice, and a fixed-schedule job that cannot be delayed needs guaranteed capacity.
An On-Demand Capacity Reservation by itself lowers the hourly price of the instances that run in it.
Show answer
Answer: False
False. A Capacity Reservation guarantees capacity in a specific Availability Zone but gives no billing discount on its own. To get a discount you combine it with Savings Plans or Regional Reserved Instances.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
