View Full Anthropic CCA-F Exam Dumps and Practice Test Dumps.
Question 1
You are designing an agent that must perform multiple steps using Claude’s tool-use capabilities. After Claude requests a tool, your application should execute it and return the result so Claude can continue reasoning. Which architecture correctly implements this interaction?
- The application sends the user request once and ignores any subsequent tool-use response.
- The application executes every available tool automatically before Claude responds.
- The application detects Claude’s tool-use request, executes the requested tool, and sends the tool result back to Claude.
- The application converts every tool request into a system prompt before execution.
Correct Answer: 3
Explanation
Claude’s tool-use workflow requires the application to act as the bridge between the model and external tools. When Claude determines that a tool is needed, the application receives the tool-use request, validates and executes the appropriate function, and then returns the tool result in the expected format. Claude can use that result to continue the agent loop and determine the next action. Automatically executing every available tool is unsafe and inefficient, while ignoring tool requests prevents the agent from completing tasks. Converting tool calls into system prompts also does not implement the intended tool-use protocol.
Question 2
A production agent sometimes repeats the same tool call indefinitely when an external service continues returning an error. What is the most appropriate architectural improvement?
- Add explicit retry limits and termination conditions to the agent loop.
- Increase the model’s temperature so it chooses different tools.
- Give the agent access to additional tools without changing the loop.
- Remove all error messages from tool responses.
Correct Answer: 1
Explanation
An agentic loop should have explicit controls that prevent unbounded execution. Retry limits, maximum iteration counts, and clear termination conditions allow the application to stop when repeated attempts are unlikely to succeed. Increasing temperature does not guarantee that the model will stop retrying and can make behavior less predictable. Adding more tools may increase complexity without solving the underlying loop problem. Removing error information is particularly harmful because the model needs meaningful feedback to understand why an operation failed. Production agent architectures should enforce safety and reliability controls programmatically rather than depending entirely on model behavior.
Question 3
A team wants Claude to consistently follow project-specific development instructions when using Claude Code. Where should persistent project-level instructions generally be defined?
- In the user’s browser history.
- In a project-level CLAUDE.md file.
- In the operating system’s DNS configuration.
- In the application’s database schema.
Correct Answer: 2
Explanation
A project-level CLAUDE.md file provides persistent instructions that can guide Claude Code when working within that project. Teams can use it to document conventions, development commands, architectural guidance, testing expectations, and other project-specific instructions. Browser history and DNS configuration have no role in communicating development instructions to Claude Code. A database schema may describe application data but does not provide the appropriate mechanism for project-level Claude Code guidance. Keeping these instructions with the project also makes them easier for the development team to review and maintain.
Question 4
An application uses an MCP tool to retrieve customer account information. The tool currently returns a large unstructured text response containing hundreds of fields. Agents frequently select the wrong field. What change would most improve reliability?
- Return even more fields so Claude has additional context.
- Ask Claude to memorize the position of each field.
- Remove validation from the tool response.
- Return a focused, structured response containing clearly named fields.
Correct Answer: 4
Explanation
Tools should expose information in a way that makes the intended data easy for the model to interpret. A focused structured response with descriptive field names reduces ambiguity and makes tool results easier to consume reliably. Returning more irrelevant information increases the model’s processing burden and can make field selection harder. Asking Claude to memorize field positions is fragile because response structure can change. Removing validation also increases the possibility of incorrect or incomplete data reaching downstream logic. Well-designed MCP tools should provide clear schemas and concise outputs aligned with the task the agent needs to perform.
Question 5
A research system uses separate agents for web searching, document analysis, synthesis, and report generation. The final report frequently contains claims that cannot be traced back to their original sources. What design change is most appropriate?
- Pass structured source metadata along with summarized findings between agents.
- Remove all intermediate agents and use only one model call.
- Ask the final agent to invent citations when sources are missing.
- Increase the temperature of the report-generation agent.
Correct Answer: 1
Explanation
Source provenance should be preserved throughout a multi-agent workflow. Each research component can return structured findings together with metadata such as source URLs, document names, identifiers, or relevant sections. The synthesis agent can then combine the findings without losing their origin, allowing the final report generator to produce traceable citations. Removing intermediate agents may eliminate useful specialization but does not inherently solve provenance. Inventing citations creates inaccurate attribution, while temperature changes affect generation variability rather than source tracking. Structured provenance is therefore the architectural mechanism that directly addresses the problem.
Question 6
A developer wants Claude to produce JSON that another application can process automatically. Which approach provides the strongest reliability?
- Tell Claude that JSON would be nice if possible.
- Ask Claude to provide JSON somewhere in a long natural-language response.
- Define the expected structure explicitly and validate the resulting output programmatically.
- Accept any output and let the downstream application interpret it.
Correct Answer: 3
Explanation
Machine-consumed output should have an explicit structure and should be validated before downstream processing. Defining expected fields, types, and constraints gives Claude clearer requirements, while programmatic validation catches malformed or incomplete responses before they reach another system. A vague request provides less control over the output format. Placing JSON inside a broader natural-language response makes automated parsing more difficult. Accepting arbitrary output also creates reliability and security risks. Structured output works best when model generation is combined with deterministic validation and appropriate error handling in the surrounding application.
Question 7
An agent must decide whether to call a weather API, a database lookup tool, or no tool at all. What should primarily determine which tool is selected?
- The order in which tools were registered.
- The relevance of the available tool to the user’s request and its defined schema.
- The alphabetical order of tool names.
- The number of parameters the tool contains.
Correct Answer: 2
Explanation
Tool selection should be driven by the task requirements and the semantic descriptions and schemas provided to Claude. Clear tool names, descriptions, parameters, and expected behavior help the model determine which capability is appropriate. Registration order does not establish semantic priority, and alphabetical ordering has no meaningful relationship to user intent. The number of parameters is also not an indicator that a tool is more appropriate. Good tool design therefore includes precise descriptions and narrowly defined responsibilities so the agent can distinguish between capabilities and select the appropriate one.
Question 8
A Claude Code workflow should automatically run tests after a developer modifies specific files. The team wants this behavior to be enforced consistently rather than relying on developers to remember it. Which approach is most appropriate?
- Put the instruction only in a developer’s personal notes.
- Mention the requirement verbally during team meetings.
- Ask Claude to decide randomly whether tests should run.
- Use an appropriate automated hook or workflow mechanism to enforce the behavior.
Correct Answer: 4
Explanation
When a behavior must occur consistently, deterministic automation is generally more reliable than relying solely on natural-language instructions. A suitable Claude Code hook or workflow mechanism can trigger a predefined action when the relevant event occurs. Personal notes and verbal instructions depend on individual behavior and can easily be forgotten. Asking the model to make a random decision provides no reliability guarantee. The architectural principle is to enforce critical development controls through mechanisms that execute predictably, while using instructions to provide context and guidance where appropriate.
Question 9
A customer-support agent must collect an order number before calling an order lookup tool. The agent sometimes calls the tool with missing information. Which improvement is most effective?
- Define the required order-number parameter in the tool schema and validate it before execution.
- Remove the order number from the tool entirely.
- Allow the tool to execute with an empty parameter.
- Tell the customer to provide the order number only after the tool fails.
Correct Answer: 1
Explanation
Required parameters should be explicitly represented in the tool schema and validated before the underlying operation is executed. This gives Claude a clear indication that the order number is necessary and prevents malformed calls from reaching the backend. Removing the parameter eliminates an important piece of information rather than solving the workflow issue. Allowing empty values can produce unnecessary backend failures. Asking for the information only after the tool fails creates an avoidable error cycle. Strong tool schemas provide both the model and application with a clear contract for valid tool calls.
Question 10
An agent processes a very large document but only needs information from several specific sections. Passing the entire document into every subsequent model call is causing high latency and unnecessary context usage. What is the better approach?
- Duplicate the document in every prompt.
- Increase the number of irrelevant instructions.
- Extract and pass only the relevant information needed for the next step.
- Ask the model to ignore most of the document without changing the context.
Correct Answer: 3
Explanation
Context management is important for both efficiency and reliability. If only specific sections of a large document are relevant, extracting or summarizing those sections before subsequent calls can reduce context size and focus the model on the information required for the task. Repeating the entire document wastes tokens and can increase latency. Adding irrelevant instructions does not improve information retrieval. Simply asking the model to ignore most of the supplied context still requires processing that unnecessary information. Effective systems therefore manage context deliberately and pass the smallest sufficient representation of information between workflow stages.
Question 11
A multi-agent application has a coordinator that delegates specialized tasks to several agents. One specialist returns a failure, but the coordinator treats the response as successful and generates a final answer. What should be improved?
- Remove the specialist from the architecture.
- Add explicit success and failure status information to inter-agent responses.
- Make every specialist return only plain text.
- Increase the coordinator’s temperature.
Correct Answer: 2
Explanation
Multi-agent systems need explicit communication contracts between components. A structured response can distinguish successful results from failures and can include useful error information, status codes, or recommended recovery actions. This allows the coordinator to make an informed decision about whether to retry, use another agent, request additional information, or terminate the workflow. Removing the specialist unnecessarily reduces system capabilities. Plain text without status information makes reliable interpretation harder. Temperature affects generation behavior but does not establish a deterministic success/failure contract. Structured inter-agent communication is therefore essential for reliable orchestration.
Question 12
An MCP tool can delete customer records. The operation is irreversible and should only happen after explicit confirmation from the user. What is the safest design?
- Allow the model to delete records whenever it believes deletion is useful.
- Hide the delete tool from the application.
- Require an explicit confirmation step before executing the destructive operation.
- Automatically delete records after every successful lookup.
Correct Answer: 3
Explanation
Destructive operations should have stronger safeguards than ordinary read-only operations. Requiring explicit confirmation before an irreversible deletion creates a clear boundary between the agent’s recommendation or preparation and the actual side effect. Allowing the model to delete whenever it considers the action useful provides insufficient protection against misunderstanding or incorrect tool selection. Hiding the tool prevents legitimate functionality rather than controlling it appropriately. Automatically deleting after a lookup is unrelated to user intent and would be unsafe. Confirmation, authorization, validation, and appropriate audit controls are important when tools can cause significant external effects.
Question 13
A developer writes a prompt containing many examples, but Claude still produces inconsistent answers because the required output format is unclear. What should the developer improve first?
- Add a clear output schema and explicit formatting requirements.
- Remove every instruction from the prompt.
- Increase randomness in generation.
- Add unrelated examples covering different tasks.
Correct Answer: 1
Explanation
Examples are useful, but they work best when the expected behavior and output structure are already clear. An explicit schema can define required fields, types, ordering, and constraints, making the desired response easier to interpret and validate. Removing instructions would increase ambiguity. Increasing randomness generally does not improve consistency and can make structured output less predictable. Unrelated examples can distract from the actual task and consume additional context. A strong prompt therefore combines clear task requirements with representative examples and, where appropriate, programmatic validation of the generated result.
Question 14
A Claude Code project has instructions that are useful only for that specific repository. The team wants the instructions to be version-controlled alongside the project. Which approach best fits this requirement?
- Store the instructions only in each developer’s personal global configuration.
- Store the project-specific guidance in the repository’s CLAUDE.md.
- Put the instructions in the user’s email signature.
- Store them in an unrelated operating-system configuration file.
Correct Answer: 2
Explanation
Repository-specific instructions belong with the project when they describe conventions, commands, architecture, testing practices, or workflows that the whole team should follow. A project-level CLAUDE.md can be committed to version control so changes can be reviewed and shared with collaborators. Personal global configuration is better suited to individual preferences and may not be appropriate for team-wide project guidance. Email signatures and operating-system configuration files do not provide the intended Claude Code project context. Version-controlled instructions also help ensure that the guidance evolves alongside the codebase.
Question 15
A tool returns an error such as permission_denied, but the agent only receives the generic message Operation failed. The agent frequently retries operations that can never succeed. What is the best improvement?
- Remove all error information from the tool.
- Add structured error information that distinguishes permission errors from retryable failures.
- Increase the model temperature.
- Automatically retry every error indefinitely.
Correct Answer: 2
Explanation
Agents need meaningful error information to choose appropriate recovery actions. Structured errors can identify categories such as authentication failure, permission denial, invalid input, temporary service failure, or rate limiting. The application can then determine whether an operation should be retried, corrected, escalated, or stopped. A generic error message removes important context and encourages unreliable behavior. Increasing temperature does not solve the missing information problem. Indefinite retries can waste resources and potentially worsen an incident. Clear error contracts allow both Claude and the surrounding application to handle failures more appropriately.
Question 16
An application asks Claude to summarize several independent documents. The documents contain conflicting information. Which approach most directly helps the final synthesis distinguish the different claims?
- Remove the conflicting documents.
- Ask Claude to always choose the first source.
- Preserve source identity and relevant evidence alongside each extracted claim.
- Combine all documents into one undifferentiated text block.
Correct Answer: 3
Explanation
When sources disagree, provenance and evidence allow the synthesis stage to distinguish competing claims rather than treating all information as one undifferentiated body of text. Each extracted claim should retain information about its source and, where useful, supporting excerpts or locations. Removing conflicting sources hides potentially important information. Choosing the first source introduces an arbitrary priority rule. Combining everything without source identity makes attribution and conflict analysis much harder. Structured evidence tracking enables the final agent to represent disagreements accurately and supports more reliable downstream reasoning.
Question 17
An agent must call several tools in sequence, but a later tool depends on the output of an earlier tool. Which design principle is most important?
- Execute all tools simultaneously regardless of dependencies.
- Ensure the workflow passes the relevant result from each completed step to the next dependent step.
- Ignore tool outputs after execution.
- Randomize the tool execution order.
Correct Answer: 2
Explanation
Tool dependencies should be explicitly respected in an agent workflow. If Tool B requires information produced by Tool A, the application or orchestration layer must ensure that Tool A completes successfully and that its relevant output is available before Tool B is called. Running dependent tools simultaneously can produce invalid requests or missing parameters. Ignoring tool results prevents later steps from using required information. Random execution order is similarly unreliable. Proper orchestration therefore models dependencies and controls the sequence of operations while allowing genuinely independent tasks to run concurrently when appropriate.
Question 18
A team wants to evaluate whether an agent reliably completes a customer-support task after changing its prompt. Which testing approach provides the strongest evidence?
- Test only one manually selected example.
- Evaluate the updated agent against a representative set of predefined scenarios and expected outcomes.
- Judge the system based only on how impressive one response looks.
- Change the prompt repeatedly without recording results.
Correct Answer: 2
Explanation
Reliable agent evaluation requires representative test cases and measurable outcomes. A predefined evaluation set can include normal requests, edge cases, ambiguous inputs, tool failures, and other important scenarios. Comparing results across versions helps determine whether a prompt or architectural change actually improves behavior. A single manually selected example can give misleading results and may not represent production conditions. Judging one impressive response does not establish consistency. Changing prompts without recording outcomes also prevents meaningful comparison. Systematic evaluation provides evidence about reliability rather than relying on anecdotal impressions.
Question 19
A production agent needs to remember information from an earlier stage of a workflow, but the required information is no longer present in the current model context. What should the application do?
- Assume Claude will recover the missing information automatically.
- Add random unrelated context.
- Retrieve or preserve the necessary information and explicitly provide it when needed.
- Restart the workflow without saving any state.
Correct Answer: 3
Explanation
Models can only reliably use information that is available in the context supplied to them or through mechanisms that retrieve the required information. If important state has been removed from the active context, the application should preserve it in an appropriate state store, retrieve it when necessary, and provide the relevant information to the model. Assuming the model can recover omitted context is unreliable. Adding unrelated information increases context noise. Restarting without preserving state loses information rather than solving the problem. Effective context management combines appropriate storage, retrieval, summarization, and deliberate context passing.
Question 20
A team is building an agent that can modify production infrastructure. Which design principle should receive the highest priority when deciding how much autonomy to give the agent?
- Maximize the number of automatic actions regardless of risk.
- Minimize all logging so the agent operates faster.
- Remove human approval from every sensitive operation.
- Match the agent’s autonomy to the risk of the actions it can perform, using appropriate controls and approvals.
Correct Answer: 4
Explanation
Agent autonomy should be proportional to the potential impact of its actions. Low-risk, reversible operations can often be automated more freely, while sensitive or irreversible production changes should have stronger safeguards such as authorization, validation, approval gates, limited permissions, audit logging, and rollback mechanisms. Maximizing autonomy without considering risk can create serious operational consequences. Removing logging reduces visibility rather than improving reliability. Eliminating human approval for sensitive actions also removes an important control layer. A well-designed agent balances automation with deterministic safeguards based on the consequences of its tools and actions.