Check the style and quality of the material before you buy.
Question 1
A developer has built their complete agent system and needs to do a final review before productiondeployment. According to the exam guide's reliability checklist, which of the following is NOT arecommended pre-deployment check?
A. Verify that all safety-critical rules are enforced via hooks/code rather than only via prompts
B. Confirm that rate limiting and circuit breakers are configured for all external tool calls
C. Ensure 100% test coverage of all possible user input combinations
D. Validate that compaction preserves critical state information through custom instructions
Answer: C
Explanation
"Ensure 100% test coverage of all possible user input combinations" is not a realistic or recommended pre-deployment check for agent systems. Here's why: User inputs are essentially infinite and unpredictable — it's technically impossible to enumerate and test every possible combination. The exam guide (and general AI/agent engineering best practices) focuses on risk-based testing, not exhaustive input coverage. Aiming for 100% input coverage is a false goal that would consume unlimited time and resources without meaningfully improving reliability. Why the other options ARE legitimate checks:
A. Safety-critical rules enforced via hooks/code (not just prompts) This is a core principle in Claude agent design — prompts alone can be ignored or bypassed, so critical guardrails must be enforced at the code/infrastructure level.
B. Rate limiting and circuit breakers for external tool calls Essential for production reliability. Without these, a misbehaving tool or external API can cascade into full system failure. This is a standard reliability checklist item.
D. Compaction preserves critical state via custom instructions In long-running agents, context windows get compacted (summarized). If critical state isn't preserved through that process, the agent can lose important context mid-task. Validating this is a real and important pre-deployment concern.
Question 2
Your organization is building a document review agent that processes hundreds of contracts daily. Eachcontract review generates a structured report. They want to measure the quality of reviews over time todetect drift or degradation. What evaluation architecture supports continuous quality monitoring?
A. Randomly sample 5% of reviews for manual human evaluation weekly
B. Run every review through a second Claude evaluation pass that scores quality on predefined
dimensions
C. Compare each review's structure to a template and flag deviations
D. Use a combination: automated structural checks on 100% of reviews plus LLM-based evaluation on
10% sample plus human review of flagged outliers
Answer: D
Explanation
D describes a layered evaluation architecture — which is the recommended approach for continuous quality monitoring at scale. Let's break it down: LayerWhat it doesCoverageAutomated structural checksFast, cheap, catches obvious issues100% of reviewsLLM-based evaluationScores quality on deeper dimensions10% sampleHuman reviewCatches what automation misses, validates edge casesFlagged outliers only This gives you: Full coverage for structural issues Deep quality scoring without the cost of running LLM eval on everything Human judgment where it matters most This is exactly how production AI monitoring systems are designed — not one method alone, but complementary layers. Why the others fall short:
A. 5% manual review weekly Too slow to detect drift in real time Human-only evaluation doesn't scale to hundreds of contracts daily Weekly cadence means problems can go undetected for days
B. Second Claude pass on every review Expensive and slow at 100% coverage LLM evaluating LLM output can have correlated blind spots — Claude may consistently miss the same errors Not sustainable as volume grows
C. Template structure comparison only Only catches formatting/structural deviations Completely misses content quality, accuracy, and reasoning issues Too shallow for meaningful quality monitoring
Question 3
A developer needs to understand how Claude handles system prompt instructions vs. user instructionswhen they conflict. A system prompt says 'Always respond in formal English' but a user says 'talk tome casually bro.' What is the expected behavior according to Claude's instruction hierarchy?
A. User instructions always override system prompt instructions
B. Claude will average the two styles and respond in semi-formal language
C. System prompt instructions take precedence over user instructions — Claude should maintain
formal English
D. The most recent instruction takes precedence regardless of source
Answer: C
Explanation
According to Claude's instruction hierarchy: The system prompt is set by the operator (the developer/organization deploying Claude) The user is the end user interacting with Claude Operators have higher trust than users in Claude's hierarchy Therefore, system prompt instructions take precedence over conflicting user instructions In this case, the operator has explicitly set a rule — "Always respond in formal English" — so Claude should maintain that regardless of what the user requests. Why the others are wrong:
A. User instructions always override system prompt Completely backwards. Users have less authority than operators by design. Operators set the rules for how Claude behaves in their product.
B. Claude averages the two styles (semi-formal) Claude doesn't "split the difference." It follows the hierarchy. There's no blending mechanism — that would undermine the whole point of operator control.
D. Most recent instruction wins regardless of source This is how a simple chatbot might work, but not Claude. Recency doesn't trump hierarchy. A user saying something last doesn't override what the operator established in the system prompt.
Question 4
A team implements an agent with the Agent SDK. They want to add observability: logging each toolcall with timing, inputs, outputs, and model decisions. The Agent SDK uses setting_sources forconfiguration. Where should they implement the logging?
A. In the system prompt: 'Log every tool call you make with its parameters and timing'
B. Enable debug mode in the Agent SDK to get automatic logging
C. Wrap each tool handler with a logging decorator that captures inputs, outputs, execution time, and
errors before returning results to the Agent SDK
D. Add a 'log' tool that Claude calls after every operation
Answer: C
Explanation
The correct answer is C. Why C is correct: Wrapping tool handlers with a logging decorator is the proper software engineering approach for observability. Here's why: It captures logging at the code level — reliable, consistent, and not dependent on Claude's behavior Records inputs, outputs, execution time, and errors automatically every single time Completely transparent to Claude — it doesn't change how the agent thinks or operates This is standard production observability practice (same pattern used with APIs, microservices, etc.) Works with the Agent SDK's architecture by sitting between the SDK and the tool execution python # Simple example of the pattern def logging_decorator(tool_func): def wrapper(*args, **kwargs): start = time.time() result = tool_func(*args, **kwargs) log(tool=tool_func.__name__, inputs=args, output=result, time=time.time()-start) return result return wrapper Why the others are wrong:
A. Log via system prompt Prompting Claude to "log its tool calls" is unreliable — Claude might forget, skip, or format inconsistently Critical observability should never depend on model behavior alone Same principle as the earlier question: safety/reliability rules go in code, not prompts
B. Enable debug mode Debug mode is for development only — not suitable for production observability Typically too verbose, unstructured, and not customizable for business needs Not a real production logging strategy
D. Add a 'log' tool Claude calls after every operation Relies on Claude remembering to call it after every operation — not guaranteed Adds unnecessary tool calls, increasing latency and cost Claude could skip it, call it inconsistently, or get distracted mid-task
Question 5
An architect wants their agent to handle a multi-language customer base (English, Spanish, Japanese).The system prompt is in English. When a customer writes in Japanese, the agent should respond inJapanese. System prompt instructions and tool results are in English. How should the translation behandled?
A. Keep the system prompt and tools in English — Claude naturally responds in the customer'slanguage. Tool results in English are understood by Claude and the response is generated in thedetected language
B. Translate the system prompt into each language and use the matching one per request
C. Use a translation MCP tool to convert everything to the customer's language before Claude
processes it
D. Create separate agent configurations per language
Answer: A
Explanation
The correct answer is A. Why A is correct: Claude is natively multilingual — this is a core capability, not something that needs to be engineered around. Here's why A works: Claude can read and understand English system prompts and tool results Claude can detect the language of the user's message automatically Claude can generate a response in the customer's language (Japanese, Spanish, etc.) even though its internal context is in English No translation infrastructure needed — Claude handles this naturally This is the simplest, most cost-effective, and most reliable architecture. Why the others are wrong:
B. Translate system prompt per language Unnecessary complexity — Claude doesn't need the system prompt in the customer's language to respond in that language Translation of system prompts introduces risk of meaning drift or errors Multiplies maintenance burden (every system prompt change must be updated in N languages)
C. Use a translation MCP tool for everything Massive overhead and latency — translating every input/output through a separate tool Introduces another failure point in the pipeline Completely unnecessary given Claude's native multilingual ability
D. Separate agent configurations per language Huge operational overhead — maintaining multiple agents for what Claude handles natively Scaling problem: what happens when you add a 4th or 5th language? Overkill solution to a non-problem The key principle: Don't engineer solutions for problems Claude already solves natively Claude's multilingual capability means you get language handling for free. A good architect recognizes when to leverage the model's built-in strengths rather than adding unnecessary complexity.
Question 6
A developer is implementing streaming for their Claude integration. They want to display a 'typing'indicator while Claude is generating thinking blocks, and switch to displaying text when the responsetext starts. Which streaming events signal this transition?
A. A 'phase_change' event indicates the switch from thinking to text generation
B. The content_block_stop event for the thinking block followed by content_block_start for the text
block signals the transition
C. The message_delta event includes a 'current_phase' field
D. Thinking and text generation happen in separate streaming connections
Answer: B
Explanation
The correct answer is B. Why B is correct: Claude's streaming API uses content block events to signal what type of content is being generated. The transition from thinking to text happens like this: content_block_start (type: "thinking") ? show typing indicator delta events... ? still thinking content_block_stop ? thinking done ? content_block_start (type: "text") ? switch to text display ? delta events... ? stream text to UI content_block_stop ? response complete So the exact transition signal is: content_block_stop ending the thinking block ? hide typing indicator content_block_start with type "text" ? begin displaying streamed text This gives you precise, reliable control over your UI state. Why the others are wrong:
A. phase_change event This event does not exist in the Anthropic streaming API A made-up event — don't be fooled by plausible-sounding names in exam questions
C. message_delta includes a current_phase field Also does not exist — message_delta carries token usage and stop reasons, not phase information Another fabricated field
D. Separate streaming connections for thinking vs text Completely false — everything happens over a single streaming connection Splitting connections would be architecturally bizarre and unnecessary The key principle: Content blocks are the fundamental unit of streaming structure in Claude's API Each block has a clear lifecycle — start ? deltas ? stop — and the type field on content_block_start tells you exactly what's coming. This is how you build responsive, accurate streaming UIs.
Question 7
A team builds an MCP tool that manages Kubernetes clusters. The tool includes operations likescale_deployment, delete_pod, and drain_node. These are high-impact operations that should requireconfirmation. How should the tool design handle dangerous operations?
A. Add 'DANGEROUS:' prefix to tool descriptions and rely on Claude to warn the user
B. Separate dangerous tools into a different MCP server that requires admin credentials
C. Require the user to type 'CONFIRM' before each dangerous operation
D. Implement a two-phase execution: the tool first returns a preview of what will happen (dry run), and
requires a second call with a confirmation token to execute
Answer: D
Explanation
The correct answer is D. Why D is correct: The two-phase execution pattern (dry run + confirmation token) is the proper engineering solution for dangerous operations. Here's how it works: Phase 1 — Preview: User/Claude calls scale_deployment(replicas=0) Tool returns: { "preview": "This will scale deployment 'api-server' to 0 replicas, causing downtime for all users", "confirmation_token": "abc123xyz", "expires_in": 60 } Phase 2 — Execute: Claude shows preview to user, user confirms Tool called again with confirmation_token: "abc123xyz" ? Operation executes Why this is the right approach: Confirmation is enforced at the code/tool level — not dependent on Claude's behavior The preview gives Claude and the user full understanding of consequences before acting The token ensures the exact same operation is confirmed (no bait-and-switch) Token expiry prevents stale confirmations from executing later This is a well-established pattern in infrastructure tooling (Terraform plan ? apply, kubectl dry-run ? apply) Why the others are wrong:
A. 'DANGEROUS:' prefix in description, rely on Claude to warn Relies entirely on Claude's behavior — not guaranteed or enforceable Claude might warn inconsistently or skip warnings under certain prompting Critical safety must live in code, not prompts (recurring principle)
B. Separate MCP server with admin credentials Adds access control but doesn't solve the confirmation problem An admin with credentials can still accidentally trigger dangerous operations Credentials ? confirmation of intent
C. Require user to type 'CONFIRM' Better than A, but still weak — it's just a string check with no context Doesn't show the user what they're confirming (no preview) Can become muscle memory — users type CONFIRM without reading No token means no guarantee the confirmed action matches what executes The key principle: High-impact irreversible operations need enforcement at the tool level with a preview-before-execute pattern This is the same philosophy as the logging and safety questions — anything critical must be handled in infrastructure/code, not left to Claude or user discipline alone.
Question 8
A senior developer is optimizing their token costs. They discover that 60% of their API cost comesfrom input tokens (most content is repeated context). Only 15% comes from output tokens, and 25%from thinking tokens. What optimization provides the biggest cost reduction?
A. Reduce output length with max_tokens to save on the 15% output cost
B. Reduce thinking budget to save on the 25% thinking cost
C. Switch to a smaller model that has lower per-token costs across all categories
D. Implement prompt caching to save on the 60% input cost — cache reads cost only 10% of base
input price
Answer: D
Explanation
The correct answer is D. Why D is correct: The math is straightforward — attack the biggest cost first. Cost Category% of TotalOptimizationPotential SavingInput tokens60%Prompt caching (90% discount)~54% of total costThinking tokens25%Reduce budgetPartial savingOutput tokens15%Reduce max_tokensMinimal saving Prompt caching charges cache reads at only 10% of the base input price — a 90% discount on that category. Since input tokens are 60% of total cost: Without caching: 60% of bill = input tokens With caching: 60% × 10% = 6% of bill for same content Savings = ~54% reduction in total API cost This is the highest leverage optimization by far — especially when the developer already confirmed that "most content is repeated context," which is exactly the use case prompt caching is designed for. Why the others are wrong:
A. Reduce output length (15% of cost) You're optimizing the smallest slice of the bill Even cutting output tokens by 50% only saves ~7.5% total Low leverage
B. Reduce thinking budget (25% of cost) Better than A, but thinking tokens often directly affect output quality Cutting thinking to save cost can degrade the very results you're paying for Still less leverage than caching the 60%
C. Switch to a smaller model Reduces costs across all categories proportionally But sacrifices capability and quality — may not be acceptable for the use case Also doesn't exploit the specific insight that repeated context is the problem Blunt instrument vs. targeted fix The key principle: Always optimize the largest cost driver first, and use the tool designed specifically for that problem Prompt caching exists precisely for repeated context scenarios. When 60% of your cost is repeated input and caching gives a 90% discount on that — it's not even a close call.
Question 9
A developer is configuring Claude Code for a project that uses both JavaScript and Rust. TheJavaScript code follows Prettier formatting while Rust follows rustfmt conventions. How shouldCLAUDE.md handle this dual-language setup?
A. Include both formatting conventions in the root CLAUDE.md with clear section headers
B. Create separate CLAUDE.md files in the js/ and rust/ directories
C. Use .claude/rules/ with glob-based rules: one file with **/*.js,**/*.ts pattern for Prettier rules, and
another with **/*.rs pattern for rustfmt rules
D. Rely on the language-specific formatters and don't include formatting rules in CLAUDE.md
Answer: C
Explanation
The correct answer is C. Why C is correct: Using glob-based rules in .claude/rules/ is the most precise and scalable approach for a dual-language setup: .claude/ rules/ javascript.md # applies to **/*.js, **/*.ts rust.md # applies to **/*.rs Each rules file only activates when Claude is working on files that match its glob pattern. So: Editing a .js file ? Prettier rules load automatically Editing a .rs file ? rustfmt rules load automatically No cross-contamination between language conventions Why this is best: Rules are context-activated — Claude gets exactly the relevant rules for the file it's editing Clean separation of concerns — each language's conventions live in their own file Scales easily — adding a 3rd language (Python, Go, etc.) is just adding another rules file No cognitive overhead — Claude isn't processing Rust rules while editing JavaScript Why the others are wrong:
A. Both conventions in root CLAUDE.md with section headers Claude loads all rules for every file regardless of language Risk of confusion or mixing conventions when context switching Works but is less precise than glob-based targeting
B. Separate CLAUDE.md in js/ and rust/ directories Only works if your project is strictly separated by directory Real projects often have mixed structures or shared directories Less flexible than glob patterns which match by file extension regardless of location
D. Rely on formatters, skip CLAUDE.md entirely Formatters handle auto-formatting but Claude still needs to know conventions when writing new code Without rules, Claude may generate code that passes logic but fails formatting checks Leaves Claude without guidance on style decisions formatters don't enforce The key principle: Glob-based rules give Claude precise, context-aware instructions — the right rules for the right files at the right time This is the most targeted and maintainable architecture for multi-language projects in Claude Code.
Question 10
A platform engineer is building a system where multiple Claude agents share information through acentralized message bus. Agent A publishes analysis results, Agents B and C consume results relevantto their domains. The messages include metadata, status, and data payloads. What is the keyconsideration for the message format?
A. Use the same structured format that each consuming agent can parse without additional tool calls,
with clear metadata for routing and versioning
B. Use plain text messages for maximum compatibility
C. Use different formats per agent pair for maximum efficiency
D. Let each agent define its preferred input format
Answer: A
Explanation
The correct answer is A. Why A is correct: In a multi-agent message bus architecture, the message format is the contract between all agents. A well-designed format needs: json { "metadata": { "source_agent": "agent_a", "message_id": "uuid-123", "timestamp": "2026-04-30T10:00:00Z", "version": "1.2", "domain": "financial_analysis" }, "status": "completed", "data": { "result": "...", "confidence": 0.95 } } Why this is the right approach: Structured format means agents can parse directly without extra tool calls — reducing latency and cost Clear metadata enables routing (Agent B and C only consume messages relevant to their domain) Versioning in metadata allows the system to evolve without breaking existing consumers Consistency means all agents speak the same language — no translation layer needed This mirrors real-world message bus design (Kafka, RabbitMQ, etc.) — proven patterns apply Why the others are wrong:
B. Plain text for maximum compatibility Plain text requires each agent to parse/interpret meaning from unstructured content — unreliable and expensive No standard structure means no reliable routing or versioning "Maximum compatibility" is a false benefit — structured formats like JSON are universally compatible
C. Different formats per agent pair Creates an N×N compatibility problem — every new agent needs custom format handling for every other agent Impossible to maintain at scale Defeats the entire purpose of a centralized message bus
D. Let each agent define its preferred input format Same problem as C — no shared contract means chaos Agent A would need to know every consumer's preferred format and publish multiple versions Not scalable and tightly couples producers to consumers The key principle: In multi-agent systems, a shared structured message format with metadata for routing and versioning is the foundation of a maintainable, scalable architecture The message bus is only as good as the contract it enforces. Option A is the only answer that treats the message format as a first-class architectural concern rather than an afterthought.
Why RealExamCollection is the best choice for Anthropic CCA-F exam preparation
Secure your position in a competitive IT industry
The Anthropic CCA-F certification is a strong way to demonstrate your understanding and ability. Our CCA-F questions & answers help you prepare for it, so you can secure your current position and move your career forward.
Reviewed by IT professionals
We keep our CCA-F practice questions up to date, with explanations. The questions and answers on RealExamCollection are reviewed by people with professional experience of Anthropic technologies.
One place to prepare
RealExamCollection brings together the material you need for the Anthropic CCA-F exam. Explanations are added to the questions to help you understand the logic behind them and prepare for other Anthropic exams.
Updated CCA-F questions & answers
We update the exam files regularly to add new questions. The date of the latest update is shown at the top of this page.
Free CCA-F demo before you buy
You can view sample CCA-F questions on this page before buying, to see the format and pattern of the material.
90 days of free updates
You are eligible for 90 days of free updates after buying the CCA-F exam. If the file is updated in that time, you can download the latest version from your account.