Interview practice question
Testing an idempotent endpoint
Backend Engineering · Testing · Intermediate
Your payment endpoint supports idempotency keys. How would you test that it really is idempotent?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Same key twice → one charge, same response.
- Different body same key → error.
- Concurrent requests with same key.
- Retry after failure/timeout.
- Key expiry behaviour.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.