Claude Code's first attempt at a bug fix is close but not right. Which approach improves results progressively?
- Exam domain
- Claude Code Configuration & Workflows20% of the exam
- Difficulty
- Medium
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Apply iterative refinement techniques for progressive improvement
Objective in the exam guide: Apply iterative refinement techniques for progressive improvement
Iterative refinement is a named task statement.
Why C is the answer
Give a concrete check to run, such as a failing test, and specific feedback each round
Iterative refinement works best with a check Claude can run and specific feedback, so each round moves toward a verified result.
How it works
A check Claude can run, such as a test, defines done.
Specific feedback points each round at the gap.
Progress is measured, not guessed.
Clues in the question
The words that point to the answer, and what each one tells you.
- Close but not right
- Refine with a check.
In detail
- Write a failing test that reproduces the bug first.
- Point to the exact files and behavior.
Side by side with look-alikes
| Approach | Progressive? |
|---|---|
| Check plus specific feedback | Yes |
| "Try again" | No |
| Restart same prompt | No |
| Accept first | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Start over in a new session each time with the same promptWrong
Restarting loses progress.
B. Accept the first attempt to save timeWrong
Accepting a wrong fix ships the bug.
C. Give a concrete check to run, such as a failing test, and specific feedback each roundRight
Iterative refinement works best with a check Claude can run and specific feedback, so each round moves toward a verified result.
D. Repeat "try again" without detailsWrongMost tempting
Vague feedback gives Claude nothing to change.
Why it tempts: It asks for change but gives no direction.
In practice
- Name the file, the expected behavior, and how to verify it.