How it works
Amazon EC2 Spot Instances use spare EC2 capacity and can cost substantially less than On-Demand prices. AWS can interrupt an instance when capacity is reclaimed or for other conditions. A notice is generally provided two minutes before stopping or terminating an instance; hibernation begins immediately. They suit flexible, fault-tolerant workloads.
When to use it
Batch jobs, data analysis and workloads resilient to failure.
Real-world example
A laboratory runs gene data analysis jobs on Spot Instances. When a worker is interrupted, the scheduler puts its unfinished work back on the queue for another worker to process when capacity is available.
Key facts
- AWS generally gives a 2 minute interruption notice before stopping or terminating a Spot instance; hibernation starts immediately.
- Cancelling a Spot request does not terminate the instances.
- Spot Fleet strategy recommended: priceCapacityOptimized.
Common pitfall
Do not assume Spot capacity is always available or that there will always be enough time to react to an interruption. For important workloads, design suitable checkpointing, retries, and alternative capacity arrangements.
Often confused with
On-Demand, which does not have Spot interruption risk and uses a different pricing model.
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Keywords you will see in SAA-C03 questions
- cheapest
- fault tolerant
- flexible start and end
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.