Anthropic certification · Exam CCDV-F

CCDV-F Mock Exam

Claude Certified Developer-Foundations

Free CCDV-F questions on Claude App Design, each with the answer and an explanation.

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

Claude App Design questions

1–4 of 4 free
Question 1 Choose 1
Your Claude application validates structured output but has been treating validation failures as terminal errors. Each validation failure causes the entire user request to fail. The team wants to handle validation failures more gracefully. How would you handle the validation failures?
Show answerHide answer

Correct answer: C Treat validation failures as a recognized error path that triggers retry, repair, or fallback logic before failing the user request.

Explanation

Explanation

The problem is that validation failures are being treated as terminal — one bad output kills the whole request. The fix is to make validation failure a recognized, handled error path with graceful recovery before giving up:

- Retry — re-invoke the model, optionally with error feedback (e.g., "your previous output failed schema X; correct it").

- Repair — programmatically fix or re-parse the output (e.g., coerce or extract valid JSON, or apply a corrective prompt).

- Fallback — if retry or repair fails, degrade gracefully (e.g., a safe default, a partial result, or a human-review queue) rather than producing a hard user-facing failure.

This is the standard resilience pattern for structured-output pipelines: treat validation as a control point, not a dead end. Many validation failures are transient or correctable, so retry and repair can recover a substantial portion of requests while reserving hard failure for the remaining cases. This also preserves the value of validation — catching malformed output — instead of removing it. ✅

Why the other options are incorrect

A — "Pass validation failures downstream and let each system decide": Pushes known-bad output into consumers, spreading the defect and shifting the burden to every downstream system. It also contradicts the purpose of validating output at the source.

B — "Disable validation until the cause is fixed": Removes the safety net entirely, allowing malformed output to reach users unchecked. You trade a handled failure for silent corruption.

D — "Tell users validation failures are unavoidable; do manual checks": Offloads an engineering problem onto users and accepts a broken experience. It is the opposite of graceful error handling.

References

- Anthropic structured-output and tool-use guidance — validate outputs and handle failures with retry and repair patterns.
Question 2 Choose 1
Your team is preparing a new Claude application for production, and the product team has asked for a cost projection. The team needs to estimate the cost based on expected request volume, average input length, and average output length. How would you build the projection?
Show answerHide answer

Correct answer: B Build a cost model that combines expected request volume, average input tokens, average output tokens, the chosen model's pricing, and any caching benefits.

Explanation

Explanation

A production cost projection should be built from the actual cost drivers of a Claude application. The fundamental cost formula is:

Cost ≈ (request volume) × [(input tokens × input price) + (output tokens × output price)] − caching savings

Option B captures every necessary component the scenario names or implies:

- Expected request volume — the scaling factor.

- Average input tokens — priced per token and often the larger share in long-context applications.

- Average output tokens — priced separately, usually at a higher rate than input, so omitting them can significantly understate cost.

- The chosen model's pricing — rates differ by model, so the projection must use the actual model's per-token prices.

- Caching benefits — prompt caching reduces the cost of repeated prefixes, so a realistic projection accounts for it rather than overstating cost.

This is a complete, transparent model grounded in the real pricing structure. ✅

Why the other options are incorrect

A — "Use the average per-request cost from a similar app, scaled by volume": Borrows a number from a different workload with different prompt lengths, model, and caching. It imports unknown error and isn't grounded in this application's actual inputs, outputs, or pricing.

C — "Include input tokens but omit output tokens": Output tokens are typically priced higher than input tokens, so leaving them out systematically underestimates cost, often substantially.

D — "Use volume × model pricing, estimate token counts post-launch": Without average input and output token counts, there is no meaningful projection. You can't compute cost from volume and a price sheet alone. Deferring the core variables until after launch means you're guessing rather than projecting.

The tested distinction: a complete model using all real cost drivers — volume, input tokens, output tokens, model pricing, and caching — versus borrowed benchmarks, omitted output costs, or missing token estimates.

References

- Anthropic API pricing documentation — per-token input and output rates and model-specific pricing.
- Anthropic prompt caching documentation — cached-prefix pricing reduces repeated-context costs.
Question 3 Choose 1
Your Claude application uses structured output that is consumed by downstream code. The team wants to handle malformed or unexpected output gracefully so it does not crash downstream systems. The best choice for handling this issue would be to...
Show answerHide answer

Correct answer: D Apply defensive parsing to handle unexpected fields, missing values, and type mismatches that the downstream code might otherwise crash on.

Explanation

Explanation

The goal is to prevent malformed or unexpected output from crashing downstream systems. Defensive parsing is the right tool: it treats the model's output as untrusted input and normalizes it before downstream code consumes it. Concretely, it:

- Tolerates unexpected fields — ignores or quarantines fields not in the schema rather than failing.

- Handles missing values — substitutes safe defaults, marks them explicitly, or routes them to a repair or fallback path.

- Coerces or rejects type mismatches — for example, a string where a number is expected gets parsed or flagged rather than passed through to crash the consumer.

Combined with validation, which detects the problem, and repair or fallback, which recovers, defensive parsing forms the boundary layer that makes the integration resilient. Malformed output becomes a handled condition, not an outage. ✅

Why the other options are incorrect

A — "Crash on any unexpected output; require manual recovery": This is exactly the failure mode being avoided. One unexpected field takes down requests and demands manual intervention, which doesn't scale.

B — "Silently drop non-matching output": Prevents a crash but creates silent data loss. Downstream systems receive incomplete or missing data without any signal, which can be worse than a visible failure and hides defects.

C — "Use the output as-is; defer schema enforcement": This is a direct cause of downstream crashes because untrusted, unvalidated output reaches consumers. Deferring enforcement doesn't remove the risk; it simply moves the failure into production.

References

- Anthropic structured-output and tool-use guidance — validate and defensively handle model output before downstream consumption.
Question 4 Choose 1
You are writing a system prompt for a Claude application that needs to produce output in a specific JSON shape. The downstream system will reject any output that does not match the schema. Your prompt would need to...
Show answerHide answer

Correct answer: D Include explicit constraints describing the required JSON schema and an instruction to produce only output matching that schema.

Explanation

Explanation

The requirement is strict: the downstream system rejects any output that does not match the schema. When an output contract is non-negotiable, the system prompt must state the contract explicitly and unambiguously:

- Describe the required JSON schema — fields, types, required versus optional fields, and allowed values. Claude needs to know the exact structure rather than infer it.

- Instruct it to produce only output matching that schema — no preamble, free text, Markdown fences, or deviations.

This gives the model the information it needs to satisfy the contract on the first try, making explicit schema instructions a primary lever for improving adherence. Best practice pairs this with validation and retry or repair as a safety net, but the prompt itself must clearly specify the required schema. ✅

Why the other options are incorrect

A — "Let Claude choose the most appropriate format": Directly contradicts the requirement. Format choice is exactly what the model must not make here because the schema is fixed.

B — "JSON sometimes, free text other times": Guarantees schema violations because free-text outputs will be rejected by the downstream system.

C — "Omit format reference and reshape in post-processing": Removes the model's ability to target the schema and shifts the burden to potentially fragile reshaping logic that cannot reliably recover structure the model never produced. It also contradicts the requirement to make the prompt meet the contract.

References

- Anthropic prompt engineering and structured-output guidance — specify the exact schema and constrain output to it in the system prompt.

That's the last free question in Claude App Design

You've seen the free 30% (4 of 16 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