Which solution will meet this requirement?
Create an Amazon Simple Notification Service (Amazon SNS) topic with an email subscription for each developer. Create an Amazon CloudWatch alarm by using the Errors metric and the Lambda function name as a dimension. Configure the alarm to send a notification to the SNS topic when the alarm state reaches ALARM.
Create an Amazon Simple Notification Service (Amazon SNS) topic with a mobile subscription for each developer. Create an Amazon EventBridge (Amazon CloudWatch Events) alarm by using the LambdaError as the event pattern and the SNS topic name as a resource. Configure the alarm to send a notification to the SNS topic when the alarm state reaches ALARM.
Verify each developer email address in Amazon Simple Email Service (Amazon SES). Create an Amazon CloudWatch rule by using the LambdaError metric and developer email addresses as dimensions. Configure the rule to send an email through Amazon SES when the rule state reaches ALARM.
Verify each developer mobile phone in Amazon Simple Email Service (Amazon SES). Create an Amazon EventBridge (Amazon CloudWatch Events) rule by using Error as the event pattern and the Lambda function name as a resource. Configure the rule to send a push notification through Amazon SES when the rule state reaches ALARM.
Explanations:
This option correctly sets up an SNS topic for email notifications to developers. It uses a CloudWatch alarm based on the Errors metric of the Lambda function to trigger notifications when errors occur, which meets the requirement for immediate alerts.
This option incorrectly suggests using Amazon EventBridge for error notifications from Lambda. Although EventBridge can handle events, it is not designed to monitor Lambda errors directly. Additionally, a mobile subscription is not appropriate for immediate error notifications.
This option involves using Amazon SES for email notifications, which is unnecessary since SNS is more suitable for this purpose. Moreover, it mentions using CloudWatch rules with LambdaError, which does not accurately correlate with how CloudWatch handles Lambda function metrics.
This option incorrectly attempts to use SES for mobile notifications, which is not viable. It also misuses EventBridge and does not align with the requirement of notifying developers immediately upon Lambda function errors, as SES is not the right service for real-time alerts.