CCAR-P Advanced Agentic Architecture Practice Question
Which architectural approach is best for handling an agent's failure to retrieve information from a database tool?
⚠ Common exam trap
Candidates often suggest showing the error to the user or simply retrying the same query, failing to leverage the model's ability to self-correct based on feedback.
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 error back to the agent as a new observation for re-planning.
An 'error-handling wrapper' that catches the tool failure and feeds the error back into the agent's reasoning loop is essential. This allows the model to perform a 'self-correction' phase—perhaps by reformulating the query, searching a different table, or asking the user for clarification. This turns an error into a new data point, making the system significantly more robust and helpful than just reporting a failure.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Simply return the raw error message to the end user.
Why it's wrong here
Exposing raw error messages to the user is a poor experience and a potential security vulnerability, as error messages can reveal database schema details. An autonomous agent should be able to interpret the error, understand why it failed, and attempt to recover before bothering the end user.
- ✗
Configure the agent to automatically retry the exact same query 5 times.
Why it's wrong here
Blind retries of the same query are rarely successful if the initial query was malformed. This approach just wastes API compute resources and increases wait time without addressing the root cause, which is usually a logic error in the query formulation that requires a human-like adjustment.
- ✓
Provide the error back to the agent as a new observation for re-planning.
Why this is correct
Treating an error as an observation is a key principle of agentic architecture. By letting the agent 'see' what went wrong, it can apply its reasoning to correct the error, such as by broadening a query scope or sanitizing an input, leading to much higher success rates.
- ✗
Default to a hard-coded fallback value to satisfy the user.
Why it's wrong here
Hard-coding fallback values leads to silently incorrect data, which is worse than failing. If an agent cannot retrieve the correct information, it should either attempt to fix the error or inform the user, rather than providing misleading data that could lead to bad business or technical decisions.
About these practice questions
One of 262 original CCAR-P practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 CCAR-P 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 CCAR-P exam.