Question 629:
Your organization uploads relatively large compressed files ranging between 100MB – 200MB in size to AWS S3 bucket. Once uploaded, they are looking to calculate the total number objects in the compressed file and add the total count as a metadata to the compressed file in AWS S3. They approached you for a cost-effective solution. You have recommended using AWS Lambda through S3 event notifications to perform this operation. However, they were concerned about failures as S3 event notification is an asynchronous one-time trigger and Lambda can fail due to operation time outs, max memory limits, max execution time limits etc. What is the best retry approach you recommend?
Answer options:
A.All the failed events will be logged to CloudWatch. You can manually retrigger failed events. B.Configure Dead-letter queue with SQS. Configure SQS to trigger Lambda function again. C.All failures will be caught during exception inside Lambda function. Trigger lambda function inside lambda function code to process failed event. D.Enable Active tracing using AWS X-Ray. It will automatically retrigger failed events.