Question 30
A webhook sometimes receives the same Event Grid event twice after an endpoint timeout. Which engineering change is the most direct response to the stated failure and constraint?
Explanation
Correct Answer
This remedy fits the observed case: A webhook sometimes receives the same Event Grid event twice after an endpoint timeout. Use the event ID as an idempotency key and acknowledge successful processing with supported 2xx status. The underlying issue is Event Grid provides at-least-once rather than guaranteed exactly-once delivery. Direct acceptance evidence is Duplicate deliveries produce one downstream side effect and a successful acknowledgement.
Incorrect Answers
The alternative addresses: A browser-accessible key allows untrusted clients to publish arbitrary topic events. The reported constraint here is different: Event Grid provides at-least-once rather than guaranteed exactly-once delivery. The case-specific choice is: Use the event ID as an idempotency key and acknowledge successful processing with supported 2xx status.
The destination does not honor the handshake required to prove endpoint ownership. By contrast, the relevant technical condition here is: Event Grid provides at-least-once rather than guaranteed exactly-once delivery. The appropriate selection is: Use the event ID as an idempotency key and acknowledge successful processing with supported 2xx status.
Some nonretryable 4xx responses are dead-lettered or dropped rather than retried. This is a separate requirement; the current case instead hinges on: Event Grid provides at-least-once rather than guaranteed exactly-once delivery. The matching answer is: Use the event ID as an idempotency key and acknowledge successful processing with supported 2xx status.