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
- A. Enable Amazon CloudWatch Logs to log the EKS components. Create a CloudWatch subscription filter for each component with Lambda as the subscription feed destination.
- B. Enable Amazon CloudWatch Logs to log the EKS components. Create CloudWatch Logs Insights queries linked to Amazon EventBridge events that invoke Lambda.
- C. Enable Amazon S3 logging for the EKS components. Configure an Amazon CloudWatch subscription filter for each component with Lambda as the subscription feed destination.
- D. Enable Amazon S3 logging for the EKS components. Configure S3 PUT Object event notifications with AWS Lambda as the destination.
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.