A SysOps administrator must create a solution that immediately notifies software developers if an AWS Lambda function experiences an error. Which solution will meet this requirement?
A.
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.
B.
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.
C.
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.
D.
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.
Not C or D as SES is used for marketing emails.
Leaves us with A or B.
With B AWS config, Cloudtrail or Cloudwatch can be the source no a SNS topic.
A seems the best reasonable solution
Everyone seems to choose A. without a second thought, and there is a default metric for Lambda invocation errors. However, this doesn't deal with the alarms that Lambda may generate while running. Dealing with this requires CloudWatch logs to use patterns such as ?ERROR to parse the log files and generate an alert. Since the question doesn't seem that exotic or specific, "A." is probably the right choice, but this is a tricky question. If you think it isn't, read: https://aws.amazon.com/blogs/mt/get-notified-specific-lambda-function-error-patterns-using-cloudwatch/
the question doesnt ask how to deal with the error/alarm. It just mentioned that someone needs notified when an error occurs. Once notified they can view the logs and resolve the error. Now ideally, yes, it should be a log subscription which would notify and send details about what caused the error, but the question did not ask for this
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ovilla
Highly Voted 2 years, 6 months agoby116549
Highly Voted 2 years, 2 months agowillows
Most Recent 5 months, 3 weeks agotamng
10 months agojipark
1 year, 2 months agoGomer
1 year, 7 months agoeboehm
1 year, 3 months agomichaldavid
1 year, 10 months agoLiongeek
1 year, 11 months agoFinger41
2 years, 5 months agopsou7
2 years, 5 months ago