All jobs / AI engineer / Production AI Engineering
AI engineer interview question · 1–3 years
One customer starts a bulk import that fires thousands of model calls. Within minutes every other customer’s chat is failing with HTTP 429 from the provider.
What is missing from your system, and what do you add?
The strongest answer
Our own limits in front of the provider’s: per-tenant quotas counted in tokens as well as requests, and bulk work on a lower-priority queue, so one customer cannot spend the shared quota that interactive traffic needs
Why it works
Exactly — the provider’s limit is shared by your whole product, so fairness is your job. Tokens matter because one large request can use as many as a long run of small ones.
What a good answer covers
- The provider quota is shared; ration it.
- Limit per tenant, in tokens too.
- Separate bulk from interactive traffic.
- Interactive work gets priority.
Answers that fall short
- Close, but not the strongest: Ask the provider for a higher rate limit so that there is room for the bulk import too
More headroom is worth asking for, but without per-tenant limits the next, larger import eats the new quota the same way. - Weak: Retry the 429s with backoff; the chat requests will get through once the import slows down
Backoff is correct client behavior, but it leaves interactive users queuing behind a batch job. The missing piece is isolation between tenants and between workloads. - Red flag: Block that customer’s account until they agree to stop running imports
The customer used a feature you shipped. The failure is that your system let one tenant’s batch starve everyone else.
Who gets asked this
More Production AI Engineering questions
- What pattern stops this, and what does the AI feature do while it is active?
- The monthly model bill doubled, and nobody can say which customers or which features caused it. What do you…
- Your provider announces that the model version you pinned will be retired in a few months. Forty prompts…
- What is going on, and what should you have measured?
- Offline evals say a cheaper model is about as good as the current one for your support assistant. Product…
- Why does a call to a model need a timeout, and what should the user see when it fires?
- Many providers offer a moving alias that always points at their newest model, and fixed dated versions. Which…
- During a provider slowdown your model bill for the hour tripled. The SDK retries three times, your service…