AWS Certified Solutions Architect – Associate (SAA-C03) — Question 241
A company’s application is having performance issues. The application is stateful and needs to complete in-memory tasks on Amazon EC2 instances. The company used AWS CloudFormation to deploy infrastructure and used the M5 EC2 instance family. As traffic increased, the application performance degraded. Users are reporting delays when the users attempt to access the application.
Which solution will resolve these issues in the MOST operationally efficient way?
Answer options
- A. Replace the EC2 instances with T3 EC2 instances that run in an Auto Scaling group. Make the changes by using the AWS Management Console.
- B. Modify the CloudFormation templates to run the EC2 instances in an Auto Scaling group. Increase the desired capacity and the maximum capacity of the Auto Scaling group manually when an increase is necessary.
- C. Modify the CloudFormation templates. Replace the EC2 instances with R5 EC2 instances. Use Amazon CloudWatch built-in EC2 memory metrics to track the application performance for future capacity planning.
- D. Modify the CloudFormation templates. Replace the EC2 instances with R5 EC2 instances. Deploy the Amazon CloudWatch agent on the EC2 instances to generate custom application latency metrics for future capacity planning.
Correct answer: D
Explanation
The correct answer is D because replacing the EC2 instances with R5 instances and deploying the Amazon CloudWatch agent allows for custom metrics that provide deeper insights into application latency, which aids in future capacity planning. Option A does not address the memory requirements, while option B lacks the automation benefits of an Auto Scaling group. Option C does not generate custom metrics, which are crucial for understanding performance issues.