SAA-C03 ยท Cost-optimized compute
Spot Instances: cheap spare capacity that can be taken back
Spot pricing and two-minute interruption notice, fault-tolerant workloads that fit Spot, mixed-instance Auto Scaling groups and allocation strategies.
Key points
- Spot: spare EC2 capacity at a steep discount.
- Price set by AWS, moves gradually; no bidding.
- Reclaimed (stop, hibernate, terminate) after a two-minute notice (EventBridge, instance metadata), often after a rebalance recommendation.
- For fault-tolerant work: batch, CI, analytics, stateless web.
- Auto Scaling: mix On-Demand and Spot, many types and AZs, price-capacity-optimized.
- Savings Plans do not cover Spot.
Source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html
Practice questions
How much warning does the Spot Instance interruption notice normally give before EC2 stops or terminates the instance?
- Thirty seconds
- Two minutes
- Fifteen minutes
- One hour
Show answer
Answer: B. Two minutes
The interruption notice arrives two minutes before the stop or termination. The only exception is hibernation as the interruption behavior, which starts immediately without the two-minute lead.
Which workloads are good candidates for Spot Instances?
- CI/CD build agents that pick jobs from a queue
- Stateless web servers behind a load balancer in a mixed group
- Nightly batch jobs that checkpoint progress to Amazon S3
- The single primary database instance, with no replica
- A license server that must stay reachable around the clock
Show answer
Answer: A. CI/CD build agents that pick jobs from a queue, B. Stateless web servers behind a load balancer in a mixed group, C. Nightly batch jobs that checkpoint progress to Amazon S3
CI build agents, stateless web servers in a mixed Auto Scaling group and checkpointed batch jobs all tolerate losing an instance. A single primary database with no replica, or a license server that must stay up around the clock, would suffer real outages when reclaimed.
To get a Spot Instance you must outbid other customers, and the Spot price jumps minute by minute with those bids.
Show answer
Answer: False
False. EC2 sets the Spot price for each instance type and AZ and adjusts it gradually based on long-term supply and demand. Your instance runs while capacity is available; interruptions are driven by capacity, not by other customers' bids.
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.
