Summer Sale Limited Time 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = simple75

Pass the Anthropic Claude Certified Architect CCAR-F Questions and answers with Dumpstech

Exam CCAR-F Premium Access

View all detail and faqs for the CCAR-F exam

Practice at least 50% of the questions to maximize your chances of passing.
Viewing page 4 out of 5 pages
Viewing questions 31-40 out of questions
Questions # 31:

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.

The system needs to extract candidate information (name, contact details, skills, work experience, education) from uploaded resumes. The extracted data must strictly conform to a predefined JSON schema, as missing required fields or incorrect data types will cause downstream validation failures.

What is the most reliable approach to ensure Claude’s output consistently matches the schema?

Options:

A.

Parse Claude’s text response with regex patterns to extract JSON objects, using retry logic for malformed responses.

B.

Include detailed JSON formatting instructions and a template example in the system prompt, asking Claude to output only valid JSON.

C.

Make two separate API calls—first extracting information as text, then asking Claude to format that text as JSON.

D.

Define a tool with an input schema matching your required JSON structure and extract the data from Claude’s tool_use response.

Questions # 32:

After investigating a billing dispute for more than 25 turns, you determine that duplicate charges resulted from a payment-gateway timeout triggering retry logic. The required refund of $847 exceeds your $500 authorization limit, so you must invoke escalate_to_human. The human agent will not have access to the conversation transcript. What context should you pass to enable effective resolution?

Options:

A.

The complete conversation transcript containing every message and tool result.

B.

The customer’s original complaint verbatim together with excerpts from the tool results showing the duplicate transactions.

C.

A structured summary containing the customer identifier, verified root cause, refund amount, relevant transaction identifiers, actions already attempted, and recommended next action.

D.

Only the diagnosis and refund amount.

Questions # 33:

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 code review is missing genuine bugs in pull requests. Investigation reveals that your review prompt includes the instruction: “Only flag critical issues that would definitely cause production failures. Ignore minor concerns and anything you are uncertain about.” Developers confirm that some missed bugs are genuine logic errors that the model investigated but chose not to report. The team requires the review output to remain structured, with each finding tagged with metadata, and actionable.

Which prompt change both removes the cause of the suppressed findings and preserves structured, tagged output for downstream filtering?

Options:

A.

Add a second review pass that rereads the diff using the same prompt, looking for anything the first pass may have missed.

B.

Instruct the model to report all findings with confidence and severity tags, deferring filtering to a downstream step.

C.

Remove all severity-related instructions from the prompt and let the model use its default judgment about what to report.

D.

Enable extended thinking and instruct the model to reason step by step about every code change before producing its review.

Questions # 34:

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 reveal inconsistent error handling: when lookup_order fails, the agent sometimes retries 5+ times (wasteful when the order ID doesn’t exist), sometimes escalates immediately (premature for temporary network issues), and sometimes asks users for clarification (inappropriate when the issue is a backend permission error). Investigation shows your MCP tool returns uniform error responses: { " isError " : true, " content " : [{ " type " : " text " , " text " : " Operation failed " }]} . The agent cannot distinguish between error types.

What’s the most effective improvement?

Options:

A.

Enhance error responses with structured metadata—include error_category (transient/validation/permission), isRetryable boolean, and a description of what caused the failure.

B.

Implement retry logic with exponential backoff in your MCP server for all errors, returning to the agent only after retries are exhausted.

C.

Create an analyze_error MCP tool the agent calls after any failure to determine the error category and recommended action.

D.

Add few-shot examples to the system prompt demonstrating how to interpret error message patterns and select appropriate responses for each.

Questions # 35:

Your pipeline reviews approximately 200 database-migration scripts daily using the Message Batches API. Each request includes a shared 8,000-token system prompt containing migration-review guidelines and schema documentation, followed by an individual migration script. You added cache_control breakpoints to the shared system prompt in every request, but monitoring shows cache-hit rates of only 32%, with misses concentrated among requests processed later in the batch window. Which change addresses the root cause without adding sequential-processing latency?

Options:

A.

Split the 200 requests into ten sequential batches of 20, submitting each batch only after the previous batch completes.

B.

Add cache-prewarming requests with max_tokens: 0 at the beginning of every batch.

C.

Move the cache_control breakpoint from the shared system prompt to each migration script so similar code patterns can be reused.

D.

Configure the cache breakpoints to use the extended one-hour TTL instead of the default five-minute TTL.

Questions # 36:

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 three requirements for Claude Code’s behavior in your project:

    Claude must never modify files in the db/migrations/ directory.

    Claude should prefer your custom logging module over console.log .

    All TypeScript files must be auto-formatted with Prettier after every edit.

All three are currently written as instructions in your project’s CLAUDE.md. During a complex refactoring session, a developer discovers that Claude edited a migration file, violating requirement #1.

How should you restructure these requirements across Claude Code’s configuration mechanisms?

Options:

A.

Move all three requirements into .claude/rules/ as path-scoped rules: one targeting db/migrations/** that forbids editing those files, and others targeting **/*.ts for the logging convention and formatting instruction.

B.

Configure hooks for all three: a PreToolUse hook script that blocks Edit calls targeting db/migrations/ , a PreToolUse hook script that adds logging convention context before edits, and a PostToolUse hook that runs Prettier after TypeScript edits.

C.

Rewrite all three requirements in CLAUDE.md using stronger directive language and add few-shot examples that demonstrate Claude refusing to edit migration files and running Prettier after edits.

D.

Add Edit(./db/migrations/**) to permissions.deny in the project settings, keep the logging preference in CLAUDE.md, and add a PostToolUse hook to run Prettier after TypeScript edits.

Questions # 37:

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.

Your system has been operating with 100% human review for 3 months. Analysis shows that extractions with model confidence ≥90% have 97% accuracy overall. To reduce reviewer workload, you plan to automate high-confidence extractions.

Before deploying, what validation step is most critical?

Options:

A.

Analyze accuracy by document type and field to verify high-confidence extractions perform consistently across all segments, not just in aggregate.

B.

Compare accuracy at different confidence thresholds (85%, 90%, 95%) to find the optimal cutoff that maximizes automation while minimizing errors.

C.

Verify that 97% accuracy meets requirements for all downstream systems that consume the extracted data.

D.

Run a two-week pilot routing 25% of high-confidence extractions directly to downstream systems and monitor error reports.

Questions # 38:

You are building developer productivity tools using the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive tasks. It uses the built-in tools (Read, Write, Bash, Grep, Glob) and integrates with Model Context Protocol (MCP) servers.

Your agent has analyzed a complex service module—reading 23 source files, tracing request flows, and identifying error handling patterns. A developer wants to compare two testing strategies before committing to one: end-to-end tests with mocked external services vs. snapshot tests capturing expected outputs. They need to independently develop both approaches to evaluate trade-offs.

How should you manage the sessions?

Options:

A.

Resume the analysis session with fork_session enabled, creating a separate branch for each testing strategy.

B.

Start two fresh sessions, having each re-read the relevant source files before beginning.

C.

Continue in the original session, developing end-to-end tests first, then snapshot tests sequentially.

D.

Export the analysis session’s key findings to a file, then create two new sessions that reference this file.

Questions # 39:

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.

A security audit requires updating your authentication library from v2 to v3. The migration guide documents breaking changes: authenticate() now returns a Promise instead of accepting a callback, the User type has restructured fields, and three deprecated methods were removed. Grep shows the library is imported in 45 files across several modules.

What’s the most effective approach?

Options:

A.

Create a custom slash command encapsulating the migration transformations, then execute it against each file without prior codebase exploration.

B.

Update the dependency version, run the test suite, and use Claude Code to fix each failure as it appears.

C.

Enter plan mode to explore library usage across modules, map affected code paths, then create a migration strategy before implementing.

D.

Paste the migration guide’s breaking changes into your prompt and use direct execution to update all usages across the 45 files.

Questions # 40:

After deploying the automated review, you notice high precision but low recall—real bugs are slipping through undetected. Investigation reveals that your review prompt instructs Claude to “only report high-confidence issues you are certain about” and “err on the side of not commenting.” Developers appreciate the low noise, but a race condition that caused a production outage was visible in a reviewed pull request and went unreported. You need to substantially improve bug detection while keeping false-positive rates manageable. What is the most effective approach?

Options:

A.

Add detailed few-shot examples demonstrating bug categories Claude should flag—race conditions, null dereferences, and error-handling gaps—while retaining the high-confidence filtering instruction.

B.

Remove the conservative instructions and have Claude report every potential issue, then apply a programmatic filter that deduplicates findings and suppresses historically noisy categories.

C.

Split the review into a finding stage whose objective is comprehensive coverage—reporting every potential issue with confidence and severity metadata—and a separate stage that verifies and thresholds those findings.

D.

Expand the context to include related tests, recent Git history, and the module’s dependency graph so Claude has richer evidence for judging severity.

Viewing page 4 out of 5 pages
Viewing questions 31-40 out of questions