CCDV-F · Domain 6: Prompt and Context Engineering · 15% of the exam
Task 6.2: Prompt Revision
Changing a prompt that regression evaluations caught missing its target: clearer instructions, system or user placement, zero-, one- or few-shot examples, output constraints and cleaned inputs, so the gap closes and stays closed.
Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.
Question 1 · choose 1
After you moved your agent to a newer Claude model, regression evaluations show it calling search_docs on nearly every turn, even for greetings. Its system prompt says: "CRITICAL: You MUST use search_docs whenever there is any doubt." The tool's description is accurate. Which revision does Anthropic's prompting guidance recommend?
ARepeat the CRITICAL line at the end of the user turn so that Claude reads it closer to the question it answers
BSet tool_choice to none on every request so that search_docs can no longer be called
CSoften the line to normal wording, such as "Use search_docs when the answer depends on product details"
DAdd "NEVER call search_docs for greetings" in capital letters below the existing line
Show the answer and why
ARepeat the CRITICAL line at the end of the user turn so that Claude reads it closer to the question it answers
Incorrect
Repeating the emphasis strengthens the over-prompting that causes the extra calls.
BSet tool_choice to none on every request so that search_docs can no longer be called
Incorrect
That removes the tool from cases that need it instead of fixing the instruction.
CSoften the line to normal wording, such as "Use search_docs when the answer depends on product details"
Correct
Newer models respond more to the system prompt, so aggressive wording written to fight undertriggering now causes overtriggering.
DAdd "NEVER call search_docs for greetings" in capital letters below the existing line
Incorrect
A second emphatic rule adds to the aggressive language; the guidance says to soften it.
Newer Claude models are more responsive to the system prompt, so prompts that pushed hard against undertriggering can now make tools overtrigger. Replace aggressive wording such as "CRITICAL: You MUST" with normal prompting, and remove "if in doubt" over-prompting.
Regression evaluations show your contract-review prompt reaching wrong conclusions when two clauses conflict. Every deployment runs with thinking on. The prompt gives no examples and spells out a hand-written 12-step reasoning procedure that Claude must follow for every review. Which TWO revisions follow Anthropic's prompting guidance? (Choose TWO.)
ATurn thinking off and keep the 12-step procedure, so that the procedure alone controls the reasoning
BAdd a longer list of rules rather than examples, since examples do not reach Claude's thinking
CAdd worked examples of clause conflicts, each with the problem, the method to apply and the expected answer
DAdd a single worked example only, since more than one makes Claude copy one of them at random
EReplace the 12-step procedure with a general instruction to reason thoroughly about the conflict
Show the answer and why
ATurn thinking off and keep the 12-step procedure, so that the procedure alone controls the reasoning
Incorrect
A general instruction to think thoroughly often reasons better than a hand-written plan; Claude's reasoning often exceeds it.
BAdd a longer list of rules rather than examples, since examples do not reach Claude's thinking
Incorrect
Worked examples in the prompt shape how Claude approaches similar problems in its thinking.
CAdd worked examples of clause conflicts, each with the problem, the method to apply and the expected answer
Correct
Multishot examples work with thinking; present each as a problem, the method and the expected answer.
DAdd a single worked example only, since more than one makes Claude copy one of them at random
Incorrect
The guidance recommends 3-5 examples for best results.
EReplace the 12-step procedure with a general instruction to reason thoroughly about the conflict
Correct
General instructions such as "think thoroughly" often produce better reasoning than prescriptive steps.
With thinking on, prefer general instructions over prescriptive steps: a prompt such as "think thoroughly" often produces better reasoning than a hand-written step-by-step plan. Worked examples also work with thinking: present each as a problem, the method to apply and the expected answer, and include three to five of them.
You moved your agent to one of Claude's latest models. Regression evaluations now flag that, after multi-step tool work, it moves straight to the next action without telling the user what it did; the previous model always summarized its work. Which revision does Anthropic's prompting guidance suggest?
ARaise max_tokens so that each response has room left over for a summary of the work
BTurn on streaming so that users can follow each tool call as it happens
CLower effort so that Claude spends fewer tokens on tool calls and more on text for the user
DAdd an instruction to give a quick summary of the work after each task that involves tool use
Show the answer and why
ARaise max_tokens so that each response has room left over for a summary of the work
Incorrect
max_tokens caps a response invisibly to the model; it does not prompt a summary.
BTurn on streaming so that users can follow each tool call as it happens
Incorrect
Streaming changes how a response arrives, not whether Claude writes the summary it skipped.
CLower effort so that Claude spends fewer tokens on tool calls and more on text for the user
Incorrect
Changing effort is not a request for a summary; the guidance is to ask for the summary explicitly.
DAdd an instruction to give a quick summary of the work after each task that involves tool use
Correct
The latest models might skip verbal summaries after tool calls unless prompted to give them.
Claude's latest models have a more concise communication style and might skip verbal summaries after tool calls, jumping directly to the next action. For more visibility into the work, ask for it explicitly, for example: "After completing a task that involves tool use, provide a quick summary of the work you've done."
You want the analysis sections of Claude's reports written as prose while other parts keep their tables. Which technique from Anthropic's prompting guidance helps steer the format of those sections?
AWrite "no bullet points" three times in the prompt
BAsk for those sections inside XML format indicator tags
CLower max_tokens so that Claude has no room for lists
DRemove the tables from the request so that only prose remains
Show the answer and why
AWrite "no bullet points" three times in the prompt
Incorrect
The guidance favors saying what to do over repeating what not to do.
BAsk for those sections inside XML format indicator tags
Correct
XML format indicators are one of the documented ways to control the output format.
CLower max_tokens so that Claude has no room for lists
Incorrect
The output limit cuts replies short; it does not shape their format.
DRemove the tables from the request so that only prose remains
Incorrect
The tables are wanted; the aim is to shape only the analysis sections.
To steer output formatting, tell Claude what to do instead of what not to do, and use XML format indicators such as writing prose sections inside <smoothly_flowing_prose_paragraphs> tags.