A developer is using an AWS Lambda function to process incoming files and store processed data in a database. The Lambda function is triggered by new objects created in an Amazon S3 bucket. The developer needs to ensure that in case of processing failures, the event messages are captured for analysis and retry. Which AWS service should they configure as the target for failed processing events?
Configure an Amazon Simple Queue Service (SQS) queue as a dead-letter queue for the Lambda function.
Configure an Amazon Simple Notification Service (SNS) topic as a dead-letter queue for the Lambda function.
Direct the Lambda function to write all failed event messages to a designated Amazon S3 bucket.
Set up Amazon CloudWatch to capture logs for failed Lambda invocations.