A company runs a critical application on Amazon ECS using EC2 instances and plans to migrate it to ECS on AWS Fargate. A developer is configuring Fargate and ECS capacity providers to minimize downtime during migration. Which configuration will accomplish this with the least downtime?
Choose an answer
Tap an option to check your answer.
Correct answer: Call PutClusterCapacityProviders to associate the cluster with FARGATE and FARGATE_SPOT, set FARGATE as Provider 1 with a base value, and use FARGATE_SPOT as Provider 2 for failover..
Why this is the answer
The correct option uses PutClusterCapacityProviders to associate existing Fargate and Fargate Spot capacity providers with the ECS cluster. This is the appropriate API call for configuring capacity providers on an existing cluster. Setting Fargate as Provider 1 with a base value ensures that a minimum number of tasks always run on the more reliable Fargate On-Demand capacity, which is crucial for a critical application. Fargate Spot as Provider 2 acts as a failover or for scaling, leveraging cost savings when available. Incorrect options: CreateCapacityProvider is used to create new custom capacity providers, not to associate existing AWS-managed ones like Fargate and Fargate Spot. Setting Fargate Spot as Provider 1 for a critical application is risky because Spot instances can be interrupted, leading to potential downtime.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed