AWS Certified Solutions Architect Professional SAP-C02 Practice Question
A company is migrating a stateless Java microservice that is packaged as a Docker image and currently runs behind an NGINX reverse proxy on-premises. The new AWS architecture must (1) run the containers without any server, cluster, or patch management; (2) automatically scale in and out according to HTTP request load through an Application Load Balancer; (3) support blue/green deployments across development, staging, and production AWS accounts with minimal downtime; and (4) require the least possible container-orchestration expertise from developers. Which compute service architecture best satisfies these requirements?
Create an Amazon EC2 Auto Scaling group that starts Docker containers via user data and front the group with an Application Load Balancer for scaling and deployments.
Deploy the containers on Amazon EKS running on AWS Fargate, use the AWS Load Balancer Controller for traffic routing, and manage scaling and blue/green releases with Kubernetes tooling.
Use AWS Elastic Beanstalk with the Docker platform, place the environment behind an Application Load Balancer, and perform blue/green environment swaps during releases.
Run the microservice as an Amazon ECS service that uses the Fargate launch type behind an Application Load Balancer and use AWS CodeDeploy for blue/green deployments.
Running the service as an Amazon ECS service that uses the Fargate launch type meets every requirement. Fargate is a serverless compute engine for containers, so there are no EC2 instances or clusters to provision, patch, or scale. An ECS service integrates natively with an Application Load Balancer and supports Service Auto Scaling based on ALB request count or other CloudWatch metrics. Blue/green deployments are fully supported for ECS services- including Fargate tasks- through AWS CodeDeploy, which can shift traffic between task sets with minimal downtime.
Amazon EKS on Fargate removes node management but still requires Kubernetes knowledge, controller add-ons, and manifest management, increasing operational complexity. Elastic Beanstalk's Docker platform automates many tasks but still launches and patches EC2 instances and provides fewer container-level deployment controls. An EC2 Auto Scaling group with user-data scripts offers the most operational burden because the company must manage servers, scaling policies, and deployments. Therefore, the ECS-with-Fargate option is the optimal choice.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon ECS and how does Fargate simplify container management?
Open an interactive chat with Bash
How does AWS CodeDeploy enable blue/green deployments for ECS services?
Open an interactive chat with Bash
Why is Amazon EKS on Fargate considered more complex compared to ECS with Fargate?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Accelerate Workload Migration and Modernization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access