All jobs / AI engineer / LLM APIs
AI engineer interview question · 0–1 years
How do you choose which model to call for a new feature?
The strongest answer
Start from the task: collect a few real test cases, prove it on a capable model, then see whether a smaller, cheaper, faster one passes the same cases within our latency and data constraints
Why it works
Right — the task and your own cases decide, not the brand. Proving it on a strong model first tells you whether a failure is the model or the prompt.
What a good answer covers
- Your test cases choose the model.
- Prove it on a capable model.
- Then try smaller, faster, cheaper.
- Weigh quality, latency, cost, data rules.
Answers that fall short
- Close, but not the strongest: Take the most capable model available; quality comes first and we can optimise the cost later
A fair starting point, but without test cases “later” never comes, and you cannot tell when a cheaper model is good enough. - Weak: Pick whichever model tops the public leaderboards this month, since those measure quality objectively
Leaderboards measure somebody else’s tasks. They give you a shortlist, not a decision for your feature. - Red flag: Use the one from my last project; they are all much the same, so testing is a waste of time
Models differ a lot by task, and refusing to test is the part that worries an interviewer most.
Who gets asked this
More LLM APIs questions
- 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…
- 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…