AWS Certified DevOps Engineer – Professional — Question 174

A company has migrated its container-based applications to Amazon EKS and want to establish automated email notifications. The notifications sent to each email address are for specific activities related to EKS components. The solution will include Amazon SNS topics and an AWS Lambda function to evaluate incoming log events and publish messages to the correct SNS topic.

Which logging solution will support these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because enabling Amazon CloudWatch Logs with a subscription filter allows for real-time monitoring of EKS components and directly routes the logs to AWS Lambda for processing. Option B is incorrect as it relies on CloudWatch Logs Insights queries, which do not directly invoke Lambda for log evaluation. Options C and D are incorrect because S3 logging does not provide the same level of integration with Lambda for log event evaluation as CloudWatch Logs does.