Summer Certification Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

CCAR-F VCE Exam Download

Page: 4 / 11
Total 152 questions

Claude Certified Architect – Foundations Questions and Answers

Question 13

Your code-review prompts include both implementation changes and the corresponding test file, but the review comments fail to identify untested code paths. The model correctly flags functions that have no tests at all, but it fails to recognize when conditional branches or error-handling paths within tested functions lack coverage. What is the most effective way to improve branch-level gap detection without overcomplicating the pipeline?

Options:

A.

Interleave the implementation and tests in the prompt, presenting each function immediately before its test cases.

B.

Add explicit instructions requiring Claude to enumerate every conditional branch and exception path, then verify that each path has a corresponding test assertion.

C.

Implement a two-pass pipeline in which one model call extracts all conditional branches and another cross-references them against test assertions.

D.

Include few-shot examples showing code with an uncovered branch and the corresponding review comment identifying the missing test case.

Question 14

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.

Compliance requires that refunds exceeding $500 must automatically escalate to a human agent—this rule cannot be left to model discretion. Despite clear system prompt instructions, production logs show the agent occasionally processes high-value refunds directly (3% failure rate).

How should you achieve guaranteed compliance?

Options:

A.

Add few-shot examples to the prompt showing correct escalation behavior at various refund amounts ($400, $500, $600).

B.

Strengthen the system prompt with emphatic language: “CRITICAL POLICY: Refunds over $500 MUST trigger human escalation. NEVER process these directly.”

C.

Modify the refund tool to return an error with message “Amount exceeds policy limit—please escalate” when the threshold is exceeded.

D.

Implement a hook to intercept tool calls, when the refund process amount exceeds $500, block it and invoke human escalation.

Question 15

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.

During initial testing of the automated review pipeline, you notice that reviews on large pull requests containing more than 50 changed files sometimes take over 20 minutes and cost $8–$12 per run because of extensive agentic loops. Claude reads files, runs analysis tools, and iterates many times. Your team needs each invocation to abort once it reaches both a fixed iteration count and a fixed dollar amount, enforced by Claude Code itself rather than by the surrounding job runner.

Which configuration change directly enforces both per-invocation caps?

Options:

A.

Switch the --model flag to a smaller, less expensive model so each iteration uses fewer tokens and has a lower per-call cost.

B.

Set timeout-minutes: 5 on the GitHub Actions job step and monitor per-run costs through the Anthropic Console usage dashboard.

C.

Add --max-turns 10 --max-budget-usd 2.00 to the claude -p invocation to cap iterations and spending.

D.

Set --permission-mode dontAsk to automatically deny tool-permission requests not included in the explicitly allowed set.

Question 16

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, and Glob—and integrates with Model Context Protocol (MCP) servers.

You are building a security-scanning workflow.

When engineers need to locate every occurrence of a dangerous function such as eval() across a large codebase, which tool should the agent use for content searching?

Options:

A.

Use Glob with a pattern such as **/eval* to locate files, and then read each matching file.

B.

Use Grep to search for the regular-expression pattern eval\( across all files in the codebase.

C.

Read the project’s main entry file and follow import statements to trace where eval() might be used.

D.

Use Bash to run ls -R | grep eval and search the recursively listed filenames.

Page: 4 / 11
Total 152 questions