Anthropic certification · Exam CCDV-F

CCDV-F Mock Exam

Claude Certified Developer-Foundations

Free CCDV-F questions on Agent Construction, each with the answer and an explanation.

20 questions · 46 minutes · free, no sign-up

Agent Construction questions

1–5 of 5 free
Question 1 Choose 1
A teammate has asked you to explain when a Skill would be the right choice over an MCP server. The teammate is unsure how the two differ in practice when both can be reused across teams. How would you explain the distinction?
Show answerHide answer

Correct answer: D A Skill bundles prompts, scripts, and data into a package the model loads as a unit while an MCP server exposes resources, tools, and prompts through a standard client interface.

Explanation

Explanation

The question asks for the practical distinction between two reusable extension mechanisms. The clean way to frame it:

- A Skill is a packaged bundle — instructions/prompts, scripts, and supporting data/resources — that Claude loads as a unit to gain a capability. It's a self-contained, declarative package of how to do something, and it's well-suited to reusable know-how and workflows shared across teams (files and instructions that travel together).

- An MCP server is a service interface — it exposes resources, tools, and prompts over the Model Context Protocol to any MCP-speaking client. It's the right choice when you need a live, shared, programmatic integration with systems or data sources (APIs, databases, services) that many clients connect to at runtime.

The choice comes down to the nature of the capability: a packaged bundle of instructions, scripts, and data (Skill) vs. a running interface exposing resources, tools, and prompts (MCP server). Option D captures both mechanisms accurately and distinguishes them, which is what the teammate needs to decide. ✅

Why the other options are incorrect

- A — "Equivalent, interchangeable for any reusable capability": False — they're different mechanisms with different shapes (loaded package vs. client interface); picking one is a design decision, not a coin flip.

- B — "Skill is older; MCP is newer, so prefer MCP": Mischaracterizes them as generations of the same thing; they're complementary and serve different purposes, not successive versions.

- C — "Skills load more efficiently, so prefer them for cross-team reuse": A performance claim used to justify one as universally better — not the distinction; efficiency isn't the deciding factor, and neither mechanism is universally preferable.

References

- Anthropic Claude Skills documentation — Skills package instructions, scripts, and resources to support reusable capabilities.
Question 2 Choose 1
Your Claude application uses tool calling to fetch patient data and generate summary reports. The flow occasionally fails because the model returns a tool_use block that references arguments not present in the schema, and your application code does not handle this case gracefully. How would you address this?
Show answerHide answer

Correct answer: A Validate the tool_use block's arguments against the tool schema before dispatching the tool and handle invalid arguments as a recognized error path.

Explanation

Explanation

The failure is specific and recurring: the model sometimes returns a tool_use block whose arguments don't conform to the tool schema, and the application doesn't handle it gracefully. The correct fix is a validation gate before dispatch:

- Validate arguments against the tool schema — check required fields, types, and allowed values in the tool_use block before calling the tool.

- Handle invalid arguments as a recognized error path — when validation fails, don't dispatch; instead, return a structured error to the model (as a tool_result with is_error) so it can correct its call, or apply bounded retry, repair, or fallback.

This protects the tool from malformed input, keeps the model in the loop to self-correct, and turns an unhandled crash into a managed error path — the standard tool-use error-handling pattern. ✅

Why the other options are incorrect

- B — "Log and proceed; rely on the tool's own error handling": Dispatches known-invalid arguments and depends on the tool to surface failures — this risks side effects and doesn't give the model a clean opportunity to self-correct.

- C — "Retry repeatedly until a valid tool_use block appears": An unbounded loop with no validation gate can spin indefinitely, adds latency, and isn't a deterministic handler. Retry is appropriate only when bounded and validation-driven, as in A.

- D — "Stop using tool calling; use prompted text generation": Abandons a working mechanism over a manageable edge case; text generation doesn't actually fetch data or execute tools and loses the structured contract.

References

- Anthropic tool-use documentation — validate tool inputs and return errors via tool_result with is_error so the model can correct its call.
Question 3 Choose 1
You are extending a Claude agent with a capability that needs to be reusable across multiple teams in the organization, with each team able to invoke and use it independently. How would you build the capability?
Show answerHide answer

Correct answer: C As a Skill or MCP server because both are purpose-built for cross-team reuse independently by each consuming team.

Explanation

Explanation

The requirement is explicit: the capability must be reusable across multiple teams, with each team able to invoke and use it independently. That is precisely what Claude's extension mechanisms are designed for:

- A Skill — packages instructions, scripts, and data into a unit that any team's Claude loads and uses, giving every consumer the same capability without copying code.

- An MCP server — exposes resources, tools, and prompts through a standard client interface, so multiple independent Claude applications connect to the same server and use it without each reimplementing it.

Both are purpose-built for exactly this pattern: define once, consume independently by many teams, with the capability maintained in one place. The consuming teams don't need to share code or coordinate releases — they just load/invoke the capability. ✅

Why the other options are incorrect

- A — "Custom tool in this team's agent; others copy it": Defeats reuse — every team gets a fork that drifts, and maintenance multiplies across copies. It's duplication, not shared capability.

- B — "Shared library each team imports and must keep updated": Creates a coupling and maintenance burden on every consuming team; each integration can fall out of sync, so there's no single, independently-invocable capability.

- D — "Wrapper around a built-in tool": Built-in tools aren't a cross-team reuse mechanism; a wrapper adds functionality for one agent, not a shareable capability other teams can independently adopt.

The tested distinction: purpose-built extension mechanisms (Skill / MCP server) for independent cross-team reuse vs. copy-paste, per-team library integration, or wrapping built-ins.

References

- Anthropic Claude Skills documentation — packaged capabilities reusable across teams/projects.
- Model Context Protocol documentation — standard interface letting multiple independent clients connect to one server.
Question 4 Choose 1
A teammate has asked how to extend Claude Code with a custom Skill that the team can invoke during sessions. The Skill consists of a set of instructions and a few support scripts the team wants Claude to be able to call when the Skill is loaded. Where is the right place to define the Skill?
Show answerHide answer

Correct answer: C Define the Skill in a Skills directory recognized by Claude Code, where Claude can discover and load it during sessions for the team's repositories.

Explanation

Explanation

A Skill is a packaged capability — instructions plus support scripts/resources — that Claude Code discovers and loads at session time. The right place to define it is a Skills directory that Claude Code recognizes (e.g., within the project/repository or a configured skills location). From there:

Claude Code discovers the Skill automatically — no manual loading each session.
The Skill can be committed with the repository, so every team member gets it consistently and changes are version-controlled and reviewed.
The support scripts travel with the instructions as a unit, so when the Skill is loaded, Claude can call those scripts as intended.

This matches how Skills are designed to work: packaged, discoverable, project-scoped capabilities. ✅

Why the other options are incorrect

A — "Inline instruction at the top of every CLAUDE.md": CLAUDE.md holds project memory/context, not packaged skills with scripts; stuffing instructions into every repo's file duplicates them, and it doesn't provide the Skill packaging or script discovery mechanism.

B — "Define as a library module and call from application code": That's ordinary application code, not a Skill — Claude Code can't discover or load it as a capability during sessions; it bypasses the Skill mechanism entirely.

D — "Personal scratch directory, loaded manually each session": Makes the Skill per-developer and manual, so it isn't shared across the team, isn't consistently available, and isn't version-controlled — failing the "team can invoke it during sessions" requirement.

References

Anthropic Claude Code Skills documentation — Skills defined in recognized directories, discovered and loaded during sessions, with support scripts.
Question 5 Choose 1
Your Claude agent’s hooks are currently triggered for every action, which slows down the agent significantly even when actions pose no risk. The team wants to scope hooks more carefully. How would you scope the hooks?
Show answerHide answer

Correct answer: A Scope hooks to only the high-risk actions, such as destructive operations or sensitive data access, and remove hooks from low-risk actions to balance safety with performance.

Explanation

Explanation

The problem is over-broad hook coverage: hooks fire on every action, adding latency even for actions that pose no risk. Hooks are a deterministic control — valuable where the stakes are high — so the right fix is risk-based scoping:

- Keep hooks on high-risk actions — destructive operations (deletes, writes, deploys), sensitive data access, privileged commands — where deterministic enforcement prevents real harm.
- Remove hooks from low-risk actions — read-only queries, harmless lookups — where the overhead buys nothing.

This preserves the safety value of hooks exactly where they matter while eliminating overhead where they don't, which is the balance the team asked for. Risk-based control placement is the standard approach: apply the expensive/blocking control to the actions that justify it. ✅

Why the other options are incorrect

- B — "Disable all hooks during re-scoping": Opens a window with no enforcement at all — high-risk actions go unprotected during the work, trading safety for convenience in exactly the wrong direction.

- C — "Disable the agent during peak hours": Reduces availability rather than scoping hooks; it doesn't address the overhead source and takes the whole capability offline.

- D — "Replace hooks with system prompt instructions": Prompts are advisory, not deterministic — they can't guarantee enforcement of actions the way hooks can, so this swaps a reliable control for a probabilistic one.

The tested distinction: risk-based hook scoping (deterministic control on high-risk actions, none on low-risk) vs. disabling enforcement, restricting availability, or replacing deterministic controls with prompts.

References

- Anthropic Claude Code hooks documentation — hooks as deterministic controls triggered on tool/action events; scope them to relevant actions.

That's the last free question in Agent Construction

You've seen the free 30% (5 of 19 questions). Full access unlocks every question and full-length CCDV-F mock exams (53 questions, 120 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the CCDV-F exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real CCDV-F exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full CCDV-F mock exam
  • 53questions per mock
  • 120 mintime limit
  • 95questions in the bank
  • Newmock on every attempt