cert
cert-1
cert-2

Pass Anthropic CCDV-F Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
CCDV-F Exam - Verified By Experts
CCDV-F Premium Bundle
$14.99

CCDV-F Premium Bundle

$94.99
$109.98
  • Premium File 96 Questions & Answers. Last update: Nov 30, 2026
  • Training Course 116 Video Lectures
 
$109.98
$94.99
accept 187 downloads in last 7 days
block-screenshots
Purchase Anthropic CCDV-F Exam Training Products Individually
Anthropic CCDV-F Premium File
Premium File 96 Q&A
$98.99$89.99
Anthropic CCDV-F Video Training Course
Training Course 116 Lectures
$21.99 $19.99
Anthropic CCDV-F Practice Test 3

Question 20

A developer force-pushes a new prompt and overwrites the last passing evaluation baseline. Which development or architectural response BEST addresses the primary requirement?

  1. Keep each user's messages, tool outputs, cached context and temporary artifacts scoped to their authenticated session or tenant.
  2. Track application and prompt changes through reviewed commits, reproducible dependency locks and focused pull requests with passing tests.
  3. Construct Messages API requests with the system parameter, correctly typed user/assistant messages and ordered content blocks instead of assuming a generic chat log format.
  4. Register third-party capabilities with explicit scopes, user consent, revocation and fail-closed behavior when integrations are unavailable.

Explanation

Correct Answer

B:

Track application and prompt changes through reviewed commits, reproducible dependency locks and focused pull requests with passing tests. Unreviewed changes to model prompts or tool permissions are software changes even if no compiled code is modified. Verify the prerequisites with: Inspect repository diffs, test reports, secrets scanning, dependency lockfiles and reviewer decisions. Situation: A developer force-pushes a new prompt and overwrites the last passing evaluation baseline.

Incorrect Answers

A:

Keep each user's messages, tool outputs, cached context and temporary artifacts scoped to their authenticated session or tenant. This response is designed for Session and user context isolation; it is not the controlling fix in the situation. Context isolation is a server concern; asking the model to ignore other tenants cannot fix mixed application state. Here the targeted response is: Track application and prompt changes through reviewed commits, reproducible dependency locks and focused pull requests with passing tests. Situation: A developer force-pushes a new prompt and overwrites the last passing evaluation baseline.

C:

Construct Messages API requests with the system parameter, correctly typed user/assistant messages and ordered content blocks instead of assuming a generic chat log format. This response is designed for Messages API role and content structure; it is not the controlling fix in the situation. The Claude Messages API has explicit message/content schema; inventing roles or losing block order can alter behavior or cause errors. Here the targeted response is: Track application and prompt changes through reviewed commits, reproducible dependency locks and focused pull requests with passing tests. Situation: A developer force-pushes a new prompt and overwrites the last passing evaluation baseline.

D:

Register third-party capabilities with explicit scopes, user consent, revocation and fail-closed behavior when integrations are unavailable. This response is designed for Plugin and external connector permission lifecycle; it is not the controlling fix in the situation. A plugin name is not authorization to act; external capabilities require independent identity and scope checks. Here the targeted response is: Track application and prompt changes through reviewed commits, reproducible dependency locks and focused pull requests with passing tests. Situation: A developer force-pushes a new prompt and overwrites the last passing evaluation baseline.

Question 21

A document service inserts a request-specific timestamp above its cached policy instructions on each call. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.

  1. Keep durable repository instructions in appropriate CLAUDE.md locations and ensure local files do not unexpectedly override higher-level constraints.
  2. Inspect parser exceptions, structural schema, optional fields, encoding and validation error handling.
  3. Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting.
  4. Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates.
  5. Each answer traces back to authorized input documents and unreadable sections are labeled rather than invented.

Explanation

Correct Answers

C:

Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Prompt caching optimizes matching prefixes, not semantic similarity; variable content before a breakpoint defeats reuse. The appropriate response is: Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. Situation: A document service inserts a request-specific timestamp above its cached policy instructions on each call.

D:

Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. Prompt caching optimizes matching prefixes, not semantic similarity; variable content before a breakpoint defeats reuse. Verify the prerequisites with: Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Situation: A document service inserts a request-specific timestamp above its cached policy instructions on each call.

Incorrect Answers

A:

Keep durable repository instructions in appropriate CLAUDE.md locations and ensure local files do not unexpectedly override higher-level constraints. This step may apply to CLAUDE.md scope and project instruction hierarchy but is not one of the two required complementary decisions. The relevant pair is: Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. and Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Situation: A document service inserts a request-specific timestamp above its cached policy instructions on each call.

B:

Inspect parser exceptions, structural schema, optional fields, encoding and validation error handling. This step may apply to JSON contract and defensive parsing but is not one of the two required complementary decisions. The relevant pair is: Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. and Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Situation: A document service inserts a request-specific timestamp above its cached policy instructions on each call.

E:

Each answer traces back to authorized input documents and unreadable sections are labeled rather than invented. This step may apply to File processing pipeline with provenance but is not one of the two required complementary decisions. The relevant pair is: Place stable reusable prefix content before varying user material, use cache controls appropriately and monitor token accounting and hit rates. and Inspect repeated prefix byte identity, cache breakpoint, model compatibility, cache TTL and usage accounting. Situation: A document service inserts a request-specific timestamp above its cached policy instructions on each call.

Question 22

A customer complaint is investigated without knowing which system prompt was active for that response. Which development or architectural response BEST addresses the primary requirement?

  1. Construct Messages API requests with the system parameter, correctly typed user/assistant messages and ordered content blocks instead of assuming a generic chat log format.
  2. Choose Claude API, Claude Code, Desktop or claude.ai surfaces based on whether a workload needs programmatic calls, interactive authoring, local repository tools or user-facing chat.
  3. Keep durable repository instructions in appropriate CLAUDE.md locations and ensure local files do not unexpectedly override higher-level constraints.
  4. Pin model identifiers and version prompts in configuration with controlled rollout and evaluation rather than relying on mutable defaults.

Explanation

Correct Answer

D:

Pin model identifiers and version prompts in configuration with controlled rollout and evaluation rather than relying on mutable defaults. Model version shifts can affect outputs and tool decisions; reproducibility requires recording both code and prompt state. Verify the prerequisites with: Inspect release config, model identifier, prompt revision, evaluation baseline, and rollback identifiers. Situation: A customer complaint is investigated without knowing which system prompt was active for that response.

Incorrect Answers

A:

Construct Messages API requests with the system parameter, correctly typed user/assistant messages and ordered content blocks instead of assuming a generic chat log format. This response is designed for Messages API role and content structure; it is not the controlling fix in the situation. The Claude Messages API has explicit message/content schema; inventing roles or losing block order can alter behavior or cause errors. Here the targeted response is: Pin model identifiers and version prompts in configuration with controlled rollout and evaluation rather than relying on mutable defaults. Situation: A customer complaint is investigated without knowing which system prompt was active for that response.

B:

Choose Claude API, Claude Code, Desktop or claude.ai surfaces based on whether a workload needs programmatic calls, interactive authoring, local repository tools or user-facing chat. This response is designed for Deployment surface selection and capabilities; it is not the controlling fix in the situation. Different Claude products have different execution contracts; a workflow developed in a chat window cannot be copied unchanged into a server SDK. Here the targeted response is: Pin model identifiers and version prompts in configuration with controlled rollout and evaluation rather than relying on mutable defaults. Situation: A customer complaint is investigated without knowing which system prompt was active for that response.

C:

Keep durable repository instructions in appropriate CLAUDE.md locations and ensure local files do not unexpectedly override higher-level constraints. This response is designed for CLAUDE.md scope and project instruction hierarchy; it is not the controlling fix in the situation. CLAUDE.md is persistent project context, but conflicting or misplaced files can create inconsistent instructions. Here the targeted response is: Pin model identifiers and version prompts in configuration with controlled rollout and evaluation rather than relying on mutable defaults. Situation: A customer complaint is investigated without knowing which system prompt was active for that response.

Question 23

A deployment agent has code review permission yet tries to push directly to a protected release branch. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.

  1. Require explicit review for irreversible or high-impact tool effects and plan rollbacks for permitted changes that may fail.
  2. Inspect lower-priority input, user identity, sensitive tool requests and enforcement logs.
  3. Combine model-level safety instructions with strict server-side authorization, network restrictions, auditing and narrowly scoped action policies.
  4. Inspect role grants, action allowlist, dangerous effects, approval records and network egress.
  5. Only authorized minimum details reach the endpoint and returned text avoids sensitive fields not needed for the task.

Explanation

Correct Answers

C:

Combine model-level safety instructions with strict server-side authorization, network restrictions, auditing and narrowly scoped action policies. One guardrail cannot cover all failure modes; permission checks must remain effective even after prompt compromise. Verify the prerequisites with: Inspect role grants, action allowlist, dangerous effects, approval records and network egress. Situation: A deployment agent has code review permission yet tries to push directly to a protected release branch.

D:

Inspect role grants, action allowlist, dangerous effects, approval records and network egress. One guardrail cannot cover all failure modes; permission checks must remain effective even after prompt compromise. The appropriate response is: Combine model-level safety instructions with strict server-side authorization, network restrictions, auditing and narrowly scoped action policies. Situation: A deployment agent has code review permission yet tries to push directly to a protected release branch.

Incorrect Answers

A:

Require explicit review for irreversible or high-impact tool effects and plan rollbacks for permitted changes that may fail. This step may apply to Human-in-the-loop release controls and rollback but is not one of the two required complementary decisions. The relevant pair is: Combine model-level safety instructions with strict server-side authorization, network restrictions, auditing and narrowly scoped action policies. and Inspect role grants, action allowlist, dangerous effects, approval records and network egress. Situation: A deployment agent has code review permission yet tries to push directly to a protected release branch.

B:

Inspect lower-priority input, user identity, sensitive tool requests and enforcement logs. This step may apply to Jailbreak and untrusted user instruction handling but is not one of the two required complementary decisions. The relevant pair is: Combine model-level safety instructions with strict server-side authorization, network restrictions, auditing and narrowly scoped action policies. and Inspect role grants, action allowlist, dangerous effects, approval records and network egress. Situation: A deployment agent has code review permission yet tries to push directly to a protected release branch.

E:

Only authorized minimum details reach the endpoint and returned text avoids sensitive fields not needed for the task. This step may apply to PII minimization and output privacy but is not one of the two required complementary decisions. The relevant pair is: Combine model-level safety instructions with strict server-side authorization, network restrictions, auditing and narrowly scoped action policies. and Inspect role grants, action allowlist, dangerous effects, approval records and network egress. Situation: A deployment agent has code review permission yet tries to push directly to a protected release branch.

Question 24

A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field. Which development or architectural response BEST addresses the primary requirement?

  1. Use production traces and defect reports to identify whether observed failures require a model, tool, prompt, data or application fix.
  2. Package repeatable instructions and external tools with pinned dependencies, documented install steps and permission reviews for consumers.
  3. Plan incremental releases, review code and prompt changes, and record impacts on behavior, integration contracts and measured eval results.
  4. Move from a prompt demo to a controlled release using requirements traceability, staged environments, integration tests and operational acceptance.

Explanation

Correct Answer

A:

Use production traces and defect reports to identify whether observed failures require a model, tool, prompt, data or application fix. Changing a prompt for every symptom can conceal faults in transport, authorization or business logic. Verify the prerequisites with: Inspect event timelines, reproducible inputs, application logs, affected versions and customer impact. Situation: A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field.

Incorrect Answers

B:

Package repeatable instructions and external tools with pinned dependencies, documented install steps and permission reviews for consumers. This response is designed for Reusable plugin and skill dependency packaging; it is not the controlling fix in the situation. Reusable agent workflows depend on both instruction assets and executable/plugin dependencies; copying one prompt file is insufficient. Here the targeted response is: Use production traces and defect reports to identify whether observed failures require a model, tool, prompt, data or application fix. Situation: A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field.

C:

Plan incremental releases, review code and prompt changes, and record impacts on behavior, integration contracts and measured eval results. This response is designed for Iterative delivery and change management; it is not the controlling fix in the situation. Prompts and tool schemas are production behavior artifacts and need review comparable to ordinary code. Here the targeted response is: Use production traces and defect reports to identify whether observed failures require a model, tool, prompt, data or application fix. Situation: A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field.

D:

Move from a prompt demo to a controlled release using requirements traceability, staged environments, integration tests and operational acceptance. This response is designed for Discovery prototype to production readiness gates; it is not the controlling fix in the situation. A persuasive demo is not production reliability; deployment lifecycle gates must check external effects and recovery paths. Here the targeted response is: Use production traces and defect reports to identify whether observed failures require a model, tool, prompt, data or application fix. Situation: A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field.

Question 25

A developer assumes the Claude Messages endpoint accepts arbitrary WebSocket frames and never checks its published transport contract. Which development or architectural response BEST addresses the primary requirement?

  1. Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport.
  2. Send correctly scoped API credentials through protected configuration, rotate them safely and distinguish credential failures from prompt or model failures.
  3. Route low-risk common work to an efficient model while escalating ambiguous or high-stakes cases using validated criteria and preserving context boundaries.
  4. Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns.

Explanation

Correct Answer

A:

Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. WebSocket is a general networking mechanism, not a guarantee that a specific model endpoint offers native WebSocket semantics. Verify the prerequisites with: Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery. Situation: A developer assumes the Claude Messages endpoint accepts arbitrary WebSocket frames and never checks its published transport contract.

Incorrect Answers

B:

Send correctly scoped API credentials through protected configuration, rotate them safely and distinguish credential failures from prompt or model failures. This response is designed for Authentication headers and secret rotation; it is not the controlling fix in the situation. Authentication is an API boundary enforced by the server, not by the wording of a model system prompt. Here the targeted response is: Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. Situation: A developer assumes the Claude Messages endpoint accepts arbitrary WebSocket frames and never checks its published transport contract.

C:

Route low-risk common work to an efficient model while escalating ambiguous or high-stakes cases using validated criteria and preserving context boundaries. This response is designed for Tiered routing and escalation policies; it is not the controlling fix in the situation. Routing policies need outcome evidence and loop guards; a low-confidence heuristic alone can trigger wasteful model churn. Here the targeted response is: Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. Situation: A developer assumes the Claude Messages endpoint accepts arbitrary WebSocket frames and never checks its published transport contract.

D:

Use clear zero-shot instructions for simple tasks and representative few-shot examples when they materially reduce ambiguous output patterns. This response is designed for Zero-shot versus few-shot task instructions; it is not the controlling fix in the situation. Examples steer output behavior but can also overfit and consume context; they must match real task variance. Here the targeted response is: Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. Situation: A developer assumes the Claude Messages endpoint accepts arbitrary WebSocket frames and never checks its published transport contract.

Question 26

A developer shares a successful local Claude call but the deployed service has no error handling or monitoring. Which observed result BEST demonstrates the requirement has been satisfied?

  1. Valid tool calls execute once with authorized typed arguments, while malformed or unauthorized requests are rejected and explained.
  2. Only a version with passing integration and security tests enters production under a recorded release decision.
  3. The chosen deployment meets documented region, security, capacity and availability requirements under representative load.
  4. Each answer traces back to authorized input documents and unreadable sections are labeled rather than invented.

Explanation

Correct Answer

B:

Only a version with passing integration and security tests enters production under a recorded release decision. A persuasive demo is not production reliability; deployment lifecycle gates must check external effects and recovery paths. Situation: A developer shares a successful local Claude call but the deployed service has no error handling or monitoring.

Incorrect Answers

A:

Valid tool calls execute once with authorized typed arguments, while malformed or unauthorized requests are rejected and explained. This result tests Tool definitions and strict argument validation, not the requirement demonstrated by this case. The relevant acceptance condition is: Only a version with passing integration and security tests enters production under a recorded release decision. Situation: A developer shares a successful local Claude call but the deployed service has no error handling or monitoring.

C:

The chosen deployment meets documented region, security, capacity and availability requirements under representative load. This result tests Infrastructure and data residency discovery, not the requirement demonstrated by this case. The relevant acceptance condition is: Only a version with passing integration and security tests enters production under a recorded release decision. Situation: A developer shares a successful local Claude call but the deployed service has no error handling or monitoring.

D:

Each answer traces back to authorized input documents and unreadable sections are labeled rather than invented. This result tests File processing pipeline with provenance, not the requirement demonstrated by this case. The relevant acceptance condition is: Only a version with passing integration and security tests enters production under a recorded release decision. Situation: A developer shares a successful local Claude call but the deployed service has no error handling or monitoring.

Question 27

A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field. What evidence or diagnostic detail should the engineer inspect FIRST?

  1. Inspect event timelines, reproducible inputs, application logs, affected versions and customer impact.
  2. Inspect repository state, acceptance suite, environment configuration, rollback steps and service owners.
  3. Inspect output schema fields, stop status, refusal indicators, validator errors and consumer expectations.
  4. Inspect connector permission grants, expiry, linked accounts, audit logs and error responses.

Explanation

Correct Answer

A:

Inspect event timelines, reproducible inputs, application logs, affected versions and customer impact. Changing a prompt for every symptom can conceal faults in transport, authorization or business logic. The appropriate response is: Use production traces and defect reports to identify whether observed failures require a model, tool, prompt, data or application fix. Situation: A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field.

Incorrect Answers

B:

Inspect repository state, acceptance suite, environment configuration, rollback steps and service owners. This evidence is useful for Discovery prototype to production readiness gates but would not isolate the primary failure in this scenario. The decisive check is: Inspect event timelines, reproducible inputs, application logs, affected versions and customer impact. Situation: A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field.

C:

Inspect output schema fields, stop status, refusal indicators, validator errors and consumer expectations. This evidence is useful for Structured application output contract but would not isolate the primary failure in this scenario. The decisive check is: Inspect event timelines, reproducible inputs, application logs, affected versions and customer impact. Situation: A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field.

D:

Inspect connector permission grants, expiry, linked accounts, audit logs and error responses. This evidence is useful for Plugin and external connector permission lifecycle but would not isolate the primary failure in this scenario. The decisive check is: Inspect event timelines, reproducible inputs, application logs, affected versions and customer impact. Situation: A tool action succeeds but the UI claims failure because its acknowledgment parser rejects an optional field.

Question 28

A job retried after an ambiguous timeout invokes the same state-changing tool twice. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.

  1. Inspect old/new model IDs, deprecation notices, baseline prompts and tool-call diffs.
  2. Inspect timing traces, connection phase, server responses, client cancellation and retry idempotency.
  3. Routine work stays efficient and escalated cases improve measured correctness without unbounded repeated calls.
  4. Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options.
  5. Configure connection and read timeouts, retry budgets and cancellation so slow models and broken connections do not occupy server workers forever.

Explanation

Correct Answers

B:

Inspect timing traces, connection phase, server responses, client cancellation and retry idempotency. Network reliability must be engineered around the API; a slow response is not proof that the model is ignoring instructions. The appropriate response is: Configure connection and read timeouts, retry budgets and cancellation so slow models and broken connections do not occupy server workers forever. Situation: A job retried after an ambiguous timeout invokes the same state-changing tool twice.

E:

Configure connection and read timeouts, retry budgets and cancellation so slow models and broken connections do not occupy server workers forever. Network reliability must be engineered around the API; a slow response is not proof that the model is ignoring instructions. Verify the prerequisites with: Inspect timing traces, connection phase, server responses, client cancellation and retry idempotency. Situation: A job retried after an ambiguous timeout invokes the same state-changing tool twice.

Incorrect Answers

A:

Inspect old/new model IDs, deprecation notices, baseline prompts and tool-call diffs. This step may apply to Version migration and breaking-behavior tests but is not one of the two required complementary decisions. The relevant pair is: Configure connection and read timeouts, retry budgets and cancellation so slow models and broken connections do not occupy server workers forever. and Inspect timing traces, connection phase, server responses, client cancellation and retry idempotency. Situation: A job retried after an ambiguous timeout invokes the same state-changing tool twice.

C:

Routine work stays efficient and escalated cases improve measured correctness without unbounded repeated calls. This step may apply to Tiered routing and escalation policies but is not one of the two required complementary decisions. The relevant pair is: Configure connection and read timeouts, retry budgets and cancellation so slow models and broken connections do not occupy server workers forever. and Inspect timing traces, connection phase, server responses, client cancellation and retry idempotency. Situation: A job retried after an ambiguous timeout invokes the same state-changing tool twice.

D:

Select supported thinking or effort settings according to task complexity, latency and available token budgets; do not assume all models accept identical options. This step may apply to Extended and adaptive thinking tradeoffs but is not one of the two required complementary decisions. The relevant pair is: Configure connection and read timeouts, retry budgets and cancellation so slow models and broken connections do not occupy server workers forever. and Inspect timing traces, connection phase, server responses, client cancellation and retry idempotency. Situation: A job retried after an ambiguous timeout invokes the same state-changing tool twice.

Question 29

An AI assistant reads invoices but tries to submit a supplier payment through a different function. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.

  1. Write concise tool descriptions and strict input JSON schemas with explicit parameter semantics so the model chooses the appropriate operation reliably.
  2. Inspect required feature set, maintenance burden, tool scope, integration permissions and failure modes.
  3. Separate read-only analysis tools from state-changing actions and require explicit user or policy approval when tool effects are sensitive.
  4. The same skill produces reproducible results across authorized projects while context remains concise.
  5. Inspect requested verb, scope, authorized user, resource ownership and approval status.

Explanation

Correct Answers

C:

Separate read-only analysis tools from state-changing actions and require explicit user or policy approval when tool effects are sensitive. A tool's mere availability does not prove every call is authorized or safe. Verify the prerequisites with: Inspect requested verb, scope, authorized user, resource ownership and approval status. Situation: An AI assistant reads invoices but tries to submit a supplier payment through a different function.

E:

Inspect requested verb, scope, authorized user, resource ownership and approval status. A tool's mere availability does not prove every call is authorized or safe. The appropriate response is: Separate read-only analysis tools from state-changing actions and require explicit user or policy approval when tool effects are sensitive. Situation: An AI assistant reads invoices but tries to submit a supplier payment through a different function.

Incorrect Answers

A:

Write concise tool descriptions and strict input JSON schemas with explicit parameter semantics so the model chooses the appropriate operation reliably. This step may apply to Tool description and schema clarity but is not one of the two required complementary decisions. The relevant pair is: Separate read-only analysis tools from state-changing actions and require explicit user or policy approval when tool effects are sensitive. and Inspect requested verb, scope, authorized user, resource ownership and approval status. Situation: An AI assistant reads invoices but tries to submit a supplier payment through a different function.

B:

Inspect required feature set, maintenance burden, tool scope, integration permissions and failure modes. This step may apply to Built-in versus custom tool selection but is not one of the two required complementary decisions. The relevant pair is: Separate read-only analysis tools from state-changing actions and require explicit user or policy approval when tool effects are sensitive. and Inspect requested verb, scope, authorized user, resource ownership and approval status. Situation: An AI assistant reads invoices but tries to submit a supplier payment through a different function.

D:

The same skill produces reproducible results across authorized projects while context remains concise. This step may apply to Skills as reusable operational procedures but is not one of the two required complementary decisions. The relevant pair is: Separate read-only analysis tools from state-changing actions and require explicit user or policy approval when tool effects are sensitive. and Inspect requested verb, scope, authorized user, resource ownership and approval status. Situation: An AI assistant reads invoices but tries to submit a supplier payment through a different function.

Question 30

A customer-facing API returns max_tokens during a JSON response and a parser silently accepts the truncated object. Which development or architectural response BEST addresses the primary requirement?

  1. Keep each user's messages, tool outputs, cached context and temporary artifacts scoped to their authenticated session or tenant.
  2. Use bounded asynchronous requests with cancellation, per-call timeouts and consistent result indexing instead of launching uncontrolled concurrent work.
  3. Handle end_turn, tool_use, max_tokens, and other stop conditions distinctly rather than treating every response as completed natural-language content.
  4. Construct Messages API requests with the system parameter, correctly typed user/assistant messages and ordered content blocks instead of assuming a generic chat log format.

Explanation

Correct Answer

C:

Handle end_turn, tool_use, max_tokens, and other stop conditions distinctly rather than treating every response as completed natural-language content. A response can end because of a tool call or token limit; neither automatically implies a complete answer. Verify the prerequisites with: Inspect stop_reason, response blocks, token budgets, tool call IDs and continuation policy. Situation: A customer-facing API returns max_tokens during a JSON response and a parser silently accepts the truncated object.

Incorrect Answers

A:

Keep each user's messages, tool outputs, cached context and temporary artifacts scoped to their authenticated session or tenant. This response is designed for Session and user context isolation; it is not the controlling fix in the situation. Context isolation is a server concern; asking the model to ignore other tenants cannot fix mixed application state. Here the targeted response is: Handle end_turn, tool_use, max_tokens, and other stop conditions distinctly rather than treating every response as completed natural-language content. Situation: A customer-facing API returns max_tokens during a JSON response and a parser silently accepts the truncated object.

B:

Use bounded asynchronous requests with cancellation, per-call timeouts and consistent result indexing instead of launching uncontrolled concurrent work. This response is designed for Async Python and TypeScript concurrency; it is not the controlling fix in the situation. Concurrency improves throughput only when external quotas and task dependencies are respected. Here the targeted response is: Handle end_turn, tool_use, max_tokens, and other stop conditions distinctly rather than treating every response as completed natural-language content. Situation: A customer-facing API returns max_tokens during a JSON response and a parser silently accepts the truncated object.

D:

Construct Messages API requests with the system parameter, correctly typed user/assistant messages and ordered content blocks instead of assuming a generic chat log format. This response is designed for Messages API role and content structure; it is not the controlling fix in the situation. The Claude Messages API has explicit message/content schema; inventing roles or losing block order can alter behavior or cause errors. Here the targeted response is: Handle end_turn, tool_use, max_tokens, and other stop conditions distinctly rather than treating every response as completed natural-language content. Situation: A customer-facing API returns max_tokens during a JSON response and a parser silently accepts the truncated object.

Claude Certified Developer - Foundations (CCDV-F) Practice Tests