You save $9.99
CCDV-F Premium Bundle
- Premium File 96 Questions & Answers
- Last Update: Nov 24, 2026
- Training Course 116 Lectures
You save $9.99
A remote MCP server grants all connected clients full production database access.
What is the appropriate design decision?
Authenticate clients and authorize each MCP tool by user and operation scope. For the situation 'A remote MCP server grants all connected clients full production database access', this directly implements the required control. A reusable MCP interface does not replace the backend's access-control decisions. Verify the result by checking that access tests show the same tool is available only to identities with its required scope.
Expose the reusable capability through a secured MCP server with stable schemas. That addresses the different 'MCP reusable server boundary' situation: Two internal assistants separately reimplement the same approved inventory database integration. Here the implementation must instead authenticate clients and authorize each MCP tool by user and operation scope, because a reusable MCP interface does not replace the backend's access-control decisions.
Expose read-only reference material as resources, reusable templates as prompts and callable actions as tools. That addresses the different 'MCP tools resources and prompts' situation: A team publishes reference documentation but accidentally exposes it as a mutating tool. Here the implementation must instead authenticate clients and authorize each MCP tool by user and operation scope, because a reusable MCP interface does not replace the backend's access-control decisions.
Use stdio for local process integration and a supported remote transport with authentication for shared deployment. That addresses the different 'MCP transport selection' situation: A local developer helper launches an MCP server as a subprocess. Here the implementation must instead authenticate clients and authorize each MCP tool by user and operation scope, because a reusable MCP interface does not replace the backend's access-control decisions.
A product team budgets costs from request count alone although prompt sizes vary widely.
Which approach most directly meets the stated need?
Track input, output, cache reads and writes per request and aggregate against budgets. For the situation 'A product team budgets costs from request count alone although prompt sizes vary widely', this directly implements the required control. Model charges depend on token categories and selected model rather than just call counts. Verify the result by checking that a sampled invoice reconciles with measured usage by category and model.
Use asynchronous batching for deadline-tolerant independent tasks and live calls for interactive sessions. That addresses the different 'Batch cost versus timeliness' situation: An analytics job can run overnight and thousands of prompts share no session state. Here the implementation must instead track input, output, cache reads and writes per request and aggregate against budgets, because model charges depend on token categories and selected model rather than just call counts.
Place shared static content in a stable cacheable prefix and vary later request content. That addresses the different 'Prompt cache prefix stability' situation: A customer assistant repeats a long fixed policy on every call but changes the opening metadata each time. Here the implementation must instead track input, output, cache reads and writes per request and aggregate against budgets, because model charges depend on token categories and selected model rather than just call counts.
Set token, tool-call and time budgets and emit an escalation or partial result when exceeded. That addresses the different 'Cost guardrails for agent loops' situation: An autonomous research job can fan out into dozens of costly tool and model calls. Here the implementation must instead track input, output, cache reads and writes per request and aggregate against budgets, because model charges depend on token categories and selected model rather than just call counts.
A research agent fetches the same unchanged reference on every turn.
What should the engineer do next?
Cache safe read-only responses with provenance and expiry when repeated calls are redundant. For the situation 'A research agent fetches the same unchanged reference on every turn', this directly implements the required control. Application-managed caching reduces duplicate tool work while respecting freshness. Verify the result by checking that trace metrics show fewer repeated lookups and correct invalidation on source change.
Require an explicit confirmation boundary for sensitive write tools. That addresses the different 'Tool approval on external writes' situation: A personal assistant may read calendar events freely but must ask before canceling a meeting. Here the implementation must instead cache safe read-only responses with provenance and expiry when repeated calls are redundant, because application-managed caching reduces duplicate tool work while respecting freshness.
Prefer an existing supported tool for standard capabilities and custom tools for genuinely domain-specific operations. That addresses the different 'Built-in versus custom tool' situation: An analyst asks to search public documentation using an existing supported web tool. Here the implementation must instead cache safe read-only responses with provenance and expiry when repeated calls are redundant, because application-managed caching reduces duplicate tool work while respecting freshness.
Use a Skill for reusable instructions and an MCP tool for authorized external system operations. That addresses the different 'Skill versus MCP tool' situation: A team wants reusable guidance on how to review pull requests, not an external API action. Here the implementation must instead cache safe read-only responses with provenance and expiry when repeated calls are redundant, because application-managed caching reduces duplicate tool work while respecting freshness.
A small team values managed runtime scaling over maintaining agent worker infrastructure.
Which approach most directly meets the stated need?
Choose deployment ownership based on data-boundary, networking, operations and scaling requirements. For the situation 'A small team values managed runtime scaling over maintaining agent worker infrastructure', this directly implements the required control. Self-hosted execution maximizes runtime control while managed execution delegates part of the operation to a provider. Verify the result by checking that the chosen deployment satisfies documented data paths, latency and operational ownership tests.
Enforce the command or path policy in a deterministic pre-tool hook before execution. That addresses the different 'Deterministic pre-tool hook' situation: A coding agent requests a shell command that must be checked against an organization allowlist. Here the implementation must instead choose deployment ownership based on data-boundary, networking, operations and scaling requirements, because self-hosted execution maximizes runtime control while managed execution delegates part of the operation to a provider.
Add a maximum tool-step budget, loop detection and a safe escalation response. That addresses the different 'Loop termination budget' situation: An automated troubleshooting agent keeps querying the same endpoints with no progress. Here the implementation must instead choose deployment ownership based on data-boundary, networking, operations and scaling requirements, because self-hosted execution maximizes runtime control while managed execution delegates part of the operation to a provider.
Use the Claude Agent SDK within an application-owned service and wrap tool permissions and tracing. That addresses the different 'Agent SDK integration boundary' situation: A Python service needs multi-turn agent tooling with session management and structured observability. Here the implementation must instead choose deployment ownership based on data-boundary, networking, operations and scaling requirements, because self-hosted execution maximizes runtime control while managed execution delegates part of the operation to a provider.
A dashboard blocks its main request thread waiting on unrelated retrieval operations.
What should the engineer do next?
Use bounded asynchronous concurrency with connection pooling and per-request timeouts. For the situation 'A dashboard blocks its main request thread waiting on unrelated retrieval operations', this directly implements the required control. Async I/O overlaps waiting without creating unrestricted parallel requests. Verify the result by checking that throughput rises while error rates and rate limits remain within the configured caps.
Extract a tested adapter with typed request and error mapping while preserving existing behavior. That addresses the different 'Refactor of model adapter' situation: Several services duplicate authentication, timeout and error parsing logic. Here the implementation must instead use bounded asynchronous concurrency with connection pooling and per-request timeouts, because async I/O overlaps waiting without creating unrestricted parallel requests.
Enforce pull-request review, secret scanning and automated checks before merge. That addresses the different 'Review and secret scanning' situation: A developer proposes committing a quick demo that contains a real API key. Here the implementation must instead use bounded asynchronous concurrency with connection pooling and per-request timeouts, because async I/O overlaps waiting without creating unrestricted parallel requests.
Mock the client boundary for deterministic unit tests and keep separately gated live integration tests. That addresses the different 'Unit-test API boundary' situation: A feature team can test prompts only by spending live API tokens. Here the implementation must instead use bounded asynchronous concurrency with connection pooling and per-request timeouts, because async I/O overlaps waiting without creating unrestricted parallel requests.
A billing tool needs exactly three typed JSON fields for downstream parsing.
What is the appropriate design decision?
Use supported structured output or validated schema constraints and reject nonconforming responses. For the situation 'A billing tool needs exactly three typed JSON fields for downstream parsing', this directly implements the required control. An explicit schema and server-side validation create a robust machine-readable boundary. Verify the result by checking that a schema test accepts valid typed objects and rejects extra prose or missing fields.
Keep retrieved content as untrusted data and maintain trusted instructions outside it. That addresses the different 'Instruction versus retrieved data' situation: A document summarizer encounters a PDF that says to ignore all system rules. Here the implementation must instead use supported structured output or validated schema constraints and reject nonconforming responses, because an explicit schema and server-side validation create a robust machine-readable boundary.
Require disambiguation and confirmation before executing a consequential action. That addresses the different 'Clarification of ambiguous parameters' situation: A customer types 'close all open ones' with several possible ticket interpretations. Here the implementation must instead use supported structured output or validated schema constraints and reject nonconforming responses, because an explicit schema and server-side validation create a robust machine-readable boundary.
Escape or sanitize generated display content using the frontend's established rendering policy. That addresses the different 'Output boundary for unsafe HTML' situation: A chat frontend injects generated text directly into an HTML fragment. Here the implementation must instead use supported structured output or validated schema constraints and reject nonconforming responses, because an explicit schema and server-side validation create a robust machine-readable boundary.
An assistant needs to retrieve live Jira issue state from a separate system.
Which approach most directly meets the stated need?
Use a Skill for reusable instructions and an MCP tool for authorized external system operations. For the situation 'An assistant needs to retrieve live Jira issue state from a separate system', this directly implements the required control. A Skill packages procedural knowledge whereas MCP exposes machine-callable capabilities and data. Verify the result by checking that the procedure is reused without new permissions and live issue reads use an authenticated tool.
Cache safe read-only responses with provenance and expiry when repeated calls are redundant. That addresses the different 'Capability selection for repeated lookup' situation: An assistant repeatedly calls a slow expensive tool for facts already in the current task. Here the implementation must instead use a Skill for reusable instructions and an MCP tool for authorized external system operations, because a Skill packages procedural knowledge whereas MCP exposes machine-callable capabilities and data.
Require an explicit confirmation boundary for sensitive write tools. That addresses the different 'Tool approval on external writes' situation: A personal assistant may read calendar events freely but must ask before canceling a meeting. Here the implementation must instead use a Skill for reusable instructions and an MCP tool for authorized external system operations, because a Skill packages procedural knowledge whereas MCP exposes machine-callable capabilities and data.
Prefer an existing supported tool for standard capabilities and custom tools for genuinely domain-specific operations. That addresses the different 'Built-in versus custom tool' situation: An analyst asks to search public documentation using an existing supported web tool. Here the implementation must instead use a Skill for reusable instructions and an MCP tool for authorized external system operations, because a Skill packages procedural knowledge whereas MCP exposes machine-callable capabilities and data.
An autonomous research job can fan out into dozens of costly tool and model calls.
What should the engineer do next?
Set token, tool-call and time budgets and emit an escalation or partial result when exceeded. For the situation 'An autonomous research job can fan out into dozens of costly tool and model calls', this directly implements the required control. Application-level budgets limit runaway execution costs regardless of the model's stated intentions. Verify the result by checking that usage traces stop within planned caps and retain a reason for termination.
Place shared static content in a stable cacheable prefix and vary later request content. That addresses the different 'Prompt cache prefix stability' situation: A customer assistant repeats a long fixed policy on every call but changes the opening metadata each time. Here the implementation must instead set token, tool-call and time budgets and emit an escalation or partial result when exceeded, because application-level budgets limit runaway execution costs regardless of the model's stated intentions.
Use asynchronous batching for deadline-tolerant independent tasks and live calls for interactive sessions. That addresses the different 'Batch cost versus timeliness' situation: An analytics job can run overnight and thousands of prompts share no session state. Here the implementation must instead set token, tool-call and time budgets and emit an escalation or partial result when exceeded, because application-level budgets limit runaway execution costs regardless of the model's stated intentions.
Track input, output, cache reads and writes per request and aggregate against budgets. That addresses the different 'Token usage accounting' situation: A product team budgets costs from request count alone although prompt sizes vary widely. Here the implementation must instead set token, tool-call and time budgets and emit an escalation or partial result when exceeded, because application-level budgets limit runaway execution costs regardless of the model's stated intentions.
A repair agent says an update succeeded immediately after issuing a patch command.
Which implementation is the best fit?
Require an observed authoritative tool response before stating an external operation succeeded. For the situation 'A repair agent says an update succeeded immediately after issuing a patch command', this directly implements the required control. An agent's intent to call a tool is distinct from an execution result and subsequent verified state. Verify the result by checking that the user-facing response distinguishes requested, completed and unconfirmed actions in traces.
Attach source, timestamp, tenant scope and expiry or invalidation rules to stored memory. That addresses the different 'Memory provenance and expiry' situation: An assistant stores a user's shipping preference and later repeats an obsolete address. Here the implementation must instead require an observed authoritative tool response before stating an external operation succeeded, because an agent's intent to call a tool is distinct from an execution result and subsequent verified state.
Use a small explicit loop first and adopt orchestration frameworks only for needed branching or state. That addresses the different 'Framework versus simple loop' situation: A team is adding a graph framework for an agent that only calls one calculator and returns a result. Here the implementation must instead require an observed authoritative tool response before stating an external operation succeeded, because an agent's intent to call a tool is distinct from an execution result and subsequent verified state.
Use idempotency keys and check the external operation's status before a potentially duplicated retry. That addresses the different 'Agent retry idempotency' situation: An agent times out after calling a ticket-create tool, leaving the result unknown. Here the implementation must instead require an observed authoritative tool response before stating an external operation succeeded, because an agent's intent to call a tool is distinct from an execution result and subsequent verified state.
A personal assistant may read calendar events freely but must ask before canceling a meeting.
Which implementation is the best fit?
Require an explicit confirmation boundary for sensitive write tools. For the situation 'A personal assistant may read calendar events freely but must ask before canceling a meeting', this directly implements the required control. Tool existence and model intention do not imply the user approved its side effects. Verify the result by checking that execution logs show clear approval tied to the specific target and operation.
Use a Skill for reusable instructions and an MCP tool for authorized external system operations. That addresses the different 'Skill versus MCP tool' situation: A team wants reusable guidance on how to review pull requests, not an external API action. Here the implementation must instead require an explicit confirmation boundary for sensitive write tools, because tool existence and model intention do not imply the user approved its side effects.
Prefer an existing supported tool for standard capabilities and custom tools for genuinely domain-specific operations. That addresses the different 'Built-in versus custom tool' situation: An analyst asks to search public documentation using an existing supported web tool. Here the implementation must instead require an explicit confirmation boundary for sensitive write tools, because tool existence and model intention do not imply the user approved its side effects.
Cache safe read-only responses with provenance and expiry when repeated calls are redundant. That addresses the different 'Capability selection for repeated lookup' situation: An assistant repeatedly calls a slow expensive tool for facts already in the current task. Here the implementation must instead require an explicit confirmation boundary for sensitive write tools, because tool existence and model intention do not imply the user approved its side effects.
An analyst asks to search public documentation using an existing supported web tool. For a new tenant of the service, the engineers need an explicit design decision before deployment, with a required sign-off based on observable evidence.
Which change should be made first?
Prefer an existing supported tool for standard capabilities and custom tools for genuinely domain-specific operations. For the situation 'An analyst asks to search public documentation using an existing supported web tool. For a new tenant of the service, the engineers need an explicit design decision before deployment, with a required sign-off based on observable evidence', this directly implements the required control. Built-in capabilities reduce bespoke maintenance when their contracts already meet needs. Verify the result by checking that a proof of concept satisfies source and permission needs without duplicate tool code.
Use a Skill for reusable instructions and an MCP tool for authorized external system operations. That addresses the different 'Skill versus MCP tool' situation: A team wants reusable guidance on how to review pull requests, not an external API action. Here the implementation must instead prefer an existing supported tool for standard capabilities and custom tools for genuinely domain-specific operations, because built-in capabilities reduce bespoke maintenance when their contracts already meet needs.
Require an explicit confirmation boundary for sensitive write tools. That addresses the different 'Tool approval on external writes' situation: A personal assistant may read calendar events freely but must ask before canceling a meeting. Here the implementation must instead prefer an existing supported tool for standard capabilities and custom tools for genuinely domain-specific operations, because built-in capabilities reduce bespoke maintenance when their contracts already meet needs.
Cache safe read-only responses with provenance and expiry when repeated calls are redundant. That addresses the different 'Capability selection for repeated lookup' situation: An assistant repeatedly calls a slow expensive tool for facts already in the current task. Here the implementation must instead prefer an existing supported tool for standard capabilities and custom tools for genuinely domain-specific operations, because built-in capabilities reduce bespoke maintenance when their contracts already meet needs.
Please check your mailbox for a message from support@examlabs.com and follow the directions.