All jobs / AI engineer / LLM APIs
AI engineer interview question · 5+ years
A nightly job classifies the day’s support tickets through the same synchronous endpoint and API key as the live chat product. Chat users now see rate-limit errors every evening.
What is your call?
The strongest answer
Separate the workloads: bulk goes through a queue with its own quota and concurrency cap — or the provider’s batch interface, if it has one — on the smallest model that passes a labelled sample
Why it works
Right — interactive and bulk traffic should not share one fate. Bulk work tolerates delay, so it can queue, run cheaper and yield, and a labelled sample tells you how small the model can go.
What a good answer covers
- Interactive and bulk never share one fate.
- Queue bulk work with its own quota.
- Use batch interfaces where they exist.
- Smallest model that passes a labelled sample.
Answers that fall short
- Close, but not the strongest: Move the job to the small hours when chat traffic is low, and keep everything else as it is
Rescheduling helps tonight, but the job still shares a key and a limit with chat. The day it runs long, the errors are back. - Weak: Ask the provider for a higher rate limit so both fit; with enough quota the problem goes away
More quota moves the cliff; the next bigger job falls off it again. Interactive and bulk still share one fate. - Red flag: Hide the errors in chat behind a spinner and let requests wait until the job has finished
Hiding a failure is not handling it. Users waiting minutes on a spinner is an incident you chose.
Who gets asked this
More LLM APIs questions
- 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…
- At peak your service starts getting HTTP 429 from the model provider. What should the client do?
- 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…