
Answer-first summary for fast verification
Answer: Configure EC2 instances to send logs to Amazon CloudWatch Logs using the unified CloudWatch agent.
The correct answer is B. Configuring EC2 instances to send logs to Amazon CloudWatch Logs using the unified CloudWatch agent ensures that all logs are centrally collected and stored, even after instances are terminated due to scaling in. This solution allows the development team to access and analyze the application logs at any time, providing valuable insights to enhance the application's performance. Options A, C, and D do not directly address the issue of log availability after instances are scaled in.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company deploys its application on Amazon EC2 instances behind an Application Load Balancer (ALB), with instances managed by an Auto Scaling group. The application experiences unpredictable workloads, leading to frequent scaling of instances. The development team aims to analyze application logs to enhance performance, but encounters issues as logs are lost post-scale-in. What solution enables the team to access these logs post-scale-in?
A
Enable access logs for the ALB and store them in an Amazon S3 bucket.
B
Configure EC2 instances to send logs to Amazon CloudWatch Logs using the unified CloudWatch agent.
C
Adjust the Auto Scaling group to implement a step scaling policy.
D
Implement AWS X-Ray tracing for the application.
No comments yet.