Question 140
Engineers are splitting a latency optimization service into two independently tested functions. Function A must spend high-capability tokens only when validation indicates complexity, while function B must avoid underbudgeting a report-writing feature whose completions are much longer than inputs. Which plan is sound?
- First component: Measure cache read tokens. Second component: Estimate output length before scaling.
- First component: Use model routing for simple versus hard cases. Second component: Set maximum step counts for agents.
- First component: Set maximum step counts for agents. Second component: Measure cache read tokens.
- First component: Use model routing for simple versus hard cases. Second component: Estimate output length before scaling.
Explanation
Correct Answer
D:The first proposal fits its assigned role because conditional routing improves blended cost without discarding an escalation path, while the second proposal fits its assigned role because cost models should include the generated token volume and task-specific variance; their respective acceptance criteria are to spend high-capability tokens only when validation indicates complexity and to avoid underbudgeting a report-writing feature whose completions are much longer than inputs.
Incorrect Answers
A:The first proposal serves the different purpose to verify that an optimization actually reuses an earlier prompt prefix instead of the assigned first role because usage fields show how much eligible cached input was read rather than recomputed, while the second proposal fits its assigned role because cost models should include the generated token volume and task-specific variance; their respective acceptance criteria are to spend high-capability tokens only when validation indicates complexity and to avoid underbudgeting a report-writing feature whose completions are much longer than inputs.
B:The first proposal fits its assigned role because conditional routing improves blended cost without discarding an escalation path, while the second proposal serves the different purpose to contain cumulative token and tool cost across a recursive research session instead of the assigned second role because a bound on iterations prevents repeated generation and calls from growing without limit; their respective acceptance criteria are to spend high-capability tokens only when validation indicates complexity and to avoid underbudgeting a report-writing feature whose completions are much longer than inputs.
C:The first proposal serves the different purpose to contain cumulative token and tool cost across a recursive research session instead of the assigned first role because a bound on iterations prevents repeated generation and calls from growing without limit, while the second proposal serves the different purpose to verify that an optimization actually reuses an earlier prompt prefix instead of the assigned second role because usage fields show how much eligible cached input was read rather than recomputed; their respective acceptance criteria are to spend high-capability tokens only when validation indicates complexity and to avoid underbudgeting a report-writing feature whose completions are much longer than inputs.
Question 141
A release plan for a model platform platform has two acceptance checks: component one must smooth sudden ingestion spikes before workers call a capacity-limited model API; component two must avoid treating a tool call or thinking block as user-visible answer text. Which proposal passes both?
- First component: Use a queue for burst absorption. Second component: Use direct HTTP REST integration for unsupported runtimes.
- First component: Choose SSE for one-way streamed responses. Second component: Parse responses by content block type.
- First component: Use a queue for burst absorption. Second component: Parse responses by content block type.
- First component: Use direct HTTP REST integration for unsupported runtimes. Second component: Choose SSE for one-way streamed responses.
Explanation
Correct Answer
C:The first proposal fits its assigned role because queueing decouples producers from consumer throughput and enables controlled retries, while the second proposal fits its assigned role because structured outputs can contain different block kinds that need type-aware handling; their respective acceptance criteria are to smooth sudden ingestion spikes before workers call a capacity-limited model API and to avoid treating a tool call or thinking block as user-visible answer text.
Incorrect Answers
A:The first proposal fits its assigned role because queueing decouples producers from consumer throughput and enables controlled retries, while the second proposal serves the different purpose to call the Messages endpoint from a language without a mature provider SDK instead of the assigned second role because a standards-based HTTP client can send JSON requests with the correct headers and decode responses; their respective acceptance criteria are to smooth sudden ingestion spikes before workers call a capacity-limited model API and to avoid treating a tool call or thinking block as user-visible answer text.
B:The first proposal serves the different purpose to deliver tokens to a browser without maintaining a bidirectional command channel instead of the assigned first role because server-sent events provide ordered server-to-client updates over an HTTP stream, while the second proposal fits its assigned role because structured outputs can contain different block kinds that need type-aware handling; their respective acceptance criteria are to smooth sudden ingestion spikes before workers call a capacity-limited model API and to avoid treating a tool call or thinking block as user-visible answer text.
D:The first proposal serves the different purpose to call the Messages endpoint from a language without a mature provider SDK instead of the assigned first role because a standards-based HTTP client can send JSON requests with the correct headers and decode responses, while the second proposal serves the different purpose to deliver tokens to a browser without maintaining a bidirectional command channel instead of the assigned second role because server-sent events provide ordered server-to-client updates over an HTTP stream; their respective acceptance criteria are to smooth sudden ingestion spikes before workers call a capacity-limited model API and to avoid treating a tool call or thinking block as user-visible answer text.
Question 142
A privacy controls team owns two independent components. The first must prevent a compromised tool step from sending internal files to arbitrary destinations; the second must prevent a read-only support tool from modifying billing tables. Which paired plan fulfills both?
- First component: Encrypt sensitive data in transit. Second component: Scope database credentials by tenant and operation.
- First component: Limit external network egress for agents. Second component: Scope database credentials by tenant and operation.
- First component: Treat tool and retrieval text as untrusted. Second component: Validate tool arguments server-side.
- First component: Limit external network egress for agents. Second component: Validate tool arguments server-side.
- First component: Validate tool arguments server-side. Second component: Encrypt sensitive data in transit.
Explanation
Correct Answer
B:The first proposal fits its assigned role because network policy restricts which services a tool process can contact, while the second proposal fits its assigned role because least-privilege identity limits the damage from a manipulated tool call; their respective acceptance criteria are to prevent a compromised tool step from sending internal files to arbitrary destinations and to prevent a read-only support tool from modifying billing tables.
Incorrect Answers
A:The first proposal serves the different purpose to protect payload confidentiality between the application and its API endpoint instead of the assigned first role because modern transport encryption limits interception across network boundaries, while the second proposal fits its assigned role because least-privilege identity limits the damage from a manipulated tool call; their respective acceptance criteria are to prevent a compromised tool step from sending internal files to arbitrary destinations and to prevent a read-only support tool from modifying billing tables.
C:The first proposal serves the different purpose to stop an injected wiki page from asking an assistant to export credentials instead of the assigned first role because lower-trust content is evidence only; control decisions remain with authenticated policy and tool gates, while the second proposal serves the different purpose to block a generated database query that targets another tenant's records instead of the assigned second role because backend authorization checks must bind the requested operation to the caller's entitlements; their respective acceptance criteria are to prevent a compromised tool step from sending internal files to arbitrary destinations and to prevent a read-only support tool from modifying billing tables.
D:The first proposal fits its assigned role because network policy restricts which services a tool process can contact, while the second proposal serves the different purpose to block a generated database query that targets another tenant's records instead of the assigned second role because backend authorization checks must bind the requested operation to the caller's entitlements; their respective acceptance criteria are to prevent a compromised tool step from sending internal files to arbitrary destinations and to prevent a read-only support tool from modifying billing tables.
E:The first proposal serves the different purpose to block a generated database query that targets another tenant's records instead of the assigned first role because backend authorization checks must bind the requested operation to the caller's entitlements, while the second proposal serves the different purpose to protect payload confidentiality between the application and its API endpoint instead of the assigned second role because modern transport encryption limits interception across network boundaries; their respective acceptance criteria are to prevent a compromised tool step from sending internal files to arbitrary destinations and to prevent a read-only support tool from modifying billing tables.
Question 143
A release plan for a tool integration platform has two acceptance checks: component one must share a repeatable analyst workflow across supported clients; component two must let multiple compatible clients request a controlled shipment lookup. Which proposal passes both?
- First component: Expose an MCP prompt template. Second component: Expose an MCP tool for an external action.
- First component: Validate MCP tool schemas and results. Second component: Expose an MCP tool for an external action.
- First component: Expose an MCP prompt template. Second component: Expose an MCP resource for reference content.
- First component: Expose an MCP resource for reference content. Second component: Validate MCP tool schemas and results.
Explanation
Correct Answer
A:The first proposal fits its assigned role because prompts describe reusable message templates or workflows offered by the server, while the second proposal fits its assigned role because MCP tools advertise callable operations with named parameters and schemas across client integrations; their respective acceptance criteria are to share a repeatable analyst workflow across supported clients and to let multiple compatible clients request a controlled shipment lookup.
Incorrect Answers
B:The first proposal serves the different purpose to prevent a server update from returning incompatible payloads to clients instead of the assigned first role because contract tests check declared capabilities, argument shapes, and expected response content, while the second proposal fits its assigned role because MCP tools advertise callable operations with named parameters and schemas across client integrations; their respective acceptance criteria are to share a repeatable analyst workflow across supported clients and to let multiple compatible clients request a controlled shipment lookup.
C:The first proposal fits its assigned role because prompts describe reusable message templates or workflows offered by the server, while the second proposal serves the different purpose to make a versioned product catalog available for read-oriented context retrieval instead of the assigned second role because resources provide identifiable data that clients can fetch for model context; their respective acceptance criteria are to share a repeatable analyst workflow across supported clients and to let multiple compatible clients request a controlled shipment lookup.
D:The first proposal serves the different purpose to make a versioned product catalog available for read-oriented context retrieval instead of the assigned first role because resources provide identifiable data that clients can fetch for model context, while the second proposal serves the different purpose to prevent a server update from returning incompatible payloads to clients instead of the assigned second role because contract tests check declared capabilities, argument shapes, and expected response content; their respective acceptance criteria are to share a repeatable analyst workflow across supported clients and to let multiple compatible clients request a controlled shipment lookup.
Question 144
Engineers are splitting an inference routing service into two independently tested functions. Function A must design tests that tolerate benign wording variation while detecting semantic failures, while function B must brainstorm diverse naming candidates without demanding identical wording on every run. Which plan is sound?
- First component: Treat model outputs as stochastic. Second component: Use varied sampling only for ideation.
- First component: Treat model outputs as stochastic. Second component: Budget tokens rather than characters.
- First component: Use contrasting few-shot examples. Second component: Use varied sampling only for ideation.
- First component: Budget tokens rather than characters. Second component: Use contrasting few-shot examples.
Explanation
Correct Answer
A:The first proposal fits its assigned role because non-determinism requires evaluation by criteria and repeated examples rather than exact-string equality everywhere, while the second proposal fits its assigned role because greater sampling diversity can produce a wider range of suggestions for exploratory work; their respective acceptance criteria are to design tests that tolerate benign wording variation while detecting semantic failures and to brainstorm diverse naming candidates without demanding identical wording on every run.
Incorrect Answers
B:The first proposal fits its assigned role because non-determinism requires evaluation by criteria and repeated examples rather than exact-string equality everywhere, while the second proposal serves the different purpose to estimate whether a multilingual request will fit a model context window instead of the assigned second role because tokenization splits text into model-specific units, so character counts are not a reliable context proxy; their respective acceptance criteria are to design tests that tolerate benign wording variation while detecting semantic failures and to brainstorm diverse naming candidates without demanding identical wording on every run.
C:The first proposal serves the different purpose to distinguish borderline policy labels with examples of both allowed and disallowed cases instead of the assigned first role because multiple representative cases help define a decision boundary and reduce ambiguity, while the second proposal fits its assigned role because greater sampling diversity can produce a wider range of suggestions for exploratory work; their respective acceptance criteria are to design tests that tolerate benign wording variation while detecting semantic failures and to brainstorm diverse naming candidates without demanding identical wording on every run.
D:The first proposal serves the different purpose to estimate whether a multilingual request will fit a model context window instead of the assigned first role because tokenization splits text into model-specific units, so character counts are not a reliable context proxy, while the second proposal serves the different purpose to distinguish borderline policy labels with examples of both allowed and disallowed cases instead of the assigned second role because multiple representative cases help define a decision boundary and reduce ambiguity; their respective acceptance criteria are to design tests that tolerate benign wording variation while detecting semantic failures and to brainstorm diverse naming candidates without demanding identical wording on every run.
Question 145
A design review identifies a missing capability in a production API project: it must prevent an untested tool-allowlist edit from reaching all developers immediately. Which change meets that goal?
- Roll out configuration through reviewed changes
- Put repository guidance in CLAUDE.md
- Version prompt templates alongside code
- Track MCP server versions and contracts
Explanation
Correct Answer
A:Change review and versioning provide accountability and a tested rollback path; this behavior directly supports the need to prevent an untested tool-allowlist edit from reaching all developers immediately. Undocumented local overrides create configuration drift.
Incorrect Answers
B:Repository memory files provide persistent instructional context to coding sessions; despite being useful when a service must give Claude Code the project's build, test, and architecture conventions, it is not a solution to prevent an untested tool-allowlist edit from reaching all developers immediately; they are not an application secrets manager or the API's global system prompt.
C:For the alternate objective to trace a quality regression to the exact instruction revision used, source-controlled prompt assets make rollbacks, diffs, and evaluations possible; the feature here must prevent an untested tool-allowlist edit from reaching all developers immediately, and editing prompts in an unversioned dashboard hides causal history.
D:Declared versions and integration tests expose resource or schema changes before deployment; this applies to the different goal to keep external tool connectors compatible after client upgrades, not the requirement to prevent an untested tool-allowlist edit from reaching all developers immediately; automatically using the newest connector can alter behavior unexpectedly.
Question 146
After pilot feedback, an external system access group needs two independent improvements. The first is to give a coding agent a consistent review playbook and supporting assets; the second is to make a coding or API assistant follow organization-wide conventions. Which engineering proposal handles both?
- First component: Package a Skill for reusable guidance. Second component: Use system or repository instructions for stable behavior.
- First component: Publish an MCP server for reusable integrations. Second component: Use subagents for independent expertise.
- First component: Use subagents for independent expertise. Second component: Use system or repository instructions for stable behavior.
- First component: Package a Skill for reusable guidance. Second component: Publish an MCP server for reusable integrations.
Explanation
Correct Answer
A:The first proposal fits its assigned role because a Skill provides task procedures and resources that the agent can load when applicable, while the second proposal fits its assigned role because instructions shape model behavior and task framing without executing external operations; their respective acceptance criteria are to give a coding agent a consistent review playbook and supporting assets and to make a coding or API assistant follow organization-wide conventions.
Incorrect Answers
B:The first proposal serves the different purpose to make one internal ticketing connector available to several agent clients instead of the assigned first role because MCP standardizes tool and resource discovery across compatible applications, while the second proposal serves the different purpose to delegate a security analysis while keeping the main coordinator's context concise instead of the assigned second role because specialist contexts reduce tool-output contamination and support focused parallel work; their respective acceptance criteria are to give a coding agent a consistent review playbook and supporting assets and to make a coding or API assistant follow organization-wide conventions.
C:The first proposal serves the different purpose to delegate a security analysis while keeping the main coordinator's context concise instead of the assigned first role because specialist contexts reduce tool-output contamination and support focused parallel work, while the second proposal fits its assigned role because instructions shape model behavior and task framing without executing external operations; their respective acceptance criteria are to give a coding agent a consistent review playbook and supporting assets and to make a coding or API assistant follow organization-wide conventions.
D:The first proposal fits its assigned role because a Skill provides task procedures and resources that the agent can load when applicable, while the second proposal serves the different purpose to make one internal ticketing connector available to several agent clients instead of the assigned second role because MCP standardizes tool and resource discovery across compatible applications; their respective acceptance criteria are to give a coding agent a consistent review playbook and supporting assets and to make a coding or API assistant follow organization-wide conventions.
Question 147
A model platform delivery milestone depends on two separate capabilities. One module must brainstorm diverse naming candidates without demanding identical wording on every run; a second module must clarify a specific formatting convention that a plain instruction was not conveying. Which implementation option is appropriate?
- First component: Use varied sampling only for ideation. Second component: Reduce reasoning effort on trivial routing.
- First component: Use varied sampling only for ideation. Second component: Use one representative example.
- First component: Treat model outputs as stochastic. Second component: Use one representative example.
- First component: Reduce reasoning effort on trivial routing. Second component: Treat model outputs as stochastic.
Explanation
Correct Answer
B:The first proposal fits its assigned role because greater sampling diversity can produce a wider range of suggestions for exploratory work, while the second proposal fits its assigned role because a single demonstration can anchor the expected shape and tone of a generated response; their respective acceptance criteria are to brainstorm diverse naming candidates without demanding identical wording on every run and to clarify a specific formatting convention that a plain instruction was not conveying.
Incorrect Answers
A:The first proposal fits its assigned role because greater sampling diversity can produce a wider range of suggestions for exploratory work, while the second proposal serves the different purpose to shorten latency and spend on tasks that need only basic categorization instead of the assigned second role because lower effort can suit predictable work where deeper reasoning adds little measurable quality; their respective acceptance criteria are to brainstorm diverse naming candidates without demanding identical wording on every run and to clarify a specific formatting convention that a plain instruction was not conveying.
C:The first proposal serves the different purpose to design tests that tolerate benign wording variation while detecting semantic failures instead of the assigned first role because non-determinism requires evaluation by criteria and repeated examples rather than exact-string equality everywhere, while the second proposal fits its assigned role because a single demonstration can anchor the expected shape and tone of a generated response; their respective acceptance criteria are to brainstorm diverse naming candidates without demanding identical wording on every run and to clarify a specific formatting convention that a plain instruction was not conveying.
D:The first proposal serves the different purpose to shorten latency and spend on tasks that need only basic categorization instead of the assigned first role because lower effort can suit predictable work where deeper reasoning adds little measurable quality, while the second proposal serves the different purpose to design tests that tolerate benign wording variation while detecting semantic failures instead of the assigned second role because non-determinism requires evaluation by criteria and repeated examples rather than exact-string equality everywhere; their respective acceptance criteria are to brainstorm diverse naming candidates without demanding identical wording on every run and to clarify a specific formatting convention that a plain instruction was not conveying.
Question 148
An engineer extending a customer platform workflow has been asked to provision an interactive application for peak seasonal traffic. Which choice addresses the request most precisely?
- Document functional acceptance criteria
- Classify data sensitivity up front
- Agree on output contracts with downstream systems
- Record nonfunctional latency targets
- Calculate expected traffic and concurrency
Explanation
Correct Answer
E:Workload assumptions drive rate-limit planning, queue capacity, and retry strategy; this behavior directly supports the need to provision an interactive application for peak seasonal traffic. Average request volume alone hides burst behavior.
Incorrect Answers
A:Acceptance criteria specify inputs, outputs, and successful behavior that can be tested before release; the supported outcome is to turn a vague request for an AI claims assistant into observable user actions and outputs, whereas this scenario requires the ability to provision an interactive application for peak seasonal traffic; choosing a model first does not define what the application must accomplish.
B:This approach serves the separate need to decide which customer fields must be redacted before model requests because data classification guides minimization, access controls, retention, and acceptable transfers; it does not establish the outcome to provision an interactive application for peak seasonal traffic, and sanitizing only after a model has seen secret input is too late.
C:Typed fields and required identifiers enable validators and consumers to reject malformed results; despite being useful when a service must deliver model-generated records to a strict financial reporting API, it is not a solution to provision an interactive application for peak seasonal traffic; a free-form explanatory paragraph may be legible but not machine-consumable.
D:For the alternate objective to decide between streaming and offline processing for a time-sensitive support assistant, a measurable response-time objective constrains interaction design and infrastructure choices; the feature here must provision an interactive application for peak seasonal traffic, and functional prompts alone cannot establish acceptable performance.
Question 149
A backend integration team owns two independent components. The first must deploy the same application build to staging and production with distinct endpoints; the second must give Claude Code the project's build, test, and architecture conventions. Which paired plan fulfills both?
- First component: Keep environment-specific settings external. Second component: Put repository guidance in CLAUDE.md.
- First component: Track MCP server versions and contracts. Second component: Put repository guidance in CLAUDE.md.
- First component: Use separate permission profiles by environment. Second component: Store API keys in managed secret storage.
- First component: Store API keys in managed secret storage. Second component: Track MCP server versions and contracts.
- First component: Keep environment-specific settings external. Second component: Store API keys in managed secret storage.
Explanation
Correct Answer
A:The first proposal fits its assigned role because configuration injection separates environment differences from immutable application artifacts, while the second proposal fits its assigned role because repository memory files provide persistent instructional context to coding sessions; their respective acceptance criteria are to deploy the same application build to staging and production with distinct endpoints and to give Claude Code the project's build, test, and architecture conventions.
Incorrect Answers
B:The first proposal serves the different purpose to keep external tool connectors compatible after client upgrades instead of the assigned first role because declared versions and integration tests expose resource or schema changes before deployment, while the second proposal fits its assigned role because repository memory files provide persistent instructional context to coding sessions; their respective acceptance criteria are to deploy the same application build to staging and production with distinct endpoints and to give Claude Code the project's build, test, and architecture conventions.
C:The first proposal serves the different purpose to allow broad exploratory tools in a sandbox but only approved reads in production instead of the assigned first role because environment-scoped policy avoids inheriting development privileges in a live setting, while the second proposal serves the different purpose to rotate production credentials without committing new source code instead of the assigned second role because central secret management supports scoped access, auditing, and key rotation; their respective acceptance criteria are to deploy the same application build to staging and production with distinct endpoints and to give Claude Code the project's build, test, and architecture conventions.
D:The first proposal serves the different purpose to rotate production credentials without committing new source code instead of the assigned first role because central secret management supports scoped access, auditing, and key rotation, while the second proposal serves the different purpose to keep external tool connectors compatible after client upgrades instead of the assigned second role because declared versions and integration tests expose resource or schema changes before deployment; their respective acceptance criteria are to deploy the same application build to staging and production with distinct endpoints and to give Claude Code the project's build, test, and architecture conventions.
E:The first proposal fits its assigned role because configuration injection separates environment differences from immutable application artifacts, while the second proposal serves the different purpose to rotate production credentials without committing new source code instead of the assigned second role because central secret management supports scoped access, auditing, and key rotation; their respective acceptance criteria are to deploy the same application build to staging and production with distinct endpoints and to give Claude Code the project's build, test, and architecture conventions.
Question 150
Before a backend integration release, three separately owned tasks must be covered: one service must display a long report as it is generated rather than waiting for the full completion; another must avoid assuming a custom local database function runs inside Anthropic infrastructure; and a third must analyze a photographed shipping label with the supported multimodal Messages input. Which THREE choices directly address the stated tasks? Choose THREE.
- Differentiate client and server tool execution
- Process tool_use responses in the application
- Reconcile batch responses by custom_id
- Call the Messages API with explicit model and max_tokens
- Use SSE streaming for partial response delivery
- Include an image content block
Explanation
Correct Answers
A:The integration owns execution of client tools, while supported server tools are performed by the provider; this directly supports task 2 to avoid assuming a custom local database function runs inside Anthropic infrastructure, not the separate task or tasks to display a long report as it is generated rather than waiting for the full completion and to analyze a photographed shipping label with the supported multimodal Messages input; tool names alone do not determine who executes the action.
E:Streaming yields ordered events and content deltas that the client assembles into the final response; this directly supports task 1 to display a long report as it is generated rather than waiting for the full completion, not the separate task or tasks to avoid assuming a custom local database function runs inside Anthropic infrastructure and to analyze a photographed shipping label with the supported multimodal Messages input; treating each delta as an independent complete answer can corrupt the UI.
F:Image inputs are supplied as typed content with appropriate source data or references; this directly supports task 3 to analyze a photographed shipping label with the supported multimodal Messages input, not the separate task or tasks to display a long report as it is generated rather than waiting for the full completion and to avoid assuming a custom local database function runs inside Anthropic infrastructure; describing a local image pathname in ordinary text does not transmit its pixels.
Incorrect Answers
B:Client tools execute in application code; the model emits structured requests but does not invoke external functions itself; this implements the different outcome to actually retrieve a customer's order status requested by Claude rather than the required tasks to display a long report as it is generated rather than waiting for the full completion and to analyze a photographed shipping label with the supported multimodal Messages input and to avoid assuming a custom local database function runs inside Anthropic infrastructure, and displaying the tool request as the final answer never performs the lookup, so it is not a direct solution to any of the assigned workstreams.
C:A caller-assigned identifier links each result to the original request independently of result ordering; this implements the different outcome to match returned batch results to the right source documents despite varying completion order rather than the required tasks to display a long report as it is generated rather than waiting for the full completion and to analyze a photographed shipping label with the supported multimodal Messages input and to avoid assuming a custom local database function runs inside Anthropic infrastructure, and assuming completion order matches submission order risks mixing customer data, so it is not a direct solution to any of the assigned workstreams.
D:A message request identifies the target model, a message list, and an output-token ceiling; this implements the different outcome to return an answer to a short user request through a backend service rather than the required tasks to display a long report as it is generated rather than waiting for the full completion and to analyze a photographed shipping label with the supported multimodal Messages input and to avoid assuming a custom local database function runs inside Anthropic infrastructure, and the API is not a stateful chat session unless prior turns are supplied, so it is not a direct solution to any of the assigned workstreams.