An Amazon ECS rolling deployment replaces new tasks after load balancer health checks fail, although application logs show normal startup takes 90 seconds. Container health checks pass, but the service health check grace period is zero; which change BEST addresses the failure?
Show the answer
Correct answerA. Set the service health check grace period to 120 seconds.
AWhy this is right: The grace period lets the application finish startup before ECS acts on unhealthy load balancer results.
BWhy not this: Deregistration delay drains requests from departing targets; it does not protect newly starting tasks.
CWhy not this: The container start period affects container health checks, not the failing load balancer health checks.
DWhy not this: The minimum healthy percentage controls deployment capacity, not tolerance for startup health check failures.
The service health check grace period prevents ECS from replacing newly started tasks because of load balancer health check failures during startup. The container health check start period affects container health checks, which already pass.