Courseiva

CCAR-F Agentic Architecture and Orchestration Practice Question

An architect is building an agent that uses a 'Plan-and-Execute' pattern. The agent first generates a multi-step plan, then executes each step. During execution, the agent discovers that Step 2 is impossible due to a missing API key. How should the agent be designed to handle this?

⚠ Common exam trap

Candidates often assume the agent should just retry the failed step or throw an error, failing to realize the agent must re-plan based on the new environmental constraint.

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

✓

The agent should return to the planning phase to modify the remaining steps

Dynamic re-planning is a key feature of advanced agentic systems. When an agent encounters an obstacle that prevents the execution of a pre-defined plan, it must be able to recognize the failure, update its internal state, and generate a new plan that either bypasses the problem or addresses the root cause, rather than continuing to attempt a doomed plan.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    The agent should skip the failing step and proceed to Step 3 automatically

    Why it's wrong here

    Skipping a step without re-evaluating the plan often leads to cascading failures, especially if subsequent steps depend on the output of the failed one. In a plan-and-execute pattern, the agent must understand the dependencies between steps and realize that the entire plan may now be invalid or require significant modification.

  • ✓

    The agent should return to the planning phase to modify the remaining steps

    Why this is correct

    This is the 'Re-planner' pattern. When a failure occurs, the agent should take the error information and feed it back into the planning model. This allows the model to generate an alternative strategy that achieves the goal without the missing API key, or to inform the user about the specific requirement needed.

  • ✗

    The system should hard-crash to ensure the developer is notified of the issue

    Why it's wrong here

    Crashing is a poor user experience and fails to leverage the model's reasoning capabilities to recover. While the error should be logged, a well-designed agent should attempt to handle the failure gracefully, perhaps by providing a helpful error message to the user or attempting an alternative method to fulfill the request.

  • ✗

    The agent should retry Step 2 indefinitely until the API key is provided

    Why it's wrong here

    Retrying indefinitely creates an infinite loop, consuming tokens and resources without any chance of success if the underlying issue (missing key) is not resolved. This highlights the need for maximum iteration limits and intelligent error handling that can distinguish between transient network issues and permanent configuration failures.

About these practice questions

This CCAR-F question is part of Courseiva's 271-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 →

How Courseiva writes practice questions · Editorial policy

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-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 CCAR-F exam.