All jobs / AI engineer / LLM APIs
AI engineer interview question · 1–3 years
At peak your service starts getting HTTP 429 from the model provider. What should the client do?
The strongest answer
Treat it as “slow down”: retry with exponential backoff and jitter, honour a retry-after hint if one is sent, cap the attempts, and retry only what is retryable — 429, timeouts, 5xx — never a 400
Why it works
Exactly — back off, add jitter so clients do not retry in step, and never retry an error that will fail the same way. Then ask why you are hitting the limit at all.
What a good answer covers
- 429 means slow down, not stop.
- Exponential backoff with jitter, capped.
- Honour retry-after when it is sent.
- Retry only errors that can succeed.
Answers that fall short
- Close, but not the strongest: Catch the error and retry the request straight away, up to three times, before giving up
Immediate retries add load at the exact moment you were told to slow down; without backoff, three tries is three more 429s. - Weak: Show the user “please try again later”; a 429 means the provider is down and nothing can be done
429 means too many requests, not an outage. It is the one error that waiting reliably fixes. - Red flag: Create a few extra accounts and rotate the API keys so that we never hit the limit
Dodging a limit with extra accounts usually breaks the provider’s terms and can get every key suspended. It is also not an engineering answer.
Who gets asked this
More LLM APIs questions
- You switch the assistant to streaming. What changes for your backend beyond “the text appears sooner”?
- Traffic to the assistant grew by a tenth this month and the model bill doubled. How do you find out why, and…
- A nightly job classifies the day’s support tickets through the same synchronous endpoint and API key as the…
- What are your levers, in what order, and what do you promise?
- Your chat feature sends only the user’s newest message to the model API, and follow-up questions get confused…
- How do you choose which model to call for a new feature?
- What is missing between the model’s reply and your order object?
- You turned on prompt caching for an assistant with a long system prompt and a dozen tools, but the provider’s…