All jobs / Solutions / cloud architect / Application Architecture

Solutions / cloud architect interview question · 1–3 years

A client retries a “create payment” request after a timeout. How does the design stop a double charge?

The strongest answer

The client sends an idempotency key; the server stores the result under that key and returns the same response on a repeat, so retries are safe by design

Why it works

Exactly. Key on the request, result stored, replay returns the original. Retries become harmless.

What a good answer covers

Answers that fall short

Who gets asked this

More Application Architecture questions