A Lambda function needs to process messages from an SQS queue but should stop retrying a message after 3 failed attempts. What should you configure?
-
A
Set the SQS visibility timeout to match the Lambda timeout
-
B
Configure a Dead Letter Queue (DLQ) on the SQS event source mapping with maxReceiveCount=3
-
C
Use Lambda Destinations to route failures to another SQS queue
-
D
Enable Lambda Reserved Concurrency to limit processing attempts