All jobs / AI engineer / Production AI Engineering
AI engineer interview question · 5+ years
Your provider announces that the model version you pinned will be retired in a few months. Forty prompts across six features depend on it.
How do you run the migration?
The strongest answer
As a release: inventory the prompts, run each feature’s evals on the candidate, fix the prompts that regress, then roll out feature by feature behind a flag, with the old pin as rollback while it still exists
Why it works
Exactly — and the features with no eval suite are the real finding: start there, because without one you are migrating blind.
What a good answer covers
- A model change is a release.
- Inventory the prompts; run the evals.
- Roll out per feature behind a flag.
- Migrate early, while rollback still exists.
Answers that fall short
- Close, but not the strongest: Switch the model in staging, have the team try the main flows by hand, and ship if nothing looks off
Hand checks catch the obvious breaks, not a shift in tone, format or refusals across forty prompts. That is what the eval suites are for. - Weak: Wait until close to the retirement date; the newer model is better, so the change should be an improvement everywhere
Newer is better on average, not necessarily on your prompts. Waiting also burns the window in which the old version is still there to roll back to. - Red flag: Change the version string for all features at once on the last day; it is the same provider, so it is compatible
A big-bang switch on the last day has no rollback, because the old model is gone the next morning. Same provider does not mean same behavior.
Who gets asked this
More Production AI Engineering questions
- 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…
- 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…