Q96 — AWS SAA-C03 Ch.13

Question 96 of 100 | ← Chapter 13

Q996. A company recently migrated a monolithic application to an Amazon EC2 instance and Amazon RDS. The application has tightly coupled modules. The existing design of the application gives the application the ability to run on only a single EC2 instance.The company has noticed high CPU utilization on the EC2 instance during peak usage times. The high CPU utilization corresponds to degraded performance on Amazon RDS for read requests. The company wants to reduce the high CPU utilization and improve read request performance.Which solution will meet these requirements?

Correct Answer: A. Resize the EC2 instance to an EC2 instance type that has more CPU capacity. Configure an Auto Scaling group with a minimum and maximum size of 1. Configure an RDS read replica for read requests.

Explanation

To reduce high CPU utilization on the Amazon EC2 instance and improve read request performance on Amazon RDS, the best solution is:A. Resize the EC2 instance to an EC2 instance type that has more CPU capacity. Configure an Auto Scaling group with a minimum and maximum size of 1. Configure an RDS read replica for read requests.Explanation:Resize the EC2 Instance: Increasing the instance type to one with more CPU capacity addresses the immediate issue of high CPU utilization on the EC2 instance, which can alleviate performance degradation.Auto Scaling Group: Setting up an Auto Scaling group with a minimum and maximum size of 1 allows for future scalability. Although it currently maintains a single instance, it prepares the architecture for potential horizontal scaling if needed in the future.RDS Read Replica: Configuring an RDS read replica allows read requests to be offloaded from the primary RDS instance. This can significantly improve read performance since the read replica can handle read traffic, thereby reducing the load on the primary database.Evaluation of Other Options:B. Resize the EC2 instance... redirect all read/write traffic to the replica: This option is flawed because write traffic cannot be directed to a read replica; it can only handle read requests. Therefore, it does not address the need for write operations.C. Configure an Auto Scaling group with a minimum size of 1 and maximum size of 2... resize the RDS DB instance: While this option suggests scaling the RDS instance, it does not specifically address offloading read requests or improving performance with a read replica. It also does not provide a solution for the immediate CPU utilization issue on the EC2 instance.D. Resize the EC2 instance... resize the RDS DB instance: Similar to Option C, this does not utilize a read replica. Simply resizing the RDS instance may help, but without addressing the read load through a replica, it may not effectively resolve the performance degradation seen during peak times.In summary, Option A provides a balanced approach to addressing the high CPU utilization on the EC2 instance while simultaneously improving read performance on the RDS instance through the use of an RDS read replica.