Q48 — AWS SAA-C03 Ch.3
Question 48 of 65 | ← Chapter 3
Q178. A company is building a containerized application on premises and decides to move the application to AWS. The application will have thousands of users soonafter it is deployed. The company is unsure how to manage the deployment of containers at scale. The company needs to deploy the containerized application ina highly available architecture that minimizes operational overhead.Which solution will meet these requirements?
- A. Store container images in an Amazon Elastic Container Registry (Amazon ECR) repository. Use an Amazon Elastic Container Service (Amazon ECS) cluster with the AWS Fargate launch type to run the containers. Use target tracking to scale automatically based on demand. ✓
- B. Store container images in an Amazon Elastic Container Registry (Amazon ECR) repository. Use an Amazon Elastic Container Service (Amazon ECS) cluster with the Amazon EC2 launch type to run the containers. Use target tracking to scale automatically based on demand.
- C. Store container images in a repository that runs on an Amazon EC2 instance. Run the containers on EC2instances that are spread across multiple Availability Zones. Monitor the average CPU utilization in Amazon CloudWatch. Launch new EC2 instances as needed.
- D. Create an Amazon EC2 Amazon Machine Image (AMI) that contains the container image. Launch EC2instances in an Auto Scaling group across multiple Availability Zones. Use an Amazon CloudWatch alarm to scale out EC2 instances when the average CPU utilization threshold is breached.
Correct Answer: A. Store container images in an Amazon Elastic Container Registry (Amazon ECR) repository. Use an Amazon Elastic Container Service (Amazon ECS) cluster with the AWS Fargate launch type to run the containers. Use target tracking to scale automatically based on demand.
Explanation
To deploy a containerized application in a highly available architecture that minimizes operational overhead and meets the requirement of scaling automatically based on demand, a company should store container images in an Amazon Elastic Container Registry (Amazon ECR) repository. The company can then use an Amazon Elastic Container Service (Amazon ECS) cluster with the AWS Fargate launch type to run the containers and use target tracking to scale automatically based on demand. Therefore, option A is the correct answer.Option B suggests using the Amazon EC2 launch type instead of AWS Fargate to run the containers. While this approach could work, it may require more operational overhead compared to using AWS Fargate.Option C suggests storing container images in a repository that runs on an Amazon EC2 instance and running the containers on EC2 instances that are spread across multiple Availability Zones. This approach requires more configuration management and may not provide the desired scalability and elasticity compared to using Amazon ECS with the AWS Fargate launch type.Option D suggests creating an Amazon EC2 Amazon Machine Image (AMI) that contains the container image and launching EC2 instances in an Auto Scaling group across multiple Availability Zones. While this approach provides scalability and high availability, it requires more operational overhead compared to using Amazon ECS with the AWS Fargate launch type.Using an Amazon ECS cluster with the AWS Fargate launch type provides a fully managed service for deploying and running containers at scale without requiring any server or cluster management. Storing container images in Amazon ECR enables secure and easy management of container images. Using target tracking in Amazon ECS enables automatic scaling based on demand, which reduces operational overhead and ensures high availability of the application. This approach meets the requirements stated in the question.