The new flashcard feature is useful to memorize questions.
?Change your study mode
At any time, you can change the study mode, and alternate between the practice mode and the exam mode. In practice mode, you can configure for example the number of questions or tests, and other parameters to help you study.
Randomized | 10 Questions per Test | 20 Minutes | 70% to pass|
To re-configure your study mode again and change - for example - the number of tests, whether you have random questions and all other configuration parameters.
?Simulator Configuration
Auto-scroll: You can use the automatic scrolling of the questionnaire that occurs as soon as you answer one or all of the answers to a question correctly. Auto scrolling is activated if you answer a single answer, or as soon as you answer all the mandatory answers. Learning Mode: During learning mode you can get a real time result for your answer.
Free Test
Question: / 10
20:00Min. left
?Restart the current test
To restart the current test by clearing all your answers and the time used up to now. Warning: all answers will be lost.
Question: / 10
5.0(31 Votes)
Quiz
Question 1/101/10
Your team is building a multi-step document processing application that needs to extract structured data from PDFs, validate the extracted content against business rules, and then route documents to different approval workflows based on content type. You are evaluating whether to use an agent or a workflow architecture. Which of the following factors should most strongly influence your decision toward using an agent rather than a workflow?
Select the answer:Select the answer
1 correct answer
A.
The approval routing requires dynamic decision-making based on unpredictable document variations and emerging patterns that were not pre-defined in the system
B.
The extraction, validation, and routing steps are deterministic and always follow the same sequence regardless of document content
C.
The application needs to maintain strict audit compliance and every action must be explicitly logged and repeatable
D.
The team prefers working with declarative, step-by-step orchestration that clearly maps each stage in the document pipeline
E.
The PDF processing step is computationally expensive and should be cached and reused across multiple documents
Agents excel at handling dynamic, unpredictable scenarios where the system must adapt its behavior based on emerging patterns and make autonomous decisions. In this scenario, the need for dynamic routing based on document variations that weren't pre-defined is a key indicator that an agent's iterative decision-making loop would be more appropriate than a rigid workflow. The other options point toward workflow characteristics: deterministic sequences (workflows), strict audit requirements (workflows provide better determinism and traceability), declarative step-by-step orchestration (workflows by design), and caching concerns (an optimization orthogonal to the agent vs. workflow choice). Agents are more flexible but less predictable and auditable, while workflows provide explicit control and repeatability.
Right Answer: A
Quiz
Question 2/102/10
You are implementing a Claude agent using a custom agent loop that needs to call external APIs, process tool outputs, and make decisions about when to stop iterating. Your team wants to ensure that certain high- risk actions—such as deleting records or transferring funds—always require explicit human approval before execution. Which combination of approaches best implements this safety requirement within a Claude agent architecture?
Select the answer:Select the answer
1 correct answer
A.
Use Claude hooks to intercept tool calls and pause execution before high-risk actions, combined with an approval tool that blocks further execution until a human reviews and approves the pending action
B.
Configure the system prompt to instruct Claude to never call deletion or transfer tools, and rely on the model's instruction-following to prevent these actions
C.
Remove high-risk tools from the agent's tool set entirely and only expose them through a separate, manually-triggered admin interface
D.
Log all tool calls and review the logs after the agent completes execution to ensure no dangerous actions were taken
E.
Use a sub-agent hierarchy where high-risk actions are delegated to a supervisor agent that evaluates requests before passing them to execution agents
Claude hooks provide a mechanism to intercept and modify agent behavior at runtime, making them ideal for implementing deterministic safety controls. Combining hooks with an approval tool ensures that high-risk actions are paused, visible to a human, and only proceed with explicit approval. This is a best-practice pattern for guardrails in agentic systems. Relying on system prompt instructions alone is insufficient because models can be misled or jailbroken. Removing tools entirely eliminates functionality. Post-execution logging is a detective control, not preventive. Sub-agent hierarchies add organizational structure but don't inherently prevent the supervisor from approving dangerous actions without additional approval logic—hooks provide that deterministic enforcement layer.
Right Answer: A
Quiz
Question 3/103/10
Your team is optimizing the cost of a Claude application that makes thousands of API calls daily to process customer support tickets. The tickets often reference common company policies and product information that rarely changes. You have identified that about 40% of tokens in each request are spent transmitting this stable reference material. Which of the following techniques would most effectively reduce costs in this scenario, and what is the primary reason?
Select the answer:Select the answer
1 correct answer
A.
Use prompt caching to store the common policy and product reference material, because the cache will persist across multiple API calls and avoid re-transmitting the same tokens
B.
Switch from the Sonnet model to the Haiku model, because Haiku has lower per-token costs and will proportionally reduce the cost of transmitting reference material
C.
Implement batch processing for all ticket requests, because batch API calls are charged at a 50% discount regardless of token content
D.
Reduce the context window by truncating policy documents to essential summaries, because smaller context windows always cost less per request
E.
Migrate to a retrieval-augmented generation (RAG) system that fetches policies from a vector database instead of including them in prompts
Prompt caching is specifically designed to address this cost optimization scenario: when the same prefix of tokens appears repeatedly across requests, Claude stores a cached version and charges a significantly reduced rate (90% discount) for cache hits. With 40% of tokens being stable reference material, caching directly targets the waste and provides immediate cost savings across those thousands of daily calls. Model switching (Haiku) reduces per-token cost but still charges full price for each token transmitted, including the reference material. Batch processing offers discount only when latency is not a concern and doesn't solve the repeated transmission problem. Truncating context either loses important information or requires sophisticated summarization logic. RAG is a valid architectural alternative but introduces database infrastructure, latency, and complexity; it's not a simple optimization for the existing prompt-based approach.
Right Answer: A
Quiz
Question 4/104/10
Your Claude application needs to validate user input before sending it to the Claude API to prevent prompt injection attacks. You are designing input sanitization logic and have identified that users will provide unstructured text from various sources, including customer feedback, external emails, and user-uploaded documents. Which of the following strategies should be part of your defense-in-depth approach? (Select all that apply.)
Select multiple answer: (Choose 3)Select the answer
3 correct answers
A.
Remove or escape special characters and delimiters that could be used to signal instruction boundaries or break out of user-content sections
B.
Validate that user input conforms to a strict whitelist of allowed characters, reducing attack surface but potentially limiting legitimate input
C.
Trust Claude's built-in safety measures to filter injection attempts, so that custom sanitization logic is unnecessary
D.
Apply role-based access controls to limit which users can submit input, combined with audit logging to track who submitted potentially malicious content
E.
Implement a machine learning classifier to detect injection patterns and block suspicious inputs before they reach Claude
Effective prompt injection defense requires multiple layers. Character filtering/escaping (option 1) prevents attackers from using structural delimiters. Whitelisting (option 2) is stricter than blacklisting and reduces the attack surface, though it may constrain legitimate use cases. Role-based access control (option 4) is part of the defense-in-depth principle—limiting who can submit input and auditing submissions ensures accountability and reduces attack vectors. Option 3 is incorrect because Claude's safety measures are content filters for output, not input validation, and they cannot be relied upon as the sole defense against prompt injection. Option 5 (ML classifiers) is not a standard recommendation for prompt injection defense because injection attacks often mimic legitimate instructions, making ML detection unreliable and adding latency without deterministic guarantees. The best approach combines explicit input validation at the application layer (sanitization, whitelisting) with identity and access controls.
Right Answer: A, B, D
Quiz
Question 5/105/10
You are building a Claude application that uses an MCP server to connect to a company's internal database and expose a set of tools for querying customer records. The MCP server runs as a separate process and communicates with your Claude application over stdio. During testing, you notice that database queries occasionally fail due to network timeouts or database unavailability. Which of the following error handling and recovery strategies should be implemented at the tool level to ensure the agent can respond gracefully?
Select the answer:Select the answer
1 correct answer
A.
Implement try-catch logic within the MCP server tool implementation to catch timeout exceptions, return descriptive error messages to Claude, and let Claude decide whether to retry, use cached data, or inform the user
B.
Configure the stdio communication channel with automatic exponential backoff retries, so that failed tool calls are retried automatically without Claude's involvement
C.
Have the MCP server implement circuit breaker logic that blocks all database queries for 10 minutes after the first timeout, preventing cascading failures
D.
Implement timeout handling exclusively in Claude's system prompt, instructing the model to wait longer before concluding a query has failed
E.
Remove the MCP server entirely and hardcode database connection strings directly into the Claude application for lower latency and fewer failure points
The correct approach is to handle errors at the tool layer where context about the failure is available. The MCP server tool should catch exceptions, return structured error information to Claude, and allow Claude's agentic logic to decide the best recovery strategy (retry with different parameters, use cached results, or inform the user). This maintains the separation of concerns and gives the agent visibility into what went wrong. Automatic stdio retries without Claude awareness can cause unexpected delays and duplicate operations. Circuit breaker logic (option 3) prevents cascading failures but is typically implemented at infrastructure layers, not at the tool level, and a fixed 10-minute block may be overly aggressive. System prompt instructions (option 4) cannot reliably enforce timeouts or retry logic—the model cannot control socket-level behavior. Hardcoding connection strings (option 5) introduces security risks and tight coupling; tools are designed to abstract external system details.
Right Answer: A
Quiz
Question 6/106/10
Your team is deploying a Claude application that integrates with Claude Code for collaborative development workflows. The application uses a CLAUDE.md file to document agent architecture, tools, and configuration, and different team members need to access different sets of tools based on their roles (e.g., junior developers should not have access to production deployment tools). Which of the following configuration and access management approaches best aligns with secure-by-design principles for this scenario?
Select the answer:Select the answer
1 correct answer
A.
Use plugin dependencies in settings.json to conditionally load tool sets based on user role verification, combined with documentation in CLAUDE.md that clearly marks which tools are restricted and why
B.
Include all tools in the CLAUDE.md file and rely on model instruction-following to prevent junior developers from calling restricted tools
C.
Store tool access restrictions in a separate configuration file that is not documented in CLAUDE.md, keeping the agent architecture design transparent while hiding implementation details
D.
Require manual code review of all Claude Code sessions to ensure junior developers did not use restricted tools, implementing access control purely through human oversight
E.
Create separate Claude Code instances for each role, each with its own CLAUDE.md and settings.json, ensuring tools are physically isolated rather than logically restricted
Secure-by-design means embedding security controls into the architecture and configuration from the start. Using plugin dependencies in settings.json provides conditional tool loading based on identity, which is a deterministic, enforced control. Clear documentation in CLAUDE.md ensures transparency—team members understand what tools exist and why some are restricted, reducing confusion and mistakes. Relying on model instruction-following (option 2) is insufficient because models can be misled or jailbroken, and junior developers might accidentally trigger restricted tools. Hiding restrictions in undocumented configuration (option 3) violates the transparency principle. Human-only oversight (option 4) is detective, not preventive, and doesn't scale. Creating separate instances (option 5) introduces operational complexity and maintenance burden; conditional loading via settings is more efficient. The secure-by-design principle emphasizes implementing controls at the configuration and system level, not relying on human vigilance or model compliance alone.
Right Answer: A
Quiz
Question 7/107/10
You are designing a Claude application that will require structured JSON output for downstream processing. The output schema is well-defined, and downstream systems will reject malformed JSON.
Select the answer:Select the answer
1 correct answer
A.
Structure the prompt to request output in a schema that is described in plain English, with downstream systems parsing whatever shape Claude produces.
B.
Define a clear schema and structure the prompt to request output in that schema, with downstream systems handling any validation needed.
C.
Define a clear schema, structure the prompt to request output in that schema, and validate Claude's output against the schema before passing it downstream.
D.
Avoid structured output and use free-form text everywhere instead, on the grounds that free-form text is more flexible and handles edge cases better than structured schemas.
Option C establishes the strongest application boundary between probabilistic model generation and deterministic downstream processing. When another component requires JSON with a known contract, the application should explicitly define the expected structure and ensure that model output conforms to it before downstream execution. Anthropic's current Structured Outputs guidance states that structured outputs constrain responses to a specific schema and are intended to provide valid, parseable data for downstream processing. The current Claude API supports JSON Schema through output_config.format, while SDK helpers can additionally parse and validate returned data. The underlying engineering principle remains the same even when structured-output enforcement is unavailable: never allow unvalidated model-generated structures to become trusted machine input. Option A provides insufficient contractual control. Option B defines the schema but pushes validation too late, increasing the probability that malformed or semantically invalid data reaches dependent components. Option D sacrifices machine reliability entirely. Therefore, C correctly combines schema specification, explicit format guidance, and validation. This corresponds to Claude Developer topics covering structured outputs, defensive application design, schema validation, and reliable model-to-system interfaces. The question and options are reproduced from the supplied examination set.
Right Answer: C
Quiz
Question 8/108/10
Your Claude application has multi-step workflows where each step's output is needed only briefly before the agent moves on. The cumulative tool output is filling the context window with content that is no longer relevant. How would you handle the accumulating tool output?
Select the answer:Select the answer
1 correct answer
A.
Apply tool output pruning to remove tool outputs that are no longer needed by later steps in the workflow.
B.
Apply prompt caching to the accumulated tool outputs so the application does not re-pay for the older content on each subsequent step.
C.
Switch to a smaller Claude model that processes context more efficiently and treat any quality loss as a tradeoff for the cost reduction.
D.
Keep every tool output in the context indefinitely so the agent has the full record of every step it has executed during the workflow.
Option A applies the correct context-engineering strategy: remove stale tool results once they no longer contribute useful information to subsequent reasoning. Agentic workflows frequently accumulate search results, file contents, API responses, and intermediate artifacts. Keeping all of them indefinitely consumes the finite context window, raises token cost, and can reduce model focus by introducing low-value information. Anthropic specifically documents tool result clearing for this situation. Context Editing can remove older tool results when the conversation grows, while preserving recent interactions and optionally retaining tools whose results must remain available. Anthropic describes old tool outputs such as retrieved files or search results as candidates for clearing after Claude has processed them. Prompt caching in B solves a different problem: it can lower cost and latency for repeated static prompt prefixes, but cached tokens still constitute context and therefore do not eliminate context-window pressure. C changes model capability without solving the architectural cause. D maximizes context pollution. The correct architecture is therefore to preserve high-signal state while pruning ephemeral intermediate outputs. This aligns with Claude Developer coverage of context engineering, long-running agents, context- window management, tool-result clearing, and efficient agent state management. Anthropic's broader context- engineering guidance likewise emphasizes curating the smallest high-signal context necessary for successful inference.
Right Answer: A
Quiz
Question 9/109/10
A teammate has asked you to explain the difference between context engineering and prompt engineering. They have heard the terms used interchangeably and are unsure how each applies to a Claude application that processes long-running multi-step tasks. How would you describe the distinction?
Select the answer:Select the answer
1 correct answer
A.
Prompt engineering focuses on the model's response, while context engineering focuses on the user's input across many sessions in a long-running multi-step Claude application.
B.
Prompt engineering is the older term for prompt design, while context engineering is the newer term that has replaced it in modern Claude applications across the industry.
C.
Prompt engineering shapes individual prompts for specific outputs, while context engineering manages how content flows across turns and steps and takes steps to keep relevant state visible.
D.
Prompt engineering and context engineering each address content the team gives Claude, but the team can group them under a single workflow because the practices use overlapping techniques.
Option C accurately captures Anthropic's distinction. Prompt engineering primarily concerns how instructions are written, structured, and organized to obtain the desired behavior from a particular model invocation. Techniques include explicit instructions, examples, roles, XML structure, output requirements, and task-specific prompt construction. Context engineering operates at a broader architectural level: it determines which information should actually be present in the model's context at each inference step. Anthropic defines prompt engineering as methods for writing and organizing LLM instructions, whereas context engineering encompasses strategies for curating and maintaining the optimal set of tokens during inference. For long-running agents, context can contain system instructions, tools, MCP resources, retrieved documents, prior messages, tool results, summaries, and memory. This distinction matters because multi-step agents continuously generate new state. Effective systems may prune obsolete results, retrieve information just in time, compact earlier conversation history, isolate subagent contexts, or store persistent state externally. B is incorrect because context engineering has not simply replaced prompt engineering; the two operate at different scopes. A defines context too narrowly, and D obscures an important architectural distinction. Therefore, C correctly represents Claude Developer coverage of prompt engineering versus context engineering, context curation, agent state, long-horizon workflows, and context-window optimization.
Right Answer: C
Quiz
Question 10/1010/10
You are designing a multi-step Claude workflow where some steps must reason without seeing the full prior conversation history. The team wants to keep specific context isolated to specific steps. The context engineering technique you would use is...
Select the answer:Select the answer
1 correct answer
A.
Augmenting the context with all available content at every step so each step has access to the entire prior history of the workflow during its reasoning.
B.
Using a single global prompt that applies to every step in the workflow no matter what each step is reasoning about during its run.
C.
Context isolation through subagents or multi-step agentic workflows that scope each step's context to only what the step needs.
D.
Embedding the full prior history in each step regardless of whether the step needs the prior history for its reasoning.
Option C is the correct application of context isolation. A specialized step should receive the minimum relevant information required for its own task rather than inheriting an ever-growing global transcript. This improves signal-to-noise ratio, limits accidental cross-task influence, controls token usage, and makes individual components easier to evaluate. Anthropic's context-engineering guidance explicitly identifies multi-agent architectures as a technique for long- horizon work. Specialized subagents can operate with their own context windows and return condensed results to an orchestrating agent rather than exposing every agent to every intermediate detail. This architecture protects each reasoning process from irrelevant history while allowing the overall system to preserve necessary state. Options A and D represent the opposite approach: indiscriminately loading the full prior history. Larger context is not automatically better; Anthropic warns that excessive context can introduce context pollution and degrade retrieval or attention to important information. B also fails because a single global prompt does not isolate state or tailor the information available to each processing stage. Therefore, C best implements scoped reasoning boundaries. Relevant Claude Developer topics are multi-agent architecture, subagents, context isolation, context engineering, orchestration, and long-running workflow design.
CCDV-F: Claude Certified Developer - Foundations Practice test unlocks all online simulator questions
Thank you for choosing the free version of the CCDV-F: Claude Certified Developer - Foundations practice test! Further deepen your knowledge on Anthropic Simulator; by unlocking the full version of our CCDV-F: Claude Certified Developer - Foundations Simulator you will be able to take tests with over 103 constantly updated questions and easily pass your exam. 98% of people pass the exam in the first attempt after preparing with our 103 questions.
What to expect from our CCDV-F: Claude Certified Developer - Foundations practice tests and how to prepare for any exam?
The CCDV-F: Claude Certified Developer - Foundations Simulator Practice Tests are part of the Anthropic Database and are the best way to prepare for any CCDV-F: Claude Certified Developer - Foundations exam. The CCDV-F: Claude Certified Developer - Foundations practice tests consist of 103 questions and are written by experts to help you and prepare you to pass the exam on the first attempt. The CCDV-F: Claude Certified Developer - Foundations database includes questions from previous and other exams, which means you will be able to practice simulating past and future questions. Preparation with CCDV-F: Claude Certified Developer - Foundations Simulator will also give you an idea of the time it will take to complete each section of the CCDV-F: Claude Certified Developer - Foundations practice test . It is important to note that the CCDV-F: Claude Certified Developer - Foundations Simulator does not replace the classic CCDV-F: Claude Certified Developer - Foundations study guides; however, the Simulator provides valuable insights into what to expect and how much work needs to be done to prepare for the CCDV-F: Claude Certified Developer - Foundations exam.
CCDV-F: Claude Certified Developer - Foundations Practice test therefore represents an excellent tool to prepare for the actual exam together with our Anthropic practice test . Our CCDV-F: Claude Certified Developer - Foundations Simulator will help you assess your level of preparation and understand your strengths and weaknesses. Below you can read all the quizzes you will find in our CCDV-F: Claude Certified Developer - Foundations Simulator and how our unique CCDV-F: Claude Certified Developer - Foundations Database made up of real questions:
Info quiz:
Quiz name:CCDV-F: Claude Certified Developer - Foundations
Total number of questions:103
Number of questions for the test:50
Pass score:80%
You can prepare for the CCDV-F: Claude Certified Developer - Foundations exams with our mobile app. It is very easy to use and even works offline in case of network failure, with all the functions you need to study and practice with our CCDV-F: Claude Certified Developer - Foundations Simulator.
Use our Mobile App, available for both Android and iOS devices, with our CCDV-F: Claude Certified Developer - Foundations Simulator . You can use it anywhere and always remember that our mobile app is free and available on all stores.
Our Mobile App contains all CCDV-F: Claude Certified Developer - Foundations practice tests which consist of 103 questions and also provide study material to pass the final CCDV-F: Claude Certified Developer - Foundations exam with guaranteed success.
Our CCDV-F: Claude Certified Developer - Foundations database contain hundreds of questions and Anthropic Tests related to CCDV-F: Claude Certified Developer - Foundations Exam. This way you can practice anywhere you want, even offline without the internet.