AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 273

A company runs a website by using an Amazon Elastic Container Service (Amazon ECS) service that is connected to an Application Load Balancer (ALB). The service was in a steady state with tasks responding to requests successfully.

A DevOps engineer updated the task definition with a new container image and deployed the new task definition to the service. The DevOps engineer noticed that the service is frequently stopping and starting new tasks because the ALB healtth checks are failing.

What should the DevOps engineer do to troubleshoot the failed deployment?

Answer options

Correct answer: B

Explanation

Increasing the ALB health check grace period allows the newly launched containers sufficient time to complete their initialization before the ALB begins evaluating their health, preventing premature task termination. Option A is incorrect because the security groups were already correctly configured during the steady state. Options C and D are incorrect because they do not address container startup latency, and decreasing the health check interval would actually cause tasks to fail health checks even faster.