A support assistant gives answers in inconsistent formats and sometimes answers questions outside its scope. Which two prompt design changes help most? (Select TWO.)
- Exam domain
- Design and implement a GenAIOps infrastructure20–25% of the exam
- Difficulty
- Medium
- In this mock
- 14 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Design and develop prompts.
Prompt design is the cheapest fix for behavior problems. The exam checks you know the standard techniques.
Why A and B are the answers
A multiple-response question. Choose two. There is no credit for picking only some of them.
State the scope and what to do with out-of-scope questions in the system message
Add a few examples of the expected answer format
Clear instructions in the system message set scope and behavior, and few-shot examples show the exact output format to follow.
How it works
The system message sets the assistant's role, scope, rules and output format.
Few-shot examples show the model input and output pairs to imitate, which makes format consistent.
Being explicit about what to do when a request is out of scope reduces off-topic answers.
Clues in the question
The words that point to the answer, and what each one tells you.
- Inconsistent formats
- Show examples.
- Outside its scope
- Scope rules in the system message.
In detail
- Put instructions before the content they refer to and use clear section markers.
- Test each change on the same evaluation dataset.
Side by side with look-alikes
| Technique | Fixes |
|---|---|
| System message with scope rules | Off-topic answers |
| Few-shot examples | Inconsistent format |
| Lower temperature | Randomness |
| Clear section markers | Instructions mixed with content |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. State the scope and what to do with out-of-scope questions in the system messageRight
Clear instructions in the system message set scope and behavior, and few-shot examples show the exact output format to follow.
B. Add a few examples of the expected answer formatRight
Clear instructions in the system message set scope and behavior, and few-shot examples show the exact output format to follow.
C. Raise the temperatureWrongMost tempting
Higher temperature makes output more varied, the opposite of consistent.
Why it tempts: Temperature is the best-known setting, so changing it feels like tuning. Raising it adds variety, which makes format less consistent.
D. Remove the system message to save tokensWrong
Without a system message the model has no scope or format rules.
E. Ask the model to be creativeWrong
Creativity works against a fixed format and scope.
In practice
- Keep the system message in a versioned file and evaluate each change before release.