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 developer sets a large max_tokens value and assumes the prompt can grow indefinitely.
What should the engineer do next?
Budget input context and output generation separately and prune irrelevant content before exceeding limits. For the situation 'A developer sets a large max_tokens value and assumes the prompt can grow indefinitely', this directly implements the required control. Context window constraints apply to total conversational input and generation while max_tokens limits response length. Verify the result by checking that usage and token-count tests show the assembled request fits and the answer has enough output allowance.
Route tasks to effort levels based on complexity and measure accuracy against time and cost. That addresses the different 'Effort allocation' situation: A service uses maximum reasoning effort for trivial routing decisions. Here the implementation must instead budget input context and output generation separately and prune irrelevant content before exceeding limits, because context window constraints apply to total conversational input and generation while max_tokens limits response length.
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 budget input context and output generation separately and prune irrelevant content before exceeding limits, because context window constraints apply to total conversational input and generation while max_tokens limits response length.
Add a few concise representative examples covering the difficult boundary conditions. That addresses the different 'Zero-shot and few-shot examples' situation: A JSON extraction prompt fails on uncommon invoice layouts. Here the implementation must instead budget input context and output generation separately and prune irrelevant content before exceeding limits, because context window constraints apply to total conversational input and generation while max_tokens limits response length.
A support portal loses context when each request starts a new Messages API call.
Which change should be made first?
Send the relevant conversation messages or a controlled summary on each request. For the situation 'A support portal loses context when each request starts a new Messages API call', this directly implements the required control. The Messages API is stateless with respect to caller conversation history; the application supplies context. Verify the result by checking that a second-turn reference to a prior approved fact works when the history is supplied and fails safely otherwise.
Consume the supported streaming event sequence and assemble deltas into the final message. That addresses the different 'Streaming response assembly' situation: A web UI expects progressive tokens but waits for the full body before displaying anything. Here the implementation must instead send the relevant conversation messages or a controlled summary on each request, because the Messages API is stateless with respect to caller conversation history; the application supplies context.
Use the top-level system parameter for application instructions and structured user messages for user content. That addresses the different 'Role and system instruction placement' situation: A developer includes a top-level system instruction as if it were a user message. Here the implementation must instead send the relevant conversation messages or a controlled summary on each request, because the Messages API is stateless with respect to caller conversation history; the application supplies context.
Choose a supported reasoning or thinking configuration and evaluate quality, latency and token budgets. That addresses the different 'Extended thinking and budget' situation: A planning assistant needs complex multi-constraint reasoning rather than maximum throughput. Here the implementation must instead send the relevant conversation messages or a controlled summary on each request, because the Messages API is stateless with respect to caller conversation history; the application supplies context.
A classification prompt misunderstands boundary cases in a policy.
Which approach most directly meets the stated need?
Add a few concise representative examples covering the difficult boundary conditions. For the situation 'A classification prompt misunderstands boundary cases in a policy', 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.
Route tasks to effort levels based on complexity and measure accuracy against time and cost. That addresses the different 'Effort allocation' situation: A service uses maximum reasoning effort for trivial routing decisions. 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.
A mature assistant must move to a newer Claude model without disrupting existing customer workflows.
Which approach most directly meets the stated need?
Pin the existing model, stage the candidate and evaluate it on a representative regression suite before rollout. For the situation 'A mature assistant must move to a newer Claude model without disrupting existing customer workflows', this directly implements the required control. Model behavior may change despite a stable prompt or API contract, so version transitions require evaluation. Verify the result by checking that canary metrics and representative test cases meet acceptance thresholds before full rollout.
Inventory dependencies, review published deprecations and test supported replacements before a deadline. That addresses the different 'Compatibility deprecation review' situation: A service uses a preview feature that will be removed by the provider. Here the implementation must instead pin the existing model, stage the candidate and evaluate it on a representative regression suite before rollout, because model behavior may change despite a stable prompt or API contract, so version transitions require evaluation.
Version prompts and response schemas in source control and release them with compatible application changes. That addresses the different 'Prompt and schema version control' situation: A prompt engineer edits production system instructions directly in a dashboard. Here the implementation must instead pin the existing model, stage the candidate and evaluate it on a representative regression suite before rollout, because model behavior may change despite a stable prompt or API contract, so version transitions require evaluation.
Roll back the affected prompt or model release behind a feature flag while preserving diagnostic evidence. That addresses the different 'Incident rollback of AI change' situation: An AI deployment suddenly increases invalid summaries after a new prompt release. Here the implementation must instead pin the existing model, stage the candidate and evaluate it on a representative regression suite before rollout, because model behavior may change despite a stable prompt or API contract, so version transitions require evaluation.
A release tests a particular model version but production requests use a moving alias.
What is the appropriate design decision?
Record and pin the tested model identifier when reproducibility is required. For the situation 'A release tests a particular model version but production requests use a moving alias', this directly implements the required control. Stable model selection reduces untracked provider-side behavior drift across releases. Verify the result by checking that request logs identify the same tested model identifier before and after deployment.
Store project CLAUDE.md in reviewed version control and document local overrides. That addresses the different 'CLAUDE.md repository instruction versioning' situation: A team edits repository-level Claude Code guidance without code review. Here the implementation must instead record and pin the tested model identifier when reproducibility is required, because stable model selection reduces untracked provider-side behavior drift across releases.
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 record and pin the tested model identifier when reproducibility is required, because stable model selection reduces untracked provider-side behavior drift across releases.
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 and pin the tested model identifier when reproducibility is required, because stable model selection reduces untracked provider-side behavior drift across releases.
An agent retrieves a policy memo that was superseded last quarter.
Which change should be made first?
Attach source, timestamp, tenant scope and expiry or invalidation rules to stored memory. For the situation 'An agent retrieves a policy memo that was superseded last quarter', this directly implements the required control. Persistent memory outlives an inference context and needs provenance and freshness controls. Verify the result by checking that a stale or wrong-tenant memory item is excluded in a replay test.
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 attach source, timestamp, tenant scope and expiry or invalidation rules to stored memory, because persistent memory outlives an inference context and needs provenance and freshness controls.
Run independent scoped subagent tasks concurrently and merge after validating each result. That addresses the different 'Parallel subagent aggregation' situation: A coordinator asks two independent specialists to inspect separate code modules. Here the implementation must instead attach source, timestamp, tenant scope and expiry or invalidation rules to stored memory, because persistent memory outlives an inference context and needs provenance and freshness controls.
Summarize durable decisions and prune irrelevant tool history before continuing. That addresses the different 'Context compaction in agent loop' situation: A lengthy agent run approaches its model context capacity after dozens of tool results. Here the implementation must instead attach source, timestamp, tenant scope and expiry or invalidation rules to stored memory, because persistent memory outlives an inference context and needs provenance and freshness controls.
A bursty integration receives HTTP 429 responses during sales events.
Which change should be made first?
Implement bounded exponential backoff with jitter and respect retry guidance and quotas. For the situation 'A bursty integration receives HTTP 429 responses during sales events', this directly implements the required control. A rate limit is a capacity signal; coordinated retries should reduce rather than amplify load. Verify the result by checking that load testing shows declining retries and successful recovery without duplicated side effects.
Use the top-level system parameter for application instructions and structured user messages for user content. That addresses the different 'Role and system instruction placement' situation: A developer includes a top-level system instruction as if it were a user message. Here the implementation must instead implement bounded exponential backoff with jitter and respect retry guidance and quotas, because a rate limit is a capacity signal; coordinated retries should reduce rather than amplify load.
Consume the supported streaming event sequence and assemble deltas into the final message. That addresses the different 'Streaming response assembly' situation: A web UI expects progressive tokens but waits for the full body before displaying anything. Here the implementation must instead implement bounded exponential backoff with jitter and respect retry guidance and quotas, because a rate limit is a capacity signal; coordinated retries should reduce rather than amplify load.
Supply the supported image content block with adequate quality and an explicit extraction task. That addresses the different 'Vision input handling' situation: A field technician sends a photo of equipment labels for interpretation. Here the implementation must instead implement bounded exponential backoff with jitter and respect retry guidance and quotas, because a rate limit is a capacity signal; coordinated retries should reduce rather than amplify load.
A research worker needs access only to public vendor documentation.
Which change should be made first?
Pass a minimal task-specific context and scoped tools to each subagent. For the situation 'A research worker needs access only to public vendor documentation', this directly implements the required control. Subagent isolation limits accidental data sharing and keeps working context focused. Verify the result by checking that a test trace shows the specialist receives only authorized inputs and returns scoped findings.
Maintain a concise durable state summary of objectives, constraints and decisions during long sessions. That addresses the different 'Long conversation drift' situation: A multi-hour troubleshooting chat forgets an early requirement not to restart production services. Here the implementation must instead pass a minimal task-specific context and scoped tools to each subagent, because subagent isolation limits accidental data sharing and keeps working context focused.
Retrieve and keep only relevant evidence while retaining governing constraints and provenance. That addresses the different 'Context retrieval prioritization' situation: A customer agent receives 200 search hits but only five are relevant to the answer. Here the implementation must instead pass a minimal task-specific context and scoped tools to each subagent, because subagent isolation limits accidental data sharing and keeps working context focused.
Replace bulky completed tool outputs with a verified structured summary and a retrieval pointer. That addresses the different 'Tool output pruning' situation: An agent reuses giant JSON tool responses after extracting the fields it needs. Here the implementation must instead pass a minimal task-specific context and scoped tools to each subagent, because subagent isolation limits accidental data sharing and keeps working context focused.
A summarization agent requests write access to the customer database even though it only reads records.
Which implementation is the best fit?
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', 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.
Bind service identities to tenant and operation scopes, and authorize each tool request. That addresses the different 'Identity-bound service authorization' situation: A SaaS backend uses one unscoped credential to access all customers' records. 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.
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.
A team needs balanced latency, code understanding and cost for an internal assistant.
Which approach most directly meets the stated need?
Benchmark a current Sonnet-class model as the balanced baseline before considering heavier or lighter tiers. For the situation 'A team needs balanced latency, code understanding and cost for an internal assistant', this directly implements the required control. Model families trade off capability, latency and token price; Sonnet is commonly the middle option. Verify the result by checking that a representative quality-latency-cost benchmark meets product targets.
Pin the old version, evaluate the replacement on real fixtures and update prompts or parsers deliberately. That addresses the different 'Version migration behavior' situation: A team plans to upgrade from an older Claude generation and assumes prompts behave identically. Here the implementation must instead benchmark a current Sonnet-class model as the balanced baseline before considering heavier or lighter tiers, because model families trade off capability, latency and token price; Sonnet is commonly the middle option.
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 benchmark a current Sonnet-class model as the balanced baseline before considering heavier or lighter tiers, because model families trade off capability, latency and token price; Sonnet is commonly the middle option.
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 benchmark a current Sonnet-class model as the balanced baseline before considering heavier or lighter tiers, because model families trade off capability, latency and token price; Sonnet is commonly the middle option.
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.
Please check your mailbox for a message from support@examlabs.com and follow the directions.