Skip to content
RED SAGSkills
hardQA Engineer interview question

How would you test a feature whose output is not fixed, such as an AI chatbot or a recommendation engine?

What the interviewer wants to hear

  • Define quality criteria and acceptable ranges instead of exact outputs
  • Build an evaluation set of representative and edge-case inputs
  • Test properties: relevance, safety, format, no harmful or private data
  • Use human review and automated checks or scoring
  • Monitor in production and use A/B tests
  • Track regressions across model or prompt versions

Model answer

Because the output changes, I test properties and quality levels rather than exact strings. First, with the product team, I define what good means: for a support chatbot, answers must be accurate, on-topic, polite, in the right language, and never reveal private data or make up refund policies. I build an evaluation set of a few hundred real and edge-case questions, including tricky and adversarial ones like prompt injection or abusive language. Each response is checked with automated rules, such as format and banned content, plus scoring by human reviewers or a judge model against a rubric, and we track the pass rate. Every new model or prompt version runs this set, so we catch regressions. I also test the fixed parts normally: APIs, fallbacks when the model times out, and handover to a human. In production, we monitor feedback and run A/B tests for impact.

Can you answer it under time pressure?

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

Start mock interview

More hard QA Engineer questions