Development with AWS Services

An asynchronously invoked Lambda function is being throttled, leaving events in Lambda's internal queue. The application requires Lambda to discard queued events once they are five minutes old; which setting enforces this limit?

Show the answer

Correct answerB. MaximumEventAgeInSeconds set to 300

AWhy not this: The function timeout limits the duration of an individual execution, not time spent in the asynchronous queue.

BWhy this is right: This setting limits an asynchronous event's age in Lambda's queue to five minutes.

CWhy not this: This setting limits retries after function errors, not the age of events waiting because of throttling.

DWhy not this: Zero reserved concurrency prevents execution; it does not establish a five-minute queue retention limit.

MaximumEventAgeInSeconds limits how long Lambda retains an event for asynchronous processing. MaximumRetryAttempts controls retries after function errors; it does not establish an age limit for queued events experiencing throttling.