AWS Certified Solutions Architect – Associate (SAA-C03) — Question 136

A company hosts a website analytics application on a single Amazon EC2 On-Demand Instance. The analytics software is written in PHP and uses a MySQL database. The analytics software, the web server that provides PHP, and the database server are all hosted on the EC2 instance. The application is showing signs of performance degradation during busy times and is presenting 5xx errors. The company needs to make the application scale seamlessly.
Which solution will meet these requirements MOST cost-effectively?

Answer options

Correct answer: D

Explanation

The correct answer is D because migrating the database to Amazon Aurora MySQL and using an Auto Scaling group allows the application to scale automatically based on demand, ensuring cost efficiency. Options A and B involve using additional EC2 instances but do not provide automatic scaling. Option C suggests stopping the EC2 instance, which does not effectively solve the performance issues during peak loads.