Topic 1 Question 393
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?
Use the PutClusterCapacityProviders API operation to associate the ECS cluster with the FARGATE and FARGATE_SPOT capacity provider strategies. Use FARGATE as Provider 1 with a base value. Use FARGATE_SPOT as Provider 2 for failover.
Use the CreateCapacityProvider API operation to associate the ECS cluster with the FARGATE and FARGATE_SPOT capacity provider strategies. Use FARGATE as Provider 1 with a base value. Use FARGATE_SPOT as Provider 2 for failover.
Use the PutClusterCapacityProviders API operation to associate the ECS cluster with the FARGATE and FARGATE_SPOT capacity provider strategies. Use FARGATE_SPOT as Provider 1 with a base value. Use FARGATE as Provider 2 for failover.
Use the CreateCapacityProvider API operation to associate the ECS cluster with the FARGATE and FARGATE_SPOT capacity provider strategies. Use FARGATE_SPOT as Provider 1 with a base value. Use FARGATE as Provider 2 for failover.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: A
By following Option A, you ensure that your ECS tasks are reliably running on Fargate, with minimal downtime during the migration process. This strategy leverages the reliability of Fargate and the cost-effectiveness of Fargate Spot for non-critical workloads.
👍 3Alabi2024/06/29 - 正解だと思う選択肢: A
Provision with PutClusterCapacityProviders API aws ecs put-cluster-capacity-providers --cluster your-cluster-name --capacity-providers FARGATE FARGATE_SPOT --default-capacity-provider-strategy capacityProvider=FARGATE,base=1,weight=1 capacityProvider=FARGATE_SPOT,weight=1
Update ECS aws ecs update-service --cluster your-cluster-name --service your-service-name --force-new-deployment
👍 2albert_kuo2024/07/27
シャッフルモード