CCAR-F: Claude Certified Architect - Foundations

CCAR-F: Claude Certified Architect - Foundations practice questions, page 5 of 6, with answer review and explanations.

Get the full CCAR-F practice test · 137 questions, PDF and online test engine

Question 21

You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Context Protocol (MCP) tools (get_customer, lookup_order, process_refund, escalate_to_human). Your target is 80%+ first-contact resolution while knowing when to escalate. Production logs show that when the agent handles complex billing disputes requiring 6+ tool calls, it sometimes exhausts its ‘max_turns’ limit after gathering data but before completing resolution or escalating. The team’s goal is to guarantee that every customer interaction ends with either a completed resolution or a human handoff, regardless of how the agent loop terminates. Which approach achieves this guarantee?

  1. Implement a pre-tool-use hook that counts tool invocations and terminates the loop with an automatic escalation once the agent reaches 80% of its ‘max_turns’ limit.
  2. Split the workflow into two sequential agent invocations – a first agent gathers information via ‘get_customer’ and ‘lookup_order’, then a second agent receives that data and handles ‘process_refund’ or ‘escalate_to_human’, each with separate turn budgets.
  3. Add system prompt instructions telling the agent to call ‘escalate_to_human’ with a summary of its findings whenever it determines it cannot complete resolution within its remaining actions.
  4. Add orchestration-layer code that checks the agent’s outcome after each loop termination – if the loop ended without a completed resolution or escalation, programmatically call ‘escalate_to_human’ with the accumulated conversation context and tool results.

Answer: D. Add orchestration-layer code that checks the agent’s outcome after each loop termination – if the loop ended without a completed resolution or escalation, programmatically call ‘escalate_to_human’ with the accumulated conversation context and tool results.

Explanation: A guarantee requires deterministic handling outside the model’s discretionary behavior. By checking how the agent loop terminated and automatically escalating whenever no successful resolution or handoff occurred, the orchestration layer ensures every interaction reaches one of the required terminal outcomes even when turn limits, errors, or other stop conditions interrupt the agent.

Question 22

You are using Claude Code to accelerate software development. Your team uses it for code generation, refactoring, debugging, and documentation. You need to integrate it into your development workflow with custom slash commands, CLAUDE.md configurations, and understand when to use plan mode vs direct execution. You need to add a date validation check ensuring event dates are in the future. This requires adding a conditional statement to one existing function in a single file. What is the most appropriate approach?

  1. Enter plan mode to analyze how the validation might impact other parts of the reservation flow
  2. Use direct execution to make the change
  3. Start with extended thinking mode enabled to ensure thorough reasoning about the validation logic
  4. Enter plan mode first to create a detailed implementation strategy before making the change

Answer: B. Use direct execution to make the change

Explanation: A small, localized change in a single known function is well suited to direct execution. Plan mode is more useful for broader or higher-risk changes that require architectural exploration, dependency analysis, or coordination across multiple files.

Question 23

You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that provide actionable feedback and minimize false positives. Your automated review generates many findings per PR, but developer feedback shows roughly half are dismissed as “not worth addressing”. Analysis reveals dismissed findings are often technically accurate but involve minor style preferences or patterns acceptable in your codebase. Before adding infrastructure complexity, what prompt design change would most effectively reduce dismissals while maintaining detection of genuine issues?

  1. Append instructions to “only report findings you are highly confident are genuine problems”
  2. Add explicit criteria defining which issues to report (bugs, security) versus skip (minor style, local patterns)
  3. Implement a secondary classification model that filters Claude’s findings based on predicted developer acceptance
  4. Add instructions asking Claude to rate each finding’s confidence (1-10) and only include findings rated 8 or higher

Answer: B. Add explicit criteria defining which issues to report (bugs, security) versus skip (minor style, local patterns)

Explanation: Explicit inclusion and exclusion criteria give the model a concrete definition of what constitutes an actionable review finding. By prioritizing defects and security issues while excluding minor style preferences and accepted local conventions, the review becomes more aligned with developer expectations and produces fewer low-value findings.

Question 24

Your update_user_profile tool accepts a user_id (required) and an optional fields_to_update object. In testing, Claude frequently omits user_id or passes incorrectly structured data. What is most critical for helping Claude understand what parameter values to provide?

  1. Strict JSON Schema type constraints marking user_id as required and defining fields_to_update as an object type
  2. Verbose parameter names encoding format hints, such as user_id_string_uuid_format
  3. Detailed error responses explaining why invalid parameter values were rejected
  4. Clear parameter descriptions explaining expected format, such as “user_id: UUID of the user to update (required)”

Answer: D. Clear parameter descriptions explaining expected format, such as “user_id: UUID of the user to update (required)”

Question 25

Users report that final reports sometimes lack depth on specific subtopics. Investigation shows that the document analysis agent frequently identifies gaps – for instance, noting “the retrieved sources discuss API authentication but lack details on token refresh patterns” – but under the current strict pipeline, this insight isn’t actionable since search has already completed. What’s the most effective architectural change?

  1. Add a research planning agent before the search phase that decomposes topics into specific sub-questions.
  2. Have the analysis agent report specific gaps to the coordinator, which triggers targeted searches and re-invokes analysis until sufficient.
  3. Have the coordinator review analysis output for gap indicators and re-invoke search with gap-informed queries when gaps are detected.
  4. Have the synthesis agent attach confidence scores to each section and flag areas with insufficient coverage for manual review.

Answer: B. Have the analysis agent report specific gaps to the coordinator, which triggers targeted searches and re-invokes analysis until sufficient.

Get the full CCAR-F practice test · 137 questions, PDF and online test engine