DOP-C02 practice question: EventBridge rules and event-driven responses (3 of 3)
Incident and Event Response A free question from our original DOP-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.
An insurance firm publishes ClaimSubmitted events to an EventBridge event bus. A rule sends each event to an AWS Lambda function that validates the claim and writes it to a claims database.
During a database maintenance window, the function returned errors for about 20 minutes, and some claims were lost after the retries ran out. The claims team needs failed claims to be retried for a time, and any event that still cannot be processed must be kept for later reprocessing.
The team wants a configuration change only, without changing the producer or the function's code.
Which change meets these requirements?
Choose one answer.
AA. Set the function's reserved concurrency to a higher number, so that more invocations can run at once and fewer events are dropped during a busy period.
BB. Wrap the handler in a try block that logs any database error and returns a success response, so that the invocation never counts as failed and is never retried.
CC. Configure the function's asynchronous invocation retry attempts and maximum event age, and add an Amazon SQS on-failure destination for events that still fail.
DD. Configure the rule's target with a retry policy for the maximum event age and retry count, and an Amazon SQS dead-letter queue that receives any event the rule cannot deliver.
Show the answer and explanation
Answer: C
A. Wrong: Reserved concurrency controls how many copies of the function can run, and it does not retry events that fail during a database outage. It also changes the function's scaling behavior, which is not what the claims team asked for. Learn more: Configuring reserved concurrency for a function (opens in a new tab)
EventBridge invokes Lambda asynchronously, so once Lambda accepts an event, function errors are handled by Lambda's own retries, not by the rule's retry policy. Configuring the function's asynchronous retry settings and an SQS on-failure destination keeps every event that still fails. Rule-level dead-letter queues, reserved concurrency and swallowed errors leave the claims lost.
Lambda's own async retries handle the failures, and the SQS on-failure destination keeps every event that still fails.
Want more on EventBridge rules and event-driven responses? The 5 full-length practice sets have 13 more EventBridge rules and event-driven responses questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →