Backoff
Python Backoff Interview Questions
Backoff is waiting longer after each failed call instead of retrying straight away. An API answering 429 is asking for fewer requests, and a tight retry loop answers by sending more, which turns a brief rate limit into a sustained one.
What backoff questions ask you to do
Across the questions here, these are the shapes that come up:
- Double the wait after each failure, up to a ceiling
- Give the delay before each attempt, with no wait before the first
- Add jitter so that many clients do not retry in step
- Stop retrying an error that will fail the same way next time
- Give up after a number of attempts or a total time
Common mistakes with backoff
Capping the exponent rather than the delay, which changes the shape of the curve instead of flattening its top. The other is retrying everything: a 400 means the request itself is wrong and will be wrong again, so only rate limits and transient failures are worth a second attempt.
Questions to practice
Questions last reviewed 19 October 2026.
Roles this comes up in
Companies these come from
Other topics
- Filtering7
- Logical operators4
- Calculations11
- Conditional logic12
- NULL handling9
- Dates16
- Joins15
- Aggregations14
- Subqueries5
- Window functions32
- Reshaping15
- Arrays6
- Strings11
- Hashing8
- Two pointers4
- Sliding window1
- Binary search4
- Sorting1
- Math3
- Lists5
- Tuples3
- Dictionaries3
- Ranking16
- Running totals10
- Deduplication2
- Chunking1
- Similarity1
- Token budget2
- Parsing4
- Agent loop1
- Cost1