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

Complete CCAR-F Anthropic Materials

Page: 7 / 11
Total 152 questions

Claude Certified Architect – Foundations Questions and Answers

Question 25

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.

Your extraction system uses tool use with a JSON schema containing 12 fields and detailed descriptions, totaling approximately 2,500 tokens for the complete tool definition. Processing documents under 150,000 tokens yields 98% accuracy. For documents between 175,000 and 190,000 tokens, accuracy drops to 71%, with information from the final third consistently missed. The model’s context window is 200,000 tokens.

What is the most likely cause?

Options:

A.

Schemas exceeding eight to ten fields increase decision complexity during parameter generation, reducing extraction accuracy independently of document length.

B.

The model distributes attention proportionally across the input length, causing fields mentioned only once near the document’s end to receive insufficient processing focus.

C.

Very long documents exceed the model’s effective attention span regardless of context limits, causing accuracy degradation for content farther from the prompt instructions.

D.

Tool definitions consume input-context tokens. Combined with system prompts and document content, the total approaches the context limit, degrading end-of-document processing.

Question 26

The synthesis agent completes its initial pass but flags that three key research questions remain unanswered because the web-search and document-analysis agents did not find relevant information on those specific subtopics. The coordinator currently proceeds directly to report generation, producing reports with incomplete coverage. What change would most effectively improve research completeness?

Options:

A.

Have the coordinator evaluate the synthesis output for gaps, then redelegate targeted queries to the web-search and document-analysis agents before invoking synthesis again.

B.

Have the report-generation agent identify unanswered research questions so users understand the limitations of the final output.

C.

Increase the initial breadth of queries sent to the web-search and document-analysis agents to reduce the probability of missing relevant information.

D.

Give the synthesis agent direct access to web-search tools so it can autonomously fill knowledge gaps without returning control to the coordinator.

Question 27

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.

Question 28

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 pipeline runs:

PROMPT= ' You are a code reviewer. Analyze the provided diff for bugs, security issues, and style violations. '

claude -p \

--dangerously-skip-permissions \

--system-prompt " $PROMPT " \

< diff.txt

The reviews complete and return feedback, but Claude only comments on the piped diff text—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 inspect related repository files while still applying your custom review instructions?

Options:

A.

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

B.

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

C.

Stop piping the diff through standard input and embed it inside the prompt, so Claude Code treats the invocation as an agentic session.

D.

Replace --system-prompt with --append-system-prompt and explicitly instruct Claude to inspect related repository files whenever broader context is needed.

Page: 7 / 11
Total 152 questions