
Answer-first summary for fast verification
Answer: Transfer the MySQL database to Amazon Aurora, use an AMI for the web application in a launch template, establish an Auto Scaling group with a Spot Fleet, and connect it to an Application Load Balancer.
Option D provides the most comprehensive and cost-effective solution to scale the application seamlessly. By migrating the database to Amazon Aurora MySQL, the application benefits from Aurora's high performance and scalability. Using an AMI of the web application in a launch template allows for easy replication. Setting up an Auto Scaling group ensures that the application can automatically scale in response to demand. Additionally, leveraging a Spot Fleet reduces costs significantly. Finally, attaching an Application Load Balancer ensures that traffic is efficiently distributed among the instances. Together, these actions address performance issues, provide scalability, and optimize costs.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company's website analytics application, hosted on a single EC2 On-Demand Instance with integrated PHP software and MySQL database, is experiencing performance issues and 5xx errors during peak times. Identify the most cost-effective solution to enable seamless scaling.
A
Migrate the MySQL database to Amazon RDS, replicate the web application with an AMI, and deploy a second EC2 instance with an Application Load Balancer for load distribution.
B
Shift the MySQL database to Amazon RDS, use an AMI for the web application, launch an additional EC2 instance, and balance the load with Amazon Route 53 weighted routing.
C
Upgrade the MySQL database to Amazon Aurora, develop a Lambda function to adjust EC2 instance type upon high CPU utilization, and set an Amazon CloudWatch alarm to trigger this function at 75% CPU usage.
D
Transfer the MySQL database to Amazon Aurora, use an AMI for the web application in a launch template, establish an Auto Scaling group with a Spot Fleet, and connect it to an Application Load Balancer.
No comments yet.