An Amazon ECS cluster uses an EC2 Auto Scaling capacity provider with managed scaling enabled and runs only replica-service tasks. The company requires approximately 20% spare instance capacity and protection against terminating instances with running tasks during managed scale-in; which changes meet these requirements? (Choose two.)
Choose 2 answers
Show the answer
Correct answersC. Enable managed termination protection and Auto Scaling instance scale-in protection.D. Set the capacity provider target capacity to 80%.
AWhy not this: Managed draining coordinates task shutdown but does not provide the required protection from scale-in selection.
BWhy not this: A CPU policy does not preserve the requested task-placement headroom or provide task-aware termination protection.
CWhy this is right: Managed termination protection uses instance scale-in protection to protect instances that are running tasks.
DWhy this is right: A target capacity of 80% leaves approximately 20% of instance capacity available as spare capacity.
EWhy not this: Target capacity cannot exceed 100%; additional headroom requires a value below 100%.
A target capacity of 80% reserves approximately 20% spare capacity. Managed termination protection requires Auto Scaling instance scale-in protection and protects instances running tasks; managed draining alone coordinates task shutdown rather than preventing selection for termination.