An EC2 Auto Scaling group uses CPU target tracking and an Application Load Balancer; instances require variable-length bootstrap before receiving traffic, followed by 180 seconds of elevated initialization CPU. Which configuration waits for bootstrap completion and excludes the subsequent initialization CPU from aggregated scaling metrics?
Show the answer
Correct answerA. A launch lifecycle hook completed after bootstrap, plus 180-second default instance warmup
AWhy this is right: The hook gates entry into service, and default instance warmup excludes initialization metrics after entry.
BWhy not this: The hook gates entry into service, but default cooldown does not provide target tracking's per-instance metric exclusion.
CWhy not this: Warmup excludes initialization metrics, but neither setting waits for a variable-length bootstrap to finish before service entry.
DWhy not this: The hook gates entry into service, but health check grace periods do not exclude CPU metrics from scaling calculations.
A launch lifecycle hook holds an instance before it enters service until bootstrap completes. Default instance warmup then excludes its initialization metrics from aggregated scaling metrics; health check grace periods delay health-based replacement, not metric inclusion.