CCAR-F: Claude Certified Architect - Foundations

CCAR-F: Claude Certified Architect - Foundations practice questions, page 6 of 6, with answer review and explanations.

Get the full CCAR-F practice test · 137 questions, PDF and online test engine

Question 26

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 extraction pipeline processes restaurant menus and must output structured JSON with fields for item names, descriptions, prices, and dietary tags. Some menus use inconsistent formatting – prices as “$12” vs “12.00”, dietary info as icons vs text. What’s the most reliable approach?

  1. Use separate extraction calls for each field to ensure consistent handling of each type.
  2. Extract data as-is and normalize formats in post-processing code after Claude returns.
  3. Define a strict output schema and include format normalization rules in your prompt.
  4. Request multiple extraction attempts per document and select the most common format.

Answer: C. Define a strict output schema and include format normalization rules in your prompt.

Explanation: A strict schema ensures consistent structure and data types, while explicit normalization rules tell the model how to standardize variations such as currency formatting and dietary indicators. This produces cleaner, more predictable output before it reaches downstream systems.

Question 27

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. During testing, you observe that in extended exploration sessions (30+ minutes), the agent starts giving inconsistent answers about code structure it discussed earlier. Engineers report having to repeat context about modules they’ve already explored. What’s the most effective approach to address this?

  1. Have the agent maintain a scratchpad file that records key findings, referencing it for subsequent questions.
  2. Create summaries of all source files before exploration begins, loading only these compressed representations into context.
  3. Implement automatic context clearing every 15 minutes to ensure the agent starts with fresh, uncontaminated context.
  4. Switch to a higher-capacity model tier to provide more context window space for accumulated exploration data.

Answer: A. Have the agent maintain a scratchpad file that records key findings, referencing it for subsequent questions.

Explanation: Maintaining a persistent scratchpad of important discoveries gives the agent an external memory source that survives long exploration sessions and context-window pressure. The agent can record module relationships, architectural findings, assumptions, and prior conclusions, then consult that file later instead of relying entirely on conversational context that may be truncated, compressed, or deprioritized.

Get the full CCAR-F practice test · 137 questions, PDF and online test engine