API Testing · Middle · Question 69 of 75
What should you test about retries in an API client?
- 1Only safe or idempotent calls retry, with backoff and a limit
- 2Retries should happen instantly without any delay
- 3Every request retries forever until it succeeds
Show the answer
Correct answer: Only safe or idempotent calls retry, with backoff and a limit
Explanation
Retrying a non-idempotent POST can duplicate orders. Backoff with jitter avoids hammering a struggling service.