AWS Certified DevOps Engineer – Professional — Question 5

An application has microservices spread across different AWS accounts and is integrated with an on-premises legacy system for some of its functionality.
Because of the segmented architecture and missing logs, every time the application experiences issues, it is taking too long to gather the logs to identify the issues. A DevOps Engineer must fix the log aggregation process and provide a way to centrally analyze the logs.
Which is the MOST efficient and cost-effective solution?

Answer options

Correct answer: D

Explanation

The correct answer is D because it centralizes log storage in an S3 bucket while also leveraging AWS Lambda for automated analysis and Amazon Athena for querying, making it efficient and scalable. Options A, B, and C either complicate the log retrieval process or do not provide centralized analysis capabilities, leading to inefficiencies in addressing application issues.