Design Resilient Architectures

An Amazon ECS web application must maintain six running tasks and automatically replace failed tasks. Deployments must retain at least six healthy tasks while allowing up to twelve tasks; which configuration meets these requirements?

Show the answer

Correct answerB. Create an ECS service with desired count 6, minimum healthy percent 100, and maximum percent 200.

AWhy not this: A load balancer checks health and routes traffic but does not restart standalone ECS tasks.

BWhy this is right: The service maintains six tasks, while the deployment percentages permit six healthy tasks and twelve total.

CWhy not this: Scheduled launches do not continuously maintain a desired number of running tasks.

DWhy not this: A 50% minimum healthy setting permits only three healthy tasks during deployment.

An ECS service maintains the desired task count and replaces failed tasks. For rolling deployments, 100% minimum healthy and 200% maximum allow six healthy tasks and up to twelve total; a 50% minimum permits the healthy count to fall below six.