AWS Certified Solutions Architect – Professional — Question 681

A retail company runs a business-critical web service on an Amazon Elastic Container Service (Amazon ECS) cluster that runs on Amazon EC2 instances. The web service receives POST requests from end users and writes data to a MySQL database that runs on a separate EC2 instance. The company needs to ensure that data loss does not occur.
The current code deployment process includes manual updates of the ECS service. During a recent deployment, end users encountered intermittent 502 Bad
Gateway errors in response to valid web requests.
The company wants to implement a reliable solution to prevent this issue from recurring. The company also wants to automate code deployments. The solution must be highly available and must optimize cost-effectiveness.
Which combination of steps will meet these requirements? (Choose three.)

Answer options

Correct answer: A, C, F

Explanation

Implementing AWS CodePipeline and AWS CodeDeploy for a blue/green deployment on AWS Fargate (A) provides automated, zero-downtime deployments with validation testing, which eliminates the 502 Bad Gateway errors. Utilizing an Amazon SQS queue coupled with AWS Lambda (C) effectively decouples the web service from the database, buffering incoming POST requests to guarantee no data is lost during traffic spikes or database updates. Migrating the database to a Multi-AZ Amazon RDS for MySQL instance using gp3 storage (F) ensures high availability and cost-effectiveness, unlike the more expensive io2 storage option.