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
An assistant adds a calendar integration that also requests broad email privileges.
What is the appropriate design decision?
Review plugin scopes and grant only capabilities required for the specific workflow. For the situation 'An assistant adds a calendar integration that also requests broad email privileges', 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.
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 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.
A team plans to upgrade from an older Claude generation and assumes prompts behave identically.
Which implementation is the best fit?
Pin the old version, evaluate the replacement on real fixtures and update prompts or parsers deliberately. For the situation 'A team plans to upgrade from an older Claude generation and assumes prompts behave identically', this directly implements the required control. Model upgrades can change output patterns and reasoning even when the outer API is stable. Verify the result by checking that before-after evaluation identifies affected workflows and approved migration fixes.
Evaluate a current Haiku-class model for fast lower-cost bounded classification with escalation. That addresses the different 'Haiku high-throughput routing' situation: A company triages thousands of short, straightforward messages per hour. Here the implementation must instead pin the old version, evaluate the replacement on real fixtures and update prompts or parsers deliberately, because model upgrades can change output patterns and reasoning even when the outer API is stable.
Benchmark a current Sonnet-class model as the balanced baseline before considering heavier or lighter tiers. That addresses the different 'Sonnet default tradeoff' situation: A team needs balanced latency, code understanding and cost for an internal assistant. Here the implementation must instead pin the old version, evaluate the replacement on real fixtures and update prompts or parsers deliberately, because model upgrades can change output patterns and reasoning even when the outer API is stable.
Benchmark a current Opus-class model for the high-complexity task while keeping human review for consequential decisions. That addresses the different 'Opus complex work' situation: An engineering assistant handles deeply entangled repository refactors with substantial reasoning needs. Here the implementation must instead pin the old version, evaluate the replacement on real fixtures and update prompts or parsers deliberately, because model upgrades can change output patterns and reasoning even when the outer API is stable.
A JSON extraction prompt fails on uncommon invoice layouts.
Which change should be made first?
Add a few concise representative examples covering the difficult boundary conditions. For the situation 'A JSON extraction prompt fails on uncommon invoice layouts', this directly implements the required control. Few-shot demonstrations communicate patterns and exceptions more concretely than vague instructions. Verify the result by checking that a held-out boundary-case set improves without increasing false positives elsewhere.
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 add a few concise representative examples covering the difficult boundary conditions, because few-shot demonstrations communicate patterns and exceptions more concretely than vague instructions.
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 add a few concise representative examples covering the difficult boundary conditions, because few-shot demonstrations communicate patterns and exceptions more concretely than vague instructions.
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 add a few concise representative examples covering the difficult boundary conditions, because few-shot demonstrations communicate patterns and exceptions more concretely than vague instructions.
An ETL job depends on a fixed JSON schema for model extraction.
Which change should be made first?
Use a supported structured response schema and validate parsed types before downstream writes. For the situation 'An ETL job depends on a fixed JSON schema for model extraction', this directly implements the required control. Constrained output and independent validation reduce format ambiguity. Verify the result by checking that invalid objects are rejected with a useful error instead of silently coerced.
Associate each important assertion with the retrieved evidence and reject unsupported claims. That addresses the different 'Citation and evidence mapping' situation: A knowledge assistant makes policy claims but shows citations to unrelated pages. Here the implementation must instead use a supported structured response schema and validate parsed types before downstream writes, because constrained output and independent validation reduce format ambiguity.
Cross-check material claims against authoritative tool results and expose uncertainty for missing evidence. That addresses the different 'Confident hallucination verification' situation: An assistant confidently invents a price from a missing supplier record. Here the implementation must instead use a supported structured response schema and validate parsed types before downstream writes, because constrained output and independent validation reduce format ambiguity.
Parse with explicit error handling, schema checks and a bounded repair or retry path. That addresses the different 'Defensive output parsing' situation: A generator sometimes wraps JSON in markdown fences despite formatting guidance. Here the implementation must instead use a supported structured response schema and validate parsed types before downstream writes, because constrained output and independent validation reduce format ambiguity.
A team revises a system prompt repeatedly after one anecdotal failure.
What should the engineer do next?
Run a representative test set after controlled prompt revisions and keep a change log. For the situation 'A team revises a system prompt repeatedly after one anecdotal failure', this directly implements the required control. Prompt engineering is an empirical optimization process not a sequence of unmeasured edits. Verify the result by checking that a revision improves tracked metrics with rollback available for failed candidates.
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 run a representative test set after controlled prompt revisions and keep a change log, because prompt engineering is an empirical optimization process not a sequence of unmeasured edits.
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 run a representative test set after controlled prompt revisions and keep a change log, because prompt engineering is an empirical optimization process not a sequence of unmeasured edits.
State durable task policy in the trusted instruction channel and label retrieved content as data. That addresses the different 'Clear instruction hierarchy' situation: A summarizer treats an untrusted customer note as a higher-priority instruction. Here the implementation must instead run a representative test set after controlled prompt revisions and keep a change log, because prompt engineering is an empirical optimization process not a sequence of unmeasured edits.
A client catches every exception and retries even invalid input.
What is the appropriate design decision?
Classify client validation, authentication, throttling and server/transient failures before retrying. For the situation 'A client catches every exception and retries even invalid input', this directly implements the required control. HTTP error classes convey whether a request is malformed, unauthorized or temporarily unavailable. Verify the result by checking that tests retry eligible transient errors while surfacing permanent 4xx input errors promptly.
Understand the SDK as a typed transport and helper layer over the documented API contract. That addresses the different 'SDK wrapper semantics' situation: A developer assumes the Python SDK changes the underlying API's tool-call contract. Here the implementation must instead classify client validation, authentication, throttling and server/transient failures before retrying, because hTTP error classes convey whether a request is malformed, unauthorized or temporarily unavailable.
Use the documented streaming response protocol and event types for Claude output. That addresses the different 'Streaming versus socket assumptions' situation: A developer treats HTTP server-sent model events as if they were a two-way WebSocket stream. Here the implementation must instead classify client validation, authentication, throttling and server/transient failures before retrying, because hTTP error classes convey whether a request is malformed, unauthorized or temporarily unavailable.
Choose persistent bidirectional transport only when continuous exchange is required; otherwise keep simpler HTTP calls. That addresses the different 'WebSocket fit' situation: A team proposes WebSockets for a one-time nightly document summarization job. Here the implementation must instead classify client validation, authentication, throttling and server/transient failures before retrying, because hTTP error classes convey whether a request is malformed, unauthorized or temporarily unavailable.
An API wrapper mixes output rules into the same field as retrieved content.
What is the appropriate design decision?
State durable task policy in the trusted instruction channel and label retrieved content as data. For the situation 'An API wrapper mixes output rules into the same field as retrieved content', 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.
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.
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.
Run a representative test set after controlled prompt revisions and keep a change log. That addresses the different 'Iterative prompt evaluation' situation: A team revises a system prompt repeatedly after one anecdotal failure. 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 support classifier reverses two similar labels when examples are absent.
What should the engineer do next?
Provide short representative input-output demonstrations and a concrete schema. For the situation 'A support classifier reverses two similar labels when examples are absent', this directly implements the required control. Examples show the intended transformation including subtle category boundaries. Verify the result by checking that a held-out fixture set yields stable labels and compliant format.
State durable task policy in the trusted instruction channel and label retrieved content as data. That addresses the different 'Clear instruction hierarchy' situation: A summarizer treats an untrusted customer note as a higher-priority instruction. Here the implementation must instead provide short representative input-output demonstrations and a concrete schema, because examples show the intended transformation including subtle category boundaries.
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 provide short representative input-output demonstrations and a concrete schema, because examples show the intended transformation including subtle category boundaries.
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 provide short representative input-output demonstrations and a concrete schema, because examples show the intended transformation including subtle category boundaries.
A scheduled job invokes Claude Code without a terminal to inspect changed files.
Which change should be made first?
Use supported headless or print mode with explicit permissions, output handling and exit-code checks. For the situation 'A scheduled job invokes Claude Code without a terminal to inspect changed files', this directly implements the required control. Noninteractive CLI execution requires machine-readable output and preconfigured authorization rather than terminal prompts. Verify the result by checking that cI captures the generated analysis, validates its format and fails on unauthorized tool attempts.
Place stable shared guidance at the appropriate CLAUDE.md scope and resolve overrides explicitly. That addresses the different 'CLAUDE.md hierarchy' situation: A mono-repo needs global coding conventions plus module-specific guidance for one Python package. Here the implementation must instead use supported headless or print mode with explicit permissions, output handling and exit-code checks, because noninteractive CLI execution requires machine-readable output and preconfigured authorization rather than terminal prompts.
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 use supported headless or print mode with explicit permissions, output handling and exit-code checks, because noninteractive CLI execution requires machine-readable output and preconfigured authorization rather than terminal prompts.
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 use supported headless or print mode with explicit permissions, output handling and exit-code checks, because noninteractive CLI execution requires machine-readable output and preconfigured authorization rather than terminal prompts.
A user asks a finance assistant to 'approve all the pending ones' with multiple possible targets.
What is the appropriate design decision?
Request missing identifiers or constraints before taking high-impact action. For the situation 'A user asks a finance assistant to 'approve all the pending ones' with multiple possible targets', this directly implements the required control. Clarifying ambiguous intent is more reliable than inventing specifics. Verify the result by checking that the system records the confirmed target before execution.
Run a representative test set after controlled prompt revisions and keep a change log. That addresses the different 'Iterative prompt evaluation' situation: A team revises a system prompt repeatedly after one anecdotal failure. Here the implementation must instead request missing identifiers or constraints before taking high-impact action, because clarifying ambiguous intent is more reliable than inventing specifics.
State durable task policy in the trusted instruction channel and label retrieved content as data. That addresses the different 'Clear instruction hierarchy' situation: A summarizer treats an untrusted customer note as a higher-priority instruction. Here the implementation must instead request missing identifiers or constraints before taking high-impact action, because clarifying ambiguous intent is more reliable than inventing specifics.
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 request missing identifiers or constraints before taking high-impact action, because clarifying ambiguous intent is more reliable than inventing specifics.
A claims chatbot forwards full identity documents although only two nonsecret fields are required.
Which implementation is the best fit?
Redact or exclude unnecessary personal fields before model and tool calls. For the situation 'A claims chatbot forwards full identity documents although only two nonsecret fields are required', this directly implements the required control. Data minimization reduces exposure even when downstream services are otherwise authorized. Verify the result by checking that traces show only the required fields cross the integration boundary.
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 redact or exclude unnecessary personal fields before model and tool calls, because data minimization reduces exposure even when downstream services are otherwise authorized.
Grant tool scopes only for documented tasks and deny unrelated mutations. That addresses the different 'Least privilege for tools' situation: A summarization agent requests write access to the customer database even though it only reads records. Here the implementation must instead redact or exclude unnecessary personal fields before model and tool calls, because data minimization reduces exposure even when downstream services are otherwise authorized.
Treat external text as untrusted and enforce independent tool and data-access checks. That addresses the different 'Prompt injection through retrieved source' situation: A search result tells a customer assistant to disclose its hidden system instructions. Here the implementation must instead redact or exclude unnecessary personal fields before model and tool calls, because data minimization reduces exposure even when downstream services are otherwise authorized.
Please check your mailbox for a message from support@examlabs.com and follow the directions.