After asynchronous Lambda invocations exhaust their retries, a support application needs the original event, the function response, and error details in an SQS queue. What should the developer configure?
Show the answer
Correct answerC. An on-failure destination targeting the queue
AWhy not this: An on-success destination receives records for successful invocations, not exhausted failures.
BWhy not this: A function dead-letter queue preserves the original event and error attributes, but not the complete response record.
CWhy this is right: An on-failure destination receives the invocation record after asynchronous processing exhausts its retries or event age.
DWhy not this: An event source mapping polls SQS to invoke the function; it does not deliver failed invocation records to SQS.
An on-failure destination receives an invocation record containing the request, response, and error context after asynchronous processing fails. A function dead-letter queue receives the original event with error attributes, not the complete invocation record.