productinterview.tools
MenuClose

A Prompt Change Broke Production. How Do You Prevent It Next Time?

The interviewer asksAn engineer tweaked a prompt to fix one customer complaint. The next day, answers got worse for everyone else. How do you stop this happening again?

AI Product EngineerApplied AI PMCoreExecution roundRepresentative5–7 min

On this page
  1. The 30-second version
  2. What it's really testing
  3. How to structure your answer
  4. The interview, played out
  5. The strong answer, distilled
  6. How it's scored
  7. How the answer changes by role
  8. Common mistakes
  9. More follow-ups to practise
  10. Go deeper
  11. Sources

The 30-second version

  1. Roll back first.
  2. Treat prompts like code: versioned, reviewed, with history.
  3. Gate every prompt change on an eval set of real cases, including past failures.
  4. Roll out changes to a small share of traffic and watch metrics before going wide.
  5. Add the customer's complaint as a test case so the original fix is tested too.

Watch it played outSee the strong answerHow it's scored

What it's really testing

  • Treating prompts as production code
  • Eval gates
  • Safe rollout

How to structure your answer

  1. Contain.
  2. Find the gap in the process.
  3. Add versioning, evals and staged rollout.
  4. Make it routine.

The interview, played out

A written example interview, not a real candidate or company transcript.Strong moveMissed signalRevealed when asked
  1. Interviewer
    An engineer tweaked a prompt to fix one customer complaint. The next day, answers got worse for everyone else. How do you stop this happening again?
  2. Candidate
    First, roll back to the previous prompt. Then, how did we notice, and how long did it run?
  3. Revealed when asked
    Support tickets spiked; it ran for a day.
  4. Candidate
    So there was no check before shipping and nothing to catch it quickly after. I'd treat prompts like code: stored in version control, reviewed, with a record of which version produced each answer.
  5. Strong move
    Identifies two gaps: before shipping and after.
  6. Candidate
    Before shipping: an eval set of a few hundred real conversations, plus past failures, run automatically on every prompt change; the change only ships if it doesn't regress.
  7. Candidate
    After shipping: release to a small share of traffic first and watch quality signals before going wide.
  8. Interviewer
    Won't that slow the team down?
  9. Candidate
    A little.
  10. Missed signal
    Should quantify: an automated eval run takes minutes, versus a day of bad answers.
  11. Candidate
    The eval runs automatically in minutes; a bad day costs far more. And the customer's complaint becomes a test case, so we fix it without breaking others.

The strong answer, distilled

  • Contain: roll back immediately.
  • Gaps: no check before shipping, slow detection after.
  • Before: prompts versioned and reviewed; an automatic eval gate on real conversations and past failures.
  • After: staged rollout with quality signals watched.
  • Original fix: the complaint becomes a test case.

This is one strong answer, not the only one.

How it's scored

Dimension Weak (2) Passable (3) Strong (5)
Containment None Fix forward Roll back first
Process Be more careful Testing Versioning, review, eval gate
Rollout All at once Monitor Staged rollout with signals

Round scorecard: AI Product Engineer: execution round, filled in for the mock candidate

DimensionWeakPassableStrongThe mock candidate
Reading resultsTakes the headline number.Checks significance.Checks noise, novelty and guardrails before believing the result.Strong. Asked how the regression was noticed and how long it ran.
Trade-offsShips or kills by gut.Weighs benefit and cost.Quantifies the trade-off per user and per outcome.Strong. Weighed process cost against risk.
Engineering optionsAccepts the cost as fixed.Suggests a cheaper model.Several levers (routing, caching, prompts) tested against evals.Strong. Versioning, eval gate, staged rollout.
OwnershipHands the decision to others.Recommends.Recommends, sets a follow-up test and owns the outcome.Strong. Owned the process change.

How the answer changes by role

Role What to emphasise
AI Product Engineer The eval gate and rollout tooling
Applied AI PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation Balancing speed of fixes against quality for all users

Common mistakes

  • Fixing forward with another untested tweak
  • Relying on people being careful
  • No record of which prompt produced which answer

More follow-ups to practise

  • "The eval set takes an hour to run." Hint: a fast subset on every change, the full set before release.
  • "A customer needs a custom prompt." Hint: per-customer versions with their own tests.

Go deeper

Sources

Representative question: written to match execution rounds for AI product roles, not a specific reported interview.