AWS Certified Solutions Architect – Professional (SAP-C02) — Question 378

A company migrated an application to the AWS Cloud. The application runs on two Amazon EC2 instances behind an Application Load Balancer (ALB).
Application data is stored in a MySQL database that runs on an additional EC2 instance. The application's use of the database is read-heavy.

The application loads static content from Amazon Elastic Block Store (Amazon EBS) volumes that are attached to each EC2 instance. The static content is updated frequently and must be copied to each EBS volume.

The load on the application changes throughout the day. During peak hours, the application cannot handle all the incoming requests. Trace data shows that the database cannot handle the read load during peak hours.

Which solution will improve the reliability of the application?

Answer options

Correct answer: D

Explanation

Option D is correct because containerizing the application with Amazon ECS, AWS Fargate, and AWS Application Auto Scaling allows the application tier to scale dynamically based on demand. Amazon EFS acts as a shared, serverless file system that can be simultaneously mounted to all Fargate containers, resolving the static content synchronization issue. Migrating the database to Amazon Aurora MySQL Serverless v2 with a reader instance successfully offloads the read-heavy traffic and dynamically scales database capacity.