AWS Certified Developer – Associate (DVA-C02) — Question 358

A company runs a critical application on Amazon Elastic Container Service (Amazon ECS) by using Amazon EC2 instances. The company needs to migrate the application to Amazon ECS on AWS Fargate. A developer is configuring Fargate and the ECS capacity providers to make the change.

Which solution will meet these requirements with the LEAST downtime during migration?

Answer options

Correct answer: A

Explanation

The PutClusterCapacityProviders API operation is used to associate capacity providers with an existing ECS cluster, as FARGATE and FARGATE_SPOT are already created by AWS and do not need to be created via CreateCapacityProvider. Since the application is critical, FARGATE should be set as the primary provider with a base value to ensure reliable capacity, while FARGATE_SPOT is used as the secondary provider to handle additional load.