Advanced System Design
Q93 / 100

What is the significance of "idempotency keys" when designing a payment processing API?

Correct! Well done.

Incorrect.

The correct answer is A) A client-generated unique key included with a request allows the server to detect and safely ignore duplicate requests (e.g., from network retries), preventing duplicate charges

A

Correct Answer

A client-generated unique key included with a request allows the server to detect and safely ignore duplicate requests (e.g., from network retries), preventing duplicate charges

Explanation

If a client retries a payment request after a timeout (not knowing if it succeeded), including the same idempotency key lets the server recognize the retry and return the original result instead of processing the payment again.

Progress
93/100