AWS Certified DevOps Engineer – Professional — Question 141

A company is running an application on Amazon EC2 instances. A DevOps engineer needs to aggregate the application logs to a central system for the company's application team to search. A critical error message periodically appears in the log files. The DevOps engineer needs to notify the application team by email when these error messages occur.

Which solution will meet these requirements in the MOST operationally efficient manner?

Answer options

Correct answer: A

Explanation

Option A is the most operationally efficient solution as it uses the unified Amazon CloudWatch agent to publish logs directly to a CloudWatch log group, which simplifies the process of detecting critical errors and notifying the team via SNS. Options B and C introduce additional complexity by using Kinesis or AWS X-Ray, which are not necessary for this requirement. Option D adds OpenSearch Service, which complicates the architecture without providing extra value for log aggregation and alerting.