Q65 — AWS SAP-C02 Ch.2

Question 65 of 75 | ← Chapter 2

Q215. A company is developing a new on-demand video application that is based on microservices. The application will have 5 million users at launch and will have 30 million users after 6 months. The company has deployed the application on Amazon Elastic Container Service (Amazon ECS) on AWS Fargate The company developed the application by using ECS services that use the HTTPS protocol. A solutions architect needs to implement updates to the application by using blue/green deployments. The solution must distribute traffic to each ECS service through a load balancer. The application must automatically adjust the number of tasks in response to an Amazon CloudWatch alarm. Which solution will meet these requirements?

Correct Answer: D. Configure the ECS services to use the blue/green deployment type and an Application Load Balancer. Implement Service Auto Scaling for each ECS service.

Explanation

Option A suggests configuring the ECS services to use a Network Load Balancer, but this option is not compatible with the blue/green deployment type and does not provide automatic scaling. Option B suggests implementing an Auto Scaling group for each ECS service using the Cluster Autoscaler and a Network Load Balancer, but this option is not compatible with the blue/green deployment type and can add complexity to the deployment process. Option C suggests configuring the ECS services to use an Application Load Balancer and implementing an Auto Scaling group for each ECS service using the Cluster Autoscaler, but this option does not provide support for blue/green deployments. Therefore, option D provides the most suitable solution by configuring the ECS services to use the blue/ green deployment type and an Application Load Balancer, which provides traffic distribution and automatic scaling functionality. Service Auto Scaling can be implemented to automatically adjust the number of tasks in response to an Amazon CloudWatch alarm. This approach ensures that the application can handle the expected increase in users and provides a seamless deployment process while also ensuring efficient resource utilization.