All jobs / AI engineer / Production AI Engineering
AI engineer interview question · 5+ years
Offline evals say a cheaper model is about as good as the current one for your support assistant. Product wants to switch everyone tomorrow to cut cost.
How do you decide with evidence from production?
The strongest answer
An A/B test: assign by user so each person stays on one model, agree success and guardrail metrics up front — resolutions, escalations, latency, cost — log the variant on every trace, and keep a kill switch
Why it works
Exactly — offline evals say it is safe to try; the experiment says what happens with real users. Metrics chosen in advance keep you honest about the result.
What a good answer covers
- Offline says try; online says switch.
- Assign per user, not per request.
- Fix success and guardrail metrics first.
- Log the variant; keep a kill switch.
Answers that fall short
- Close, but not the strongest: Send a small share of traffic to the new model for a few days and compare the thumbs-up rate
A small share is right, but thumbs are sparse and biased. Pick outcome metrics, fix the assignment per user, and decide beforehand what result means “switch”. - Weak: The offline evals already answered the question; an online test only delays the saving
An offline set is a sample of yesterday’s questions. It does not show how real users react, which is what the business cares about. - Red flag: Switch everyone over and compare this month’s support metrics with last month’s
Before-and-after has no control group: a launch, a season or a pricing change will all look like the model. And everyone is exposed if it is worse.
Who gets asked this
More Production AI Engineering questions
- 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…
- What is missing from your system, and what do you add?
- 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?