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 TypeScript worker must host tool-capable Claude sessions while enforcing app authorization.
What should the engineer do next?
Use the Claude Agent SDK within an application-owned service and wrap tool permissions and tracing. For the situation 'A TypeScript worker must host tool-capable Claude sessions while enforcing app authorization', this directly implements the required control. The SDK supplies agent runtime primitives while the host application remains responsible for credentials and business controls. Verify the result by checking that a test run shows resumable sessions, traceable tool calls and denied unauthorized operations.
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 use the Claude Agent SDK within an application-owned service and wrap tool permissions and tracing, because the SDK supplies agent runtime primitives while the host application remains responsible for credentials and business controls.
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 use the Claude Agent SDK within an application-owned service and wrap tool permissions and tracing, because the SDK supplies agent runtime primitives while the host application remains responsible for credentials and business controls.
Persist session identifiers and minimal approved state in application storage and restore them on continuation. That addresses the different 'Agent state persistence' situation: A long support case spans several disconnected HTTP requests but must retain authorized case context. Here the implementation must instead use the Claude Agent SDK within an application-owned service and wrap tool permissions and tracing, because the SDK supplies agent runtime primitives while the host application remains responsible for credentials and business controls.
A team wants reusable guidance on how to review pull requests, not an external API action.
What should the engineer do next?
Use a Skill for reusable instructions and an MCP tool for authorized external system operations. For the situation 'A team wants reusable guidance on how to review pull requests, not an external API action', 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.
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.
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.
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.
A document summarizer encounters a PDF that says to ignore all system rules. During an independent incident exercise, an operations team must make the same technical decision, with a required sign-off based on observable evidence.
Which approach most directly meets the stated need?
Keep retrieved content as untrusted data and maintain trusted instructions outside it. For the situation 'A document summarizer encounters a PDF that says to ignore all system rules. During an independent incident exercise, an operations team must make the same technical decision, with a required sign-off based on observable evidence', this directly implements the required control. Trust boundaries prevent source text from becoming application authority. Verify the result by checking that injection tests show source instructions are quoted or ignored while genuine summary facts remain usable.
Clearly delimit and label quoted external text and validate instructions by trusted channel. That addresses the different 'Long-form content boundaries' situation: An AI editor may summarize source reports but must not treat quoted passages as command text. Here the implementation must instead keep retrieved content as untrusted data and maintain trusted instructions outside it, because trust boundaries prevent source text from becoming application authority.
Review plugin scopes and grant only capabilities required for the specific workflow. That addresses the different 'Plugin permission planning' situation: An assistant adds a calendar integration that also requests broad email privileges. Here the implementation must instead keep retrieved content as untrusted data and maintain trusted instructions outside it, because trust boundaries prevent source text from becoming application authority.
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 keep retrieved content as untrusted data and maintain trusted instructions outside it, because trust boundaries prevent source text from becoming application authority.
A live agent uses prompt templates stored outside the deployment manifest.
What is the appropriate design decision?
Record prompt revision, model ID and relevant tool configuration for each release and request. For the situation 'A live agent uses prompt templates stored outside the deployment manifest', this directly implements the required control. A model-powered application's behavior depends on configuration beyond source-code hashes. Verify the result by checking that an incident can be replayed with the logged prompt and model configuration.
Record and pin the tested model identifier when reproducibility is required. That addresses the different 'Model ID pinning' situation: A release tests a particular model version but production requests use a moving alias. Here the implementation must instead record prompt revision, model ID and relevant tool configuration for each release and request, because a model-powered application's behavior depends on configuration beyond source-code hashes.
Pin compatible integration dependencies, review change notes and run contract tests. That addresses the different 'Dependency and plugin upgrades' situation: A project upgrades an MCP plugin and SDK in the same untested deployment. Here the implementation must instead record prompt revision, model ID and relevant tool configuration for each release and request, because a model-powered application's behavior depends on configuration beyond source-code hashes.
Review settings.json permission policies as controlled configuration changes. That addresses the different 'settings.json permission change' situation: A development team expands command permissions in Claude Code settings. Here the implementation must instead record prompt revision, model ID and relevant tool configuration for each release and request, because a model-powered application's behavior depends on configuration beyond source-code hashes.
A project enables third-party plugins without mapping their data access.
What is the appropriate design decision?
Review plugin scopes and grant only capabilities required for the specific workflow. For the situation 'A project enables third-party plugins without mapping their data access', this directly implements the required control. Extension integrations enlarge the attack surface according to the permissions they receive. Verify the result by checking that permissions review shows narrower scopes and unauthorized actions fail closed.
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 review plugin scopes and grant only capabilities required for the specific workflow, because extension integrations enlarge the attack surface according to the permissions they receive.
Clearly delimit and label quoted external text and validate instructions by trusted channel. That addresses the different 'Long-form content boundaries' situation: An AI editor may summarize source reports but must not treat quoted passages as command text. Here the implementation must instead review plugin scopes and grant only capabilities required for the specific workflow, because extension integrations enlarge the attack surface according to the permissions they receive.
Partition state by authenticated session and expire or clear it on account switch. That addresses the different 'Session hygiene' situation: A long-lived customer-service worker reuses a prior customer's messages when a new user connects. Here the implementation must instead review plugin scopes and grant only capabilities required for the specific workflow, because extension integrations enlarge the attack surface according to the permissions they receive.
An MCP tool returns a page containing secret tokens mixed with otherwise useful data.
What should the engineer do next?
Apply post-tool redaction and trust labeling before tool output enters downstream context. For the situation 'An MCP tool returns a page containing secret tokens mixed with otherwise useful data', this directly implements the required control. Tool outputs may carry sensitive and adversarial text even when the call itself was authorized. Verify the result by checking that a controlled test redacts secrets while retaining task-relevant facts.
Use a secrets manager and least-privileged runtime injection with masked logs. That addresses the different 'Secret injection to runtime' situation: An integration commits an API key in a source-controlled settings file. Here the implementation must instead apply post-tool redaction and trust labeling before tool output enters downstream context, because tool outputs may carry sensitive and adversarial text even when the call itself was authorized.
Combine input checks, trusted policy instructions, output review and escalation rules. That addresses the different 'Layered content safety' situation: A public chatbot needs to apply a company policy before sending generated content. Here the implementation must instead apply post-tool redaction and trust labeling before tool output enters downstream context, because tool outputs may carry sensitive and adversarial text even when the call itself was authorized.
Use a deterministic pre-tool hook to reject or gate risky commands and paths. That addresses the different 'Pre-tool approval guardrail' situation: A coding agent requests a shell command that would delete build artifacts outside its workspace. Here the implementation must instead apply post-tool redaction and trust labeling before tool output enters downstream context, because tool outputs may carry sensitive and adversarial text even when the call itself was authorized.
A developer writes a custom web crawler before checking built-in discovery capabilities.
Which approach most directly meets the stated need?
Prefer an existing supported tool for standard capabilities and custom tools for genuinely domain-specific operations. For the situation 'A developer writes a custom web crawler before checking built-in discovery capabilities', 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.
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.
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.
A developer assumes Claude Desktop tool configuration is automatically present in an API-only app.
What should the engineer do next?
Implement and authorize capabilities for each execution environment rather than assuming cross-product equivalence. For the situation 'A developer assumes Claude Desktop tool configuration is automatically present in an API-only app', this directly implements the required control. Claude Code, Desktop and the API run with different host-managed tooling and configuration. Verify the result by checking that integration tests list the actually available tools and deny unavailable ones cleanly.
Use supported structured output or validated schema constraints and reject nonconforming responses. That addresses the different 'Structured output contract' situation: A billing tool needs exactly three typed JSON fields for downstream parsing. Here the implementation must instead implement and authorize capabilities for each execution environment rather than assuming cross-product equivalence, because claude Code, Desktop and the API run with different host-managed tooling and configuration.
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 implement and authorize capabilities for each execution environment rather than assuming cross-product equivalence, because claude Code, Desktop and the API run with different host-managed tooling and configuration.
Partition state by authenticated session and expire or clear it on account switch. That addresses the different 'Session hygiene' situation: A long-lived customer-service worker reuses a prior customer's messages when a new user connects. Here the implementation must instead implement and authorize capabilities for each execution environment rather than assuming cross-product equivalence, because claude Code, Desktop and the API run with different host-managed tooling and configuration.
A chat frontend injects generated text directly into an HTML fragment.
Which change should be made first?
Escape or sanitize generated display content using the frontend's established rendering policy. For the situation 'A chat frontend injects generated text directly into an HTML fragment', this directly implements the required control. Model output is untrusted for browser execution regardless of whether it looks like ordinary prose. Verify the result by checking that security tests show generated tags are rendered as text or sanitized content.
Clearly delimit and label quoted external text and validate instructions by trusted channel. That addresses the different 'Long-form content boundaries' situation: An AI editor may summarize source reports but must not treat quoted passages as command text. Here the implementation must instead escape or sanitize generated display content using the frontend's established rendering policy, because model output is untrusted for browser execution regardless of whether it looks like ordinary prose.
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 escape or sanitize generated display content using the frontend's established rendering policy, because model output is untrusted for browser execution regardless of whether it looks like ordinary prose.
Partition state by authenticated session and expire or clear it on account switch. That addresses the different 'Session hygiene' situation: A long-lived customer-service worker reuses a prior customer's messages when a new user connects. Here the implementation must instead escape or sanitize generated display content using the frontend's established rendering policy, because model output is untrusted for browser execution regardless of whether it looks like ordinary prose.
A desktop agent and a hosted agent both need consistent access to the same tool catalog.
What is the appropriate design decision?
Expose the reusable capability through a secured MCP server with stable schemas. For the situation 'A desktop agent and a hosted agent both need consistent access to the same tool catalog', this directly implements the required control. MCP standardizes the discovery and invocation of tools and resources across compatible clients. Verify the result by checking that both approved clients discover the same scoped tool and receive consistent structured results.
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 expose the reusable capability through a secured MCP server with stable schemas, because mCP standardizes the discovery and invocation of tools and resources across compatible clients.
Authenticate clients and authorize each MCP tool by user and operation scope. That addresses the different 'MCP authorization scopes' situation: A remote MCP server grants all connected clients full production database access. Here the implementation must instead expose the reusable capability through a secured MCP server with stable schemas, because mCP standardizes the discovery and invocation of tools and resources across compatible clients.
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 expose the reusable capability through a secured MCP server with stable schemas, because mCP standardizes the discovery and invocation of tools and resources across compatible clients.
A support team cannot reproduce the output from an incident because only app commit is recorded.
Which change should be made first?
Record prompt revision, model ID and relevant tool configuration for each release and request. For the situation 'A support team cannot reproduce the output from an incident because only app commit is recorded', this directly implements the required control. A model-powered application's behavior depends on configuration beyond source-code hashes. Verify the result by checking that an incident can be replayed with the logged prompt and model configuration.
Record and pin the tested model identifier when reproducibility is required. That addresses the different 'Model ID pinning' situation: A release tests a particular model version but production requests use a moving alias. Here the implementation must instead record prompt revision, model ID and relevant tool configuration for each release and request, because a model-powered application's behavior depends on configuration beyond source-code hashes.
Review settings.json permission policies as controlled configuration changes. That addresses the different 'settings.json permission change' situation: A development team expands command permissions in Claude Code settings. Here the implementation must instead record prompt revision, model ID and relevant tool configuration for each release and request, because a model-powered application's behavior depends on configuration beyond source-code hashes.
Pin compatible integration dependencies, review change notes and run contract tests. That addresses the different 'Dependency and plugin upgrades' situation: A project upgrades an MCP plugin and SDK in the same untested deployment. Here the implementation must instead record prompt revision, model ID and relevant tool configuration for each release and request, because a model-powered application's behavior depends on configuration beyond source-code hashes.
Please check your mailbox for a message from support@examlabs.com and follow the directions.