What happens to an AWS Spot Instance when the spot price exceeds your bid price?
Think about how AWS manages Spot Instances to allow graceful shutdown.
AWS Spot Instances receive a two-minute warning before termination when the spot price exceeds the bid or capacity is no longer available. This allows applications to save state or gracefully shut down.
You want to use Spot Instances to save costs but ensure your application remains highly available. Which architectural pattern best supports this goal?
Consider how to maintain availability when Spot Instances are interrupted.
Mixing Spot Instances with On-Demand Instances in an Auto Scaling group provides cost savings while maintaining availability. On-Demand Instances serve as fallback when Spot Instances are interrupted.
Which AWS service or feature allows you to automatically handle Spot Instance interruptions by launching replacement instances?
Think about automated scaling and instance replacement features.
EC2 Auto Scaling groups with mixed instances policies can automatically replace interrupted Spot Instances by launching new ones, maintaining desired capacity.
What is a key security best practice when using Spot Instances in your AWS environment?
Consider how to protect instances that may be interrupted or replaced frequently.
Using dedicated security groups with restricted network access limits exposure and protects Spot Instances, which can be interrupted and replaced frequently.
How long before AWS terminates a Spot Instance does it provide an interruption notice, and how can you detect it programmatically?
Recall the exact timing and how AWS exposes interruption notices to instances.
AWS provides a two-minute interruption notice accessible via the instance metadata service at a specific URL. Applications can poll this URL to detect imminent termination.