A Spot Instance receives a two-minute interruption notice. What should the application do?
Show answer and explanation
Answer: A
When Spot capacity is reclaimed, AWS gives a two-minute warning through the instance metadata and an EventBridge event, and then stops or terminates the instance. Applications that poll for that signal can flush buffers, write checkpoints to durable storage, drain from a load balancer, and let a replacement pick up the remaining work. Designing for this notice is what makes interruption-tolerant batch and stateless workloads practical on Spot.
Why the other options are wrong
- B. Spot Instances are reclaimed whenever capacity is needed or the price exceeds the maximum, so ignoring the notice guarantees lost work.
- C. Terminating at once throws away the two minutes that exist specifically to save state gracefully.
- D. Requesting more capacity in the same launch does not prevent this instance from being reclaimed.
Exam tip. Two minutes is the Spot interruption window; poll metadata or EventBridge and checkpoint.