Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free Anthropic CCAR-F Practice Exam with Questions & Answers | Set: 5

Questions 41

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?

Options:
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.

Anthropic CCAR-F Premium Access
Questions 42

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 testing, you find that when a customer says “I need a refund for my recent purchase,” the agent calls process_refund immediately—but populates the required order_id parameter with a plausible-looking but fabricated value instead of first calling lookup_order to retrieve the actual order ID. The refund call fails because the fabricated ID doesn’t exist.

Which change directly addresses the root cause of the agent fabricating the order_id value?

Options:
A.

Update the process_refund tool description to explicitly state that order_id must be obtained from a prior lookup_order call and must never be assumed or invented.

B.

Switch tool_choice from " auto " to " any " to force the agent to make a tool call on every turn.

C.

Add server-side validation that checks whether the order_id exists in your database before executing the refund, returning an error to the agent if not found.

D.

Pre-parse incoming customer messages to extract any order IDs mentioned, and inject them into the conversation context before passing to Claude.

Questions 43

Your test-generation process produces unit tests for new code, but reviews show that 55% are low-value: trivial assertions that verify only that functions do not throw exceptions, tests that duplicate existing coverage, or tests that ignore your team’s fixture conventions. How should you reduce the rate of low-value tests being generated in the first place?

Options:
A.

Restrict test generation to directories where historical quality metrics show higher acceptance rates, disabling it in areas where generated tests consistently require substantial editing.

B.

Implement two-phase generation in which a second Claude call scores every test against quality criteria and filters out low-scoring tests before presenting them to developers.

C.

Document your testing standards in CLAUDE.md, including valuable-test criteria, available fixtures and their intended uses, and examples distinguishing meaningful behavioural tests from trivial assertions.

D.

Add post-generation coverage analysis that automatically filters out every generated test that does not increase line coverage beyond the existing test suite.

Questions 44

Your pipeline runs:

PROMPT= " You are a code reviewer. "

PROMPT= " $PROMPT Analyze the provided diff "

PROMPT= " $PROMPT for bugs, security issues, "

PROMPT= " $PROMPT and style violations. "

claude -p \

--dangerously-skip-permissions \

--system-prompt " $PROMPT " < diff.txt

The reviews complete and return feedback, but Claude comments only on the piped diff—it never reads surrounding files in the checked-out repository to understand broader context, even when the diff modifies a function called by many other modules. Which change to the invocation will cause Claude to read related repository files while still applying your custom review instructions?

Options:
A.

Keep --system-prompt and add --allowedTools " Read, Glob, Grep " because non-interactive -p mode otherwise disables filesystem tools.

B.

Replace --system-prompt with --append-system-prompt so the review instructions are added to Claude Code’s default prompt instead of overwriting its built-in file-reading and code-navigation guidance.

C.

Remove --system-prompt entirely and place the review instructions in a root-level CLAUDE.md because --system-prompt is incompatible with tool use under -p.

D.

Stop piping the diff through standard input and embed it in the prompt string so Claude Code treats the invocation as an agentic session rather than a stream-processing operation.

Questions 45

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

After implementing tool use with strict schema definitions, JSON syntax errors are eliminated, but 5% of extractions still contain empty arrays or null values for required fields such as citations and methodology. Spot-checking reveals that the source documents contain this information, but in varied formats—inline citations versus bibliographies, and methodology sections versus details embedded in introductions.

What is the most effective way to address these failures?

Options:
A.

Implement retry logic that resends requests when validation detects empty required fields.

B.

Add few-shot examples demonstrating extractions from documents with varied structures, showing how to identify citations in different formats and locate methodology details across section types.

C.

Build a regex-based post-processing layer that scans source documents for citation patterns and methodology keywords, populating empty fields when the model fails to extract them.

D.

Modify the schema to make citations and methodology optional, and flag incomplete records for manual review instead of failing validation.

Exam Code: CCAR-F
Certification Provider: Anthropic
Exam Name: Claude Certified Architect – Foundations
Last Update: Aug 22, 2026
Questions: 152