Skip to content
RED SAGSkills
hardPrompt Engineer interview question

How do you show with confidence that a new prompt is better than the current one, and not just lucky on your test set?

What the interviewer wants to hear

  • Large enough, representative held-out set
  • Paired comparison on the same items
  • Repeated runs to estimate variance
  • Look at per-slice results and flipped items
  • Avoid contamination and overfitting to the eval
  • Confirm with online testing or human review

Model answer

First, the test set must be representative and big enough; on 50 items one answer moves the score by 2 points, which is within noise. I keep a held-out set that was never used while tuning the prompt, and I check that no eval items appear as examples in the prompt. I run both prompts on the same items several times and compare paired results: how many items each version fixed and broke, with a simple significance test or confidence interval. I break results down by slice, such as language, topic or input length, because an overall gain can hide a regression for an important group. I also read the flipped items to see if the change is meaningful. Where stakes are high, I confirm with human review or an online A/B test on real traffic.

Can you answer it under time pressure?

Take a timed hard round and get scored on every answer.

Start mock interview

More hard Prompt Engineer questions