Answer quality dropped after several prompt edits over two weeks, and nobody knows which edit caused it. What resolves this systematically?
- Exam domain
- Testing, Validation, and Troubleshooting11% of the exam
- Difficulty
- Hard
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Task 5.2: Troubleshoot GenAI applications.
Objective in the exam guide: Skill 5.2.3: Troubleshoot prompt engineering problems to improve FM response quality and consistency beyond basic prompt adjustments (for example, by using prompt testing frameworks, version comparison, systematic refinement).
Prompt regressions are common and slow to find by trial and error. A systematic method turns days of guessing into one test run.
Why A is the answer
Compare prompt versions with a testing framework on the same test set, and validate output format with schema checks and logs
Version comparison on a fixed test set pinpoints the bad edit, and schema checks catch format problems.
Remember: Find prompt regressions by comparing versions on a fixed test set.
How it works
Prompts change often, and a quality drop can come from any recent edit.
Running every version against the same test set shows exactly where quality fell.
Schema validation and logs catch format inconsistencies, and tracing shows where prompts are assembled or changed in a pipeline.
Clues in the question
The words that point to the answer, and what each one tells you.
- Several prompt edits
- Versions to compare.
- Nobody knows which edit
- Systematic comparison, not guessing.
In detail
- Template testing and CloudWatch Logs help diagnose prompt confusion.
- X-Ray can trace prompt processing across a pipeline.
Side by side with look-alikes
| Method | Finds the cause? |
|---|---|
| Version comparison on a test set | Yes |
| Undo random edits | Slowly, if ever |
| Rewrite from scratch | No |
| More temperature | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Compare prompt versions with a testing framework on the same test set, and validate output format with schema checks and logsRight
Find prompt regressions by comparing versions on a fixed test set.
B. Undo random edits until quality returnsWrong
Random undoing is slow and may remove good changes.
C. Write a brand-new prompt from scratchWrongMost tempting
A rewrite throws away what worked and still lacks a test.
Why it tempts: A fresh start feels decisive. But it discards what worked, and without a test you cannot tell if it is better.
D. Raise the temperature to add varietyWrong
More variety hides the problem rather than finding it.
In practice
- Keep every prompt version, so you can replay them.
- Add the regression case to the test set once found.
Use case
An illustrative scenario, not a real incident.
A team replays its test set across the last six prompt versions and sees the drop started with version 4, which removed an example.
See how it works
xychart-beta x-axis ["v1", "v2", "v3", "v4", "v5", "v6"] y-axis "Score (%)" 50 --> 100 line [88, 89, 90, 76, 75, 77]
How to read this chart
- Each point is one prompt version scored on the same test set.
- Scores hold steady until version 4, then drop sharply.
- That pinpoints the edit to inspect, instead of guessing among six.