AWS Certified SysOps Administrator – Associate (legacy) — Question 662
An image processing system runs asynchronously on AWS Lambda. A SysOps administrator is configuring a Lambda function to notify developers when an image falls to process after three attempts. The SysOps administrator has created an Amazon Simple Notification Service (Amazon SNS) topic to notify the developers.
Which additional action should the SysOps administrator take to meet this requirement?
Answer options
- A. Configure an Amazon CloudWatch alarm for errors from the Lambda function, which notifies the Amazon SNS topic.
- B. Implement a dead-letter queue targeting the Amazon SNS topic.
- C. Modify the Lambda function code to publish failed orders to the Amazon SNS topic before exiting.
- D. Subscribe to Lambda function error notifications from the AWS Personal Health Dashboard.
Correct answer: A
Explanation
Configuring an Amazon CloudWatch alarm to monitor the Lambda function's error metrics and trigger the Amazon SNS topic is the most effective way to alert developers of execution failures. Modifying the function code is unnecessary and adds operational overhead, while the AWS Personal Health Dashboard is designed for AWS service-wide events rather than individual application-level execution errors.