CCDV-F Agents and the Agent SDK Practice Question
Which of the following is a best practice when providing feedback to an agent after a failed tool call?
⚠ Common exam trap
Candidates often think a generic 'task failed' message is sufficient feedback, preventing the model from diagnosing and correcting its specific argument mistakes.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Provide the specific error message returned by the tool.
Providing specific, actionable error messages is essential for recovery. An agent cannot fix a failed tool call if it does not understand why it failed. By feeding back the exact error message (e.g., 'invalid argument', 'permission denied'), you allow the model to adjust its future attempts, enabling the agent to learn from its errors and eventually succeed in the task without manual intervention.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Ignore the error and let the agent retry with the same input.
Why it's wrong here
Retrying with the same input after a failure is likely to result in the same error. This creates an infinite loop of failure that wastes tokens and time. The agent needs feedback to understand that its previous approach was incorrect or malformed.
- ✓
Provide the specific error message returned by the tool.
Why this is correct
The error message contains the context needed for the model to re-evaluate its strategy. By surfacing the specific technical error, you enable the agent to self-correct, adjust its arguments, or switch to a different tool to achieve the desired goal.
- ✗
Restart the entire conversation history from scratch.
Why it's wrong here
Restarting the conversation is drastic and clears all context, forcing the user to re-state their query. This destroys the agent's progress and is unnecessary, as the model is capable of using failure feedback to continue working on the task effectively.
- ✗
Send a generic 'try again' message to the agent.
Why it's wrong here
Generic messages do not provide the model with enough information to change its behavior. Without specific details on why the failure occurred, the model will likely repeat the exact same invalid tool call, leading to further failures and wasted token budget.
About these practice questions
This CCDV-F question is part of Courseiva's 257-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Anthropic exam blueprint
This CCDV-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCDV-F exam.