Learn how to implement blue/green deployments, Application Load Balancer, and Service Auto Scaling for an on-demand video application on Amazon ECS to handle high user traffic and automatic scaling.
Table of Contents
Question
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?
A. Configure the ECS services to use the blue/green deployment type and a Network Load Balancer. Request increases to the service quota for tasks per service to meet the demand.
B. Configure the ECS services to use the blue/green deployment type and a Network Load Balancer. Implement Auto Scaling group for each ECS service by using the Cluster Autoscaler.
C. Configure the ECS services to use the blue/green deployment type and an Application Load Balancer. Implement an Auto Scaling group for each ECS service by using the Cluster Autoscaler.
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.
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
This solution meets all the requirements:
- Blue/Green Deployments: Configuring the ECS services to use the blue/green deployment type allows for safe and controlled updates to the application by creating a new ‘green’ environment, testing it, and then seamlessly routing traffic from the ‘blue’ environment to the ‘green’ environment.
- Application Load Balancer: The Application Load Balancer is the recommended load balancer for HTTP/HTTPS traffic, providing advanced features like path-based routing, host-based routing, and content-based routing. It distributes traffic to the ECS services.
- Service Auto Scaling: Implementing Service Auto Scaling for each ECS service allows the tasks to automatically adjust based on Amazon CloudWatch alarms, such as CPU or memory usage. This ensures the application can scale to meet the demand of 30 million users after 6 months.
The other options are either incorrect or do not fully meet the requirements:
Option A is incorrect because it suggests increasing the service quota for tasks per service, which is a manual process and does not provide automatic scaling.
Option B is incorrect because the Cluster Autoscaler is used for scaling Kubernetes clusters, not ECS clusters.
Option C is partially correct, but the Cluster Autoscaler is not suitable for ECS clusters, and Service Auto Scaling is the recommended option for automatically adjusting tasks based on CloudWatch alarms.
Amazon AWS Certified Solutions Architect – Professional SAP-C02 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified Solutions Architect – Professional SAP-C02 exam and earn Amazon AWS Certified Solutions Architect – Professional SAP-C02 certification.