
Answer-first summary for fast verification
Answer: Deploy the Amazon CloudWatch agent across EC2 instances to aggregate logs in CloudWatch.
The correct answer is D. Installing the unified Amazon CloudWatch agent on the EC2 instances and configuring it to push the application logs to CloudWatch offers a minimally invasive solution. This approach preserves the high availability and existing infrastructure of the application while providing a straightforward method for centralized log collection and review. There is no need to refactor the application or significantly alter the architecture, making it the most suitable option among the choices provided.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a developer minimize changes to an existing Python-based, highly available ecommerce website running on multiple EC2 instances to enable centralized server log review?
A
Refactor the application for AWS Lambda and utilize Amazon CloudWatch for log management.
B
Implement centralized logging with Amazon OpenSearch Service integrated with Logstash and OpenSearch Dashboards.
C
Consolidate the application onto a single, larger EC2 instance to simplify log recording.
D
Deploy the Amazon CloudWatch agent across EC2 instances to aggregate logs in CloudWatch.
No comments yet.