Interview practice question
Building a reusable retry helper
Data Engineering · Python · Intermediate
Several functions in your pipeline call flaky services. How would you add retries consistently?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Write or use a retry decorator, for example with tenacity.
- Configure which exceptions are retryable.
- Use exponential backoff with jitter and a max attempts.
- Log each retry with context.
- Apply the decorator to all external calls.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.