The same prompt sent twice returns differently worded answers, and one is occasionally wrong. What is the sound way to evaluate this prompt?
- Exam domain
- Model Selection and Optimization16.8% of the exam
- Difficulty
- Medium
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Domain 5: Model Selection and Optimization (16.8%).
Objective in the exam guide: LLM Fundamentals: tokens, context windows, sampling, non-determinism, next-token generation, and model options.
Non-determinism is named in the skill.
Why C is the answer
Run each test case several times and measure the rate of correct answers, since generation is non-deterministic
Token sampling makes outputs vary between runs, so evaluations should measure behavior over repeated samples.
How it works
LLMs generate text one token at a time by sampling.
The same input can produce different outputs.
Evaluation should measure rates over repeated runs.
Clues in the question
The words that point to the answer, and what each one tells you.
- Same prompt, different answers
- Sampling variation.
In detail
- Report pass rates with sample counts.
- Use clearer prompts and structured outputs to reduce variation.
Side by side with look-alikes
| Method | Sound? |
|---|---|
| Repeat runs, measure rate | Yes |
| Single run | No |
| Switch providers | No |
| Longest answer | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Assume the model is broken and switch providersWrong
Variation is normal behavior.
B. Judge only the longest answerWrong
Length does not equal correctness.
C. Run each test case several times and measure the rate of correct answers, since generation is non-deterministicRight
Token sampling makes outputs vary between runs, so evaluations should measure behavior over repeated samples.
D. Run each test case once and trust the resultWrongMost tempting
One run hides variance.
Why it tempts: It is quick. But one sample cannot show how often answers go wrong.
In practice
- Flag cases whose pass rate is below 100% for prompt work.