An Auto Scaling group launches instances that must retrieve incident-response configuration before serving traffic; initialization time varies. Which approach prevents instances from entering service until initialization explicitly reports success?
Show the answer
Correct answerB. Configure a launch lifecycle hook and complete the lifecycle action after initialization.
AWhy not this: A health check grace period suppresses certain health-based replacement decisions; it does not hold an instance out of service.
BWhy this is right: A launch lifecycle hook provides a wait state that initialization can explicitly complete before the instance enters service.
CWhy not this: Instance warmup controls how new instances affect scaling calculations, not explicit initialization approval.
DWhy not this: A scaling cooldown limits subsequent scaling activity; publishing a metric does not release a launch wait state.
A launch lifecycle hook holds instances in Pending:Wait until the lifecycle action is completed, subject to its timeout. A health check grace period delays health-based replacement but does not gate entry into service on initialization success.