A developer wants to review server logs from a highly available Python web application running on multiple EC2 instances without SSHing into each instance. What change requires the LEAST modification to the application to centralize logs?
Choose an answer
Tap an option to check your answer.
Correct answer: Install the unified Amazon CloudWatch agent on each EC2 instance and configure it to send the application logs to CloudWatch..
Why this is the answer
The most efficient solution with the least application modification is to install the unified Amazon CloudWatch agent on each EC2 instance. This agent can be configured to collect application logs from specified file paths and stream them to CloudWatch Logs. This centralizes logs without requiring changes to the Python application code itself. Refactoring to AWS Lambda is a significant architectural change, not a minimal modification. Building a custom logging solution with OpenSearch Service, Logstash, and Dashboards is a complex, time-consuming project that involves setting up and managing multiple services. Consolidating to a single EC2 instance sacrifices high availability, which is a core requirement of the application.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed