Practice Free CCA-F Exam Online Questions
The agent attempts to call a lookup_order tool, but the backend database is down due to a timeout.
What structured error response should the tool return to the agent?
- A . An empty JSON array [J so the agent can smoothly transition to an alternative tool.
- B . A structured object containing isError: true, an error category of ‘timeout’, isRetryab1e: true, and context of what was attempted.
- C . A generic string " Operation failed"} to avoid leaking infrastructure details to the LLM.
- D . {"error: " A fatal exception that immediately terminates the agentic loop.
What is the primary difference in tool usage between Plan Mode and Direct Execution in Claude Code?
- A . Plan Mode uses Write and Edit heavily to scaffold boilerplate code.
- B . Plan Mode restricts Claude to using only read-only tools to analyze the codebase before executing.
- C . Plan Mode completely disables all tool usage until the user explicitly permits it.
- D . Plan Mode automatically switches to a higher-tier model with larger tool capabilities.
To ensure that a model consistently classifies the severity of identified code issues, what is the best prompt engineering technique?
- A . Define explicit severity criteria with concrete code examples for each severity level.
- B . Instruct the model to self-report a confidence score from 1-10 for each finding.
- C . Allow the model to dynamically generate severity labels based on context.
- D . Lower the max_tokens limit so the model focuses only on critical bugs.
Which of the following are valid applications of few-shot prompting in a structured data extraction workflow? Choose 2 correct answers.
- A . Demonstrating ambiguous-case handling, such as extracting informal measurements.
- B . Enforcing JSON syntax compliance and eliminating trailing comma errors in outputs.
- C . Demonstrating the specific desired output format, including location, issue, and severity, to achieve consistency.
- D . Replacing the need for a validation-retry loop by guaranteeing 100% semantic correctness.
Your customer support agent needs a strict limit preventing it from processing refunds exceeding $500.
What is the most deterministic architectural method to enforce this?
- A . Add a capitalized warning in the system prompt: ‘NEVER process a refund exceeding $500.’
- B . Provide several few-shot examples in the prompt showing the agent successfully refusing high-value refunds.
- C . Set the tool_choice parameter to ‘auto’ so the model can dynamically reject the action.
- D . Implement a PostToolUse hook to intercept the process_refund tool call and block it programmatically if the amount exceeds 500.
When using a hook to normalize heterogeneous data formats (e.g., standardizing different date formats returned by multiple external APIs) before the LLM processes them, which hook pattern is typically used?
- A . A PreToolUse hook that modifies the user’s prompt.
- B . A PostToolUse hook that intercepts and transforms the tool results.
- C . A Notification hook that alerts the user of data inconsistencies.
- D . A SubagentStop hook that triggers re-evaluation.
Which of the following is considered a valid, architecturally sound trigger for escalating an autonomous agent session to a human agent?
- A . The customer’s text exhibits highly negative sentiment.
- B . The model’s self-reported conversational confidence score drops below 0.6.
- C . A policy gap is detected that is not covered by existing knowledge base rules.
- D . The conversation length exceeds 5 turns.
You need Claude to output raw JSON directly to the user interface of your application, without any conversational preamble or markdown formatting.
Which prompt engineering technique achieves this?
- A . Add "DO NOT USE MARKDOWN" to the end of the user prompt.
- B . Combine Assistant Message Prefilling “`json with and use “`as a stop sequence.
- C . Set max_tokens to exactly match the length of the JSON string.
- D . Provide a 10-shot example list of raw JSON outputs.
A developer at builds an MCP server to standardize repetitive actions for the engineering team. They want to provide ready-to-use message sequences with specific formatting instructions that bypass the need for users to write them from scratch.
Which MCP component fulfills this requirement?
- A . MCP Subagents
- B . MCP Prompts
- C . MCP Tools
- D . MCP Resources
You want to ensure specific testing conventions are automatically applied whenever Claude generates or edits a test file (e.g., *. test. tsx). These test files are spread across dozens of different subdirectories.
What is the most maintainable configuration approach?
- A . Create a rule file in. claude/rules/with YAML frontmatter specifying paths: test .tsx"].
- B . Place a separate CLAUDE .md file in every single subdirectory that contains test files.
- C . Consolidate all testing conventions in the root CLAUDE. md file under a general testing header and rely on semantic inference.
- D . Create a custom slash command that manually injects testing rules when invoked during a session.
