AWS Certified Solutions Architect Professional SAP-C02 Practice Question
Your team runs a stateless microservice on Amazon EC2 instances that are managed by a single Auto Scaling group. The group uses a mixed instances policy: 70% Spot Instances and 30% On-Demand Instances, balanced across three Availability Zones. During a recent Spot capacity shortage, several instances received an EC2 instance rebalance recommendation and were terminated two minutes later. For several minutes, the service ran below its desired capacity until replacement instances finished launching, breaching the SLA. You must improve reliability so that new capacity is launched before a Spot instance that is at elevated risk of interruption is terminated, without adding custom automation or permanently increasing the group's size. Which change best meets these requirements?
Add an EC2_INSTANCE_TERMINATING lifecycle hook that invokes an AWS Lambda function to launch a replacement instance.
Enable Capacity Rebalancing on the Auto Scaling group.
Create a predictive scaling policy so the Auto Scaling group launches capacity based on forecasted demand patterns.
Increase the Auto Scaling group's minimum capacity by one instance in each Availability Zone.
Enabling Capacity Rebalancing causes EC2 Auto Scaling to monitor for the EC2 instance rebalance recommendation that Spot Instances receive when they are at elevated risk of interruption. When the signal is detected, Auto Scaling launches a replacement Spot Instance and waits for it to pass health checks before terminating the at-risk instance. To ensure this process is not blocked by capacity limits, Auto Scaling can temporarily exceed the group's maximum size by a margin (by default, 10% of the desired capacity). This proactive replacement keeps the group at or above its desired capacity and requires only a single setting change.
A lifecycle hook for the EC2_INSTANCE_TERMINATING state is reactive, as it triggers when the instance is already being terminated, not when the earlier rebalance recommendation is issued. Raising the minimum capacity adds fixed cost and does not guarantee proactive replacement. Predictive scaling launches capacity based on historical demand patterns; it does not respond to real-time Spot rebalance events and therefore cannot guarantee capacity during unexpected interruptions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Capacity Rebalancing in Auto Scaling groups?
Open an interactive chat with Bash
How does enabling Capacity Rebalancing differ from using lifecycle hooks?
Open an interactive chat with Bash
Why is predictive scaling unsuitable for handling Spot capacity shortages?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Continuous Improvement for Existing Solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .