An asynchronously invoked Lambda function processes time-sensitive events and occasionally returns errors. Events must expire after five minutes, function errors must receive no retries, and discarded events must reach SQS with request and response details; which configuration meets these requirements?
Show the answer
Correct answerA. Set maximum event age to 300 seconds, disable retries, and configure an SQS failure destination.
AWhy this is right: These settings bound event age, disable function-error retries, and send discarded invocation records to SQS.
BWhy not this: Function timeout does not limit event age, and a dead-letter queue does not provide the full destination invocation record.
CWhy not this: Function timeout limits one execution, not the age of an event waiting for asynchronous processing.
DWhy not this: Allowing two function-error retries violates the requirement to make no such retries.
Lambda asynchronous invocation settings control event age and function-error retries. An on-failure destination receives an invocation record containing request and response details; a function timeout limits execution duration, not how long an event remains eligible for processing.