Question 465:
You use an ECS cluster to host a web application with an Application Load Balancer. You also build a pipeline to perform the rolling update of the ECS service using the AWS ECS CLI command “ecs-cli compose”. Everytime when you update the ECS service with a new task, it takes 5 minutes for the old ECS task to drain the connections before the task is stopped. There is a requirement to increase the timer to 10 minutes. How would you achieve this requirement?
Answer options:
A.Click the ECS service in the AWS Console and check the timeout of connection draining in the Deployment tab. Modify the timeout from 5 minutes to 10 minutes. B.Click the Application Load Balancer used by the ECS cluster in the AWS Console and modify its default draining timer from 5 minutes to 10 minutes. C.Find the target group of the Application Load Balancer used by the ECS cluster and check the value of Deregistration delay. Increase the value to 600 seconds (10 minutes). D.In the ECS CLI command “ecs-cli compose”, add the option “--Deregistration delay=600” to increase the default timer of connection draining.