Q18 — AWS DOP-C02 Ch.3

Question 18 of 100 | ← Chapter 3

A company has migrated a container-based application to Amazon EKS and wants to set up automated email notifications. Each email address should receive notifications for specific activities related to EKS components. The solution will include an Amazon SNS topic and an AWS Lambda function to evaluate individual log events and publish messages to the correct SNS topic. Which logging solution supports these requirements?

Correct Answer: A. Enable Amazon CloudWatch Logs to log EKS components. Use Lambda as a subscription filter destination to create a CloudWatch Logs subscription filter for each component.

Explanation

Option A is correct. Enabling Amazon CloudWatch Logs to capture EKS component logs allows collection of relevant log data. Using Lambda as a subscription filter destination enables filtering and processing of specific log events per component, then publishing messages to the appropriate SNS topic—fulfilling the requirement for targeted email notifications based on specific activities. Option B introduces unnecessary complexity via EventBridge. Options C and D rely on S3 logging, which is not suitable for real-time, activity-specific notification use cases involving EKS components.