
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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?
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.
Explanation:
Correct Answer: D
Why D is correct:
Why other options are incorrect:
A: T3 instances are burstable performance instances, which are less suitable for memory-intensive workloads than R5 instances. Making changes via the AWS Management Console instead of CloudFormation reduces operational efficiency and repeatability.
B: While Auto Scaling helps with scaling, it doesn't address the core issue of using inappropriate instance types for memory-intensive workloads. Manual capacity adjustments are not operationally efficient.
C: While switching to R5 instances addresses the memory issue, relying only on built-in EC2 memory metrics doesn't provide application-level latency metrics needed for proper capacity planning of this specific application.
Key AWS Concepts: