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 team keeps conflicting instructions in home and repository CLAUDE.md files.
Which approach most directly meets the stated need?
Place stable shared guidance at the appropriate CLAUDE.md scope and resolve overrides explicitly. For the situation 'A team keeps conflicting instructions in home and repository CLAUDE.md files', this directly implements the required control. Claude Code loads applicable instruction files by context and scope; more local guidance can specialize project behavior. Verify the result by checking that a session in each module observes the intended shared and module-local conventions.
Configure tool permissions and require human approval for sensitive filesystem or shell operations. That addresses the different 'Claude Code tool approval' situation: A coding assistant proposes reading a private credential file while fixing tests. Here the implementation must instead place stable shared guidance at the appropriate CLAUDE.md scope and resolve overrides explicitly, because claude Code loads applicable instruction files by context and scope; more local guidance can specialize project behavior.
Encode reusable task instructions in an appropriately scoped Skill rather than manually repeating a long ad hoc prompt. That addresses the different 'Claude Code skill versus command' situation: A project needs a reusable procedure for reviewing generated migrations. Here the implementation must instead place stable shared guidance at the appropriate CLAUDE.md scope and resolve overrides explicitly, because claude Code loads applicable instruction files by context and scope; more local guidance can specialize project behavior.
Use supported headless or print mode with explicit permissions, output handling and exit-code checks. That addresses the different 'Claude Code headless CI use' situation: A pipeline needs a noninteractive code analysis report for each pull request. Here the implementation must instead place stable shared guidance at the appropriate CLAUDE.md scope and resolve overrides explicitly, because claude Code loads applicable instruction files by context and scope; more local guidance can specialize project behavior.
A summarizer treats an untrusted customer note as a higher-priority instruction.
Which implementation is the best fit?
State durable task policy in the trusted instruction channel and label retrieved content as data. For the situation 'A summarizer treats an untrusted customer note as a higher-priority instruction', this directly implements the required control. Explicit separation of instruction sources reduces ambiguity over authority. Verify the result by checking that adversarial retrieved text fails to override the required output structure.
Break the task into explicit stages with checks before consequential output. That addresses the different 'Task decomposition in prompts' situation: A model must simultaneously find defects, propose fixes and rewrite a large document. Here the implementation must instead state durable task policy in the trusted instruction channel and label retrieved content as data, because explicit separation of instruction sources reduces ambiguity over authority.
Request missing identifiers or constraints before taking high-impact action. That addresses the different 'Ambiguity clarification' situation: A user asks a finance assistant to 'approve all the pending ones' with multiple possible targets. Here the implementation must instead state durable task policy in the trusted instruction channel and label retrieved content as data, because explicit separation of instruction sources reduces ambiguity over authority.
Provide short representative input-output demonstrations and a concrete schema. That addresses the different 'Few-shot formatting examples' situation: An extraction bot returns inconsistent table formats for borderline invoices. Here the implementation must instead state durable task policy in the trusted instruction channel and label retrieved content as data, because explicit separation of instruction sources reduces ambiguity over authority.
A document summarizer encounters a PDF that says to ignore all system rules.
Which implementation is the best fit?
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', 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.
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 keep retrieved content as untrusted data and maintain trusted instructions outside it, because trust boundaries prevent source text from becoming application authority.
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 keep retrieved content as untrusted data and maintain trusted instructions outside it, because trust boundaries prevent source text from becoming application authority.
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 keep retrieved content as untrusted data and maintain trusted instructions outside it, because trust boundaries prevent source text from becoming application authority.
An agent repeatedly misformats a function call because required fields are unclear.
Which change should be made first?
Define narrowly scoped tools with precise descriptions, typed parameters and required fields. For the situation 'An agent repeatedly misformats a function call because required fields are unclear', this directly implements the required control. Structured tool schemas guide argument generation and simplify host validation. Verify the result by checking that invalid arguments are rejected and supported tool calls pass schema tests.
Separate server-executed tool configuration from client-defined tools whose execution remains in application code. That addresses the different 'Server versus client tool ownership' situation: A developer expects a user-defined database tool to run on Anthropic infrastructure automatically. Here the implementation must instead define narrowly scoped tools with precise descriptions, typed parameters and required fields, because structured tool schemas guide argument generation and simplify host validation.
Return a structured tool error and let the workflow retry or escalate appropriately. That addresses the different 'Tool failure representation' situation: A search tool returns an upstream timeout but the wrapper passes an empty success result. Here the implementation must instead define narrowly scoped tools with precise descriptions, typed parameters and required fields, because structured tool schemas guide argument generation and simplify host validation.
Execute validated client-side tools and send correlated tool_result content in a subsequent message. That addresses the different 'Client tool result handoff' situation: An API assistant emits a lookup tool_use message and a frontend mistakenly treats it as the retrieved value. Here the implementation must instead define narrowly scoped tools with precise descriptions, typed parameters and required fields, because structured tool schemas guide argument generation and simplify host validation.
A billing tool needs exactly three typed JSON fields for downstream parsing. A separate release review raises the same requirement in a newly deployed environment, with a required sign-off based on observable evidence.
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. A separate release review raises the same requirement in a newly deployed environment, with a required sign-off based on observable evidence', 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.
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 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.
Implement and authorize capabilities for each execution environment rather than assuming cross-product equivalence. That addresses the different 'UI-specific behavior' situation: A developer assumes Claude Desktop tool configuration is automatically present in an API-only app. 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.
A summarization agent requests write access to the customer database even though it only reads records. For another customer workflow, an engineering team is required to demonstrate the same control before launch, with a required sign-off based on observable evidence.
Which change should be made first?
Grant tool scopes only for documented tasks and deny unrelated mutations. For the situation 'A summarization agent requests write access to the customer database even though it only reads records. For another customer workflow, an engineering team is required to demonstrate the same control before launch, with a required sign-off based on observable evidence', this directly implements the required control. Least privilege limits the blast radius of model mistakes or hostile prompts. Verify the result by checking that permission tests fail unauthorized writes while normal reads work.
Revoke and rotate the exposed key, then verify dependent services and audit usage. That addresses the different 'API key rotation' situation: A production key appears in a developer's debug screenshot. Here the implementation must instead grant tool scopes only for documented tasks and deny unrelated mutations, because least privilege limits the blast radius of model mistakes or hostile prompts.
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 grant tool scopes only for documented tasks and deny unrelated mutations, because least privilege limits the blast radius of model mistakes or hostile prompts.
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 grant tool scopes only for documented tasks and deny unrelated mutations, because least privilege limits the blast radius of model mistakes or hostile prompts.
Multiple developers receive inconsistent project instructions because local guidance differs.
What should the engineer do next?
Store project CLAUDE.md in reviewed version control and document local overrides. For the situation 'Multiple developers receive inconsistent project instructions because local guidance differs', this directly implements the required control. Shared repository guidance makes team defaults inspectable while local configuration remains separately controlled. Verify the result by checking that two clean clones use the same reviewed project instructions and known overrides.
Record prompt revision, model ID and relevant tool configuration for each release and request. That addresses the different 'Prompt configuration provenance' situation: A live agent uses prompt templates stored outside the deployment manifest. Here the implementation must instead store project CLAUDE.md in reviewed version control and document local overrides, because shared repository guidance makes team defaults inspectable while local configuration remains separately controlled.
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 store project CLAUDE.md in reviewed version control and document local overrides, because shared repository guidance makes team defaults inspectable while local configuration remains separately controlled.
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 store project CLAUDE.md in reviewed version control and document local overrides, because shared repository guidance makes team defaults inspectable while local configuration remains separately controlled.
An analyst asks to search public documentation using an existing supported web tool.
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', 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.
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.
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.
A search result tells a customer assistant to disclose its hidden system instructions.
Which change should be made first?
Treat external text as untrusted and enforce independent tool and data-access checks. For the situation 'A search result tells a customer assistant to disclose its hidden system instructions', this directly implements the required control. Prompt injection exploits confusion between source data and trusted instructions. Verify the result by checking that injection tests cannot trigger forbidden tool actions or reveal privileged instructions.
Revoke and rotate the exposed key, then verify dependent services and audit usage. That addresses the different 'API key rotation' situation: A production key appears in a developer's debug screenshot. Here the implementation must instead treat external text as untrusted and enforce independent tool and data-access checks, because prompt injection exploits confusion between source data and trusted instructions.
Block unauthorized data destinations and validate outgoing tool arguments against allowlists. That addresses the different 'Output exfiltration prevention' situation: An untrusted page suggests that the agent email account data to a third-party address. Here the implementation must instead treat external text as untrusted and enforce independent tool and data-access checks, because prompt injection exploits confusion between source data and trusted instructions.
Redact or exclude unnecessary personal fields before model and tool calls. That addresses the different 'Sensitive data minimization' situation: A claims chatbot forwards full identity documents although only two nonsecret fields are required. Here the implementation must instead treat external text as untrusted and enforce independent tool and data-access checks, because prompt injection exploits confusion between source data and trusted instructions.
A developer proposes committing a quick demo that contains a real API key.
Which change should be made first?
Enforce pull-request review, secret scanning and automated checks before merge. For the situation 'A developer proposes committing a quick demo that contains a real API key', this directly implements the required control. Version control and review reduce credential leakage and integration regressions. Verify the result by checking that the pipeline blocks credential patterns and tests the changed error paths.
Deduplicate work by request key and make external writes idempotent. That addresses the different 'Idempotent ingestion endpoint' situation: A job queue redelivers the same summarization task after a worker crash. Here the implementation must instead enforce pull-request review, secret scanning and automated checks before merge, because version control and review reduce credential leakage and integration regressions.
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 enforce pull-request review, secret scanning and automated checks before merge, because version control and review reduce credential leakage and integration regressions.
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 enforce pull-request review, secret scanning and automated checks before merge, because version control and review reduce credential leakage and integration regressions.
An agent underthinks a complex cross-system migration plan.
What is the appropriate design decision?
Route tasks to effort levels based on complexity and measure accuracy against time and cost. For the situation 'An agent underthinks a complex cross-system migration plan', this directly implements the required control. Reasoning effort is a tunable quality-latency tradeoff rather than a universal best setting. Verify the result by checking that simple classification latency falls while complex planning maintains required quality.
Choose sampling settings suited to the task and validate outputs instead of assuming guaranteed determinism. That addresses the different 'Temperature and sampling variability' situation: A compliance classifier gives different labels for near-identical repeated requests. Here the implementation must instead route tasks to effort levels based on complexity and measure accuracy against time and cost, because reasoning effort is a tunable quality-latency tradeoff rather than a universal best setting.
Budget input context and output generation separately and prune irrelevant content before exceeding limits. That addresses the different 'Context window versus output budget' situation: An analyst stuffs a year's worth of reports into a request without checking model context limits. Here the implementation must instead route tasks to effort levels based on complexity and measure accuracy against time and cost, because reasoning effort is a tunable quality-latency tradeoff rather than a universal best setting.
Pin relevant versions and test semantic invariants while recognizing remaining generation variability. That addresses the different 'Non-deterministic inference audits' situation: An operator insists that identical prompts must yield identical prose across releases. Here the implementation must instead route tasks to effort levels based on complexity and measure accuracy against time and cost, because reasoning effort is a tunable quality-latency tradeoff rather than a universal best setting.
Please check your mailbox for a message from support@examlabs.com and follow the directions.