Weekend Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: newyear

Anthropic CCAR-F - Claude Certified Architect – Foundations

Page: 4 / 5
Total 152 questions

When researching “renewable-energy adoption,” the web-search agent returns recent statistics showing 35% adoption in 2024, while the document-analysis agent extracts an 18% adoption figure from an internal 2021 report. The synthesis agent incorrectly treats the figures as contradictory instead of recognizing that they may show growth over time. What change would best enable the synthesis agent to interpret such temporal differences correctly?

A.

Require subagents to include publication dates and data-collection periods in their structured outputs.

B.

Configure the web-search agent to return only results published during the previous six months.

C.

Add a conflict-resolution agent that automatically discards older data whenever a newer value exists for the same metric.

D.

Instruct the synthesis agent to treat the newest value as authoritative and place all older findings in a separate historical section.

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?

A.

Use direct execution to make the change.

B.

Start with extended thinking mode enabled to ensure thorough reasoning about the validation logic.

C.

Enter plan mode first to create a detailed implementation strategy before making the change.

D.

Enter plan mode to analyze how the validation might impact other parts of the reservation flow.

You built an LLM-powered code-review tool that analyzes pull requests and returns structured findings. Each finding is a JSON object containing file_path, line_number, issue_category—such as security or style—and description. Developers can dismiss findings they consider unhelpful, and currently 35% of findings are dismissed. You want to analyze these dismissals to understand what the system is getting wrong and improve the prompts accordingly. What change to the output structure would best support this analysis?

A.

Add a model_confidence field from 0.0 to 1.0 and filter findings below a threshold calibrated against historical dismissal rates.

B.

Add a detected_pattern field recording the specific code construct that triggered the finding, such as single-letter loop variable.

C.

Expand the description field with more detailed explanations of why each issue matters and how it should be fixed.

D.

Remove the issue_category field and track dismissal rates only at the individual-finding level.

Production monitoring shows that follow-up queries such as “summarize what we learned about market trends” consistently take more than 40 seconds. Investigation reveals that the coordinator spawns the synthesis subagent for every summarization request, passing more than 80,000 tokens of accumulated findings. The coordinator already has these findings in its context from orchestrating the research. What is the most effective way to improve response time for these follow-up summaries?

A.

Pregenerate and cache summaries at multiple levels of detail whenever new findings accumulate.

B.

Enable prompt caching for the synthesis subagent to reduce the overhead of repeatedly transferring the same research findings.

C.

Have the coordinator answer straightforward summarization requests directly from its existing context, reserving subagent invocation for complex analysis.

D.

Spawn the synthesis subagent with reduced context and allow it to request specific findings from the coordinator on demand.

You are building a structured data extraction system using Claude. The system extracts information from unstructured documents, validates the output using JavaScript Object Notation (JSON) schemas, and maintains high accuracy. It must handle edge cases gracefully and integrate with downstream systems.

Monitoring shows 12% of extractions fail Pydantic validation with specific errors like “expected float for quantity, got ‘2 to 3’”. Retrying these requests without modification produces identical failures.

What’s the most effective approach to recover from these validation failures?

A.

Send a follow-up request including the validation error, asking the model to correct its output.

B.

Set temperature to 0 to eliminate output variability and ensure consistent formatting.

C.

Pre-process source documents to standardize problematic formats before sending them for extraction.

D.

Implement a secondary pipeline using a larger model tier to reprocess documents that fail validation.

Your automated review generates many findings per pull request, but developer feedback shows that roughly half are dismissed as “not worth addressing.” Analysis reveals that dismissed findings are often technically accurate but involve minor style preferences or patterns that are acceptable in your codebase. Before adding infrastructure complexity, what prompt-design change could most effectively reduce dismissals while maintaining the detection of genuine issues?

A.

Add explicit criteria defining which issues to report, such as bugs and security defects, and which issues to skip, such as minor style preferences and accepted local patterns.

B.

Implement a secondary classification model that filters Claude’s findings according to predicted developer acceptance.

C.

Ask Claude to rate every finding’s confidence from 1 to 10 and include only findings rated 8 or higher.

D.

Append instructions telling Claude to “only report findings you are highly confident are genuine problems.”

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 calls the Claude API for each pull request, using tool_use with a report_findings tool that returns a JSON array of finding objects. Each object contains file_path, line_number, severity, category, and description. During testing on a large pull request touching more than 30 files, the response reaches the max_tokens limit and is truncated in the middle of the JSON, causing your pipeline’s parser to fail.

What is the most effective way to handle this?

A.

Split the review into multiple API calls that each analyze a subset of the changed files, and then merge the resulting findings arrays.

B.

Increase max_tokens to the model’s maximum and instruct Claude to keep each finding description under 50 words.

C.

Switch from tool_use to prompting Claude to return findings as a Markdown list.

D.

Add retry logic that detects truncated JSON and resends the request with instructions to report only critical and high-severity findings.

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.

During a billing dispute resolution, your agent successfully retrieves customer info via get_customer and order details via lookup_order , but when attempting to call process_refund , the tool returns a timeout error. The agent has enough information to explain the charges and verify refund eligibility, but cannot actually process the refund due to the backend failure.

What approach best balances first-contact resolution with appropriate error handling?

A.

Implement automatic retries with exponential backoff for process_refund , keeping the conversation open until the refund is successfully processed.

B.

Confirm the refund will be processed and close the conversation, since the system has all necessary information to complete it automatically.

C.

Explain the billing, confirm refund eligibility, acknowledge the system issue preventing immediate processing, and offer escalation or retry later.

D.

Escalate immediately to a human agent since the refund action cannot be completed.

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.

Your team has connected a custom MCP server that provides DevOps workflow templates. The server exposes several MCP prompts (such as deploy_checklist and incident_response ) in addition to tools.

How do these MCP prompts become accessible within Claude Code?

A.

They are automatically prepended to every conversation as additional system-level context, influencing Claude’s behavior throughout the session.

B.

They are added to Claude Code’s tool registry alongside the server’s tools, invoked automatically by the model when relevant to the task.

C.

They are surfaced as @ -mentionable resources alongside files, fetched and attached to your message when referenced.

D.

They appear as slash commands (e.g., /mcp__servername__deploy_checklist ) that you can invoke, with arguments passed after the command name.

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?

A.

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.

B.

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.

C.

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.

D.

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.