Question 1100A streaming tool response arrives in JSON deltas and the application starts processing after the first curly brace. Which recurring verification should remain in place after repair? Use operation classifications and least-privilege tool grants by task role. Test streaming boundaries and reject incomplete tool-input buffers by default. Maintain strict schemas and approval fixtures for all state-changing client tools. Persist tool action IDs independently of model turns and audit retries. ExplanationCorrect Answer B:Test streaming boundaries and reject incomplete tool-input buffers by default. This maintains the fix beyond the immediate incident. The underlying issue is that partial streaming tokens can be syntactically incomplete and should never trigger premature side effects. The immediate corrective action remains: Wait for the complete tool-input block before parsing and executing the client handler. Other Answers A:Tool selection should reflect the task's authorized side effects, not merely related system names. A more direct preventive measure is to test streaming boundaries and reject incomplete tool-input buffers by default. C:A model's tool-use intent must be enforced by application code; syntactic output alone grants no authority. The stronger recurring control is to test streaming boundaries and reject incomplete tool-input buffers by default. D:A lost tool response is not evidence that its side effect failed; duplicate calls can corrupt state. A more direct preventive measure is to test streaming boundaries and reject incomplete tool-input buffers by default.
Question 1101A tool-call adapter loses the unique ID of the request and attaches a result to the wrong pending action in a parallel flow. What action would correct this specific behavior? Validate required arguments and enforce the caller's account ownership rather than applying unsafe defaults. Return structured tool errors and let the agent report unavailable data or use an approved fallback. Preserve call IDs and map each result to the correct originating tool_use block. Constrain pagination, result projection, and safe output size in the tool API. ExplanationCorrect Answer C:Parallel tool calls require identity-based correlation; execution order alone is insufficient. To confirm, reorder two mock tool completions and confirm no result is mismatched. Other Answers A:Missing or invalid tool identifiers should not relax authorization to another resource. This failure calls for a decision to preserve call IDs and map each result to the correct originating tool_use block. B:Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. This failure calls for a decision to preserve call IDs and map each result to the correct originating tool_use block. D:Tool results consume context tokens, so unbounded backend output is a reliability and cost risk. The required change instead is to preserve call IDs and map each result to the correct originating tool_use block.
Question 1102A tool-call adapter loses the unique ID of the request and attaches a result to the wrong pending action in a parallel flow. Which technical mechanism explains why the intended correction works? Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. Parallel tool calls require identity-based correlation; execution order alone is insufficient. Tool results consume context tokens, so unbounded backend output is a reliability and cost risk. Missing or invalid tool identifiers should not relax authorization to another resource. ExplanationCorrect Answer B:Parallel tool calls require identity-based correlation; execution order alone is insufficient. This is why the appropriate action is to preserve call IDs and map each result to the correct originating tool_use block. The expected evidence is: Reorder two mock tool completions and confirm no result is mismatched. Other Answers A:Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. In the stated system, parallel tool calls require identity-based correlation; execution order alone is insufficient. C:Tool results consume context tokens, so unbounded backend output is a reliability and cost risk. By contrast, parallel tool calls require identity-based correlation; execution order alone is insufficient. D:Missing or invalid tool identifiers should not relax authorization to another resource. In the stated system, parallel tool calls require identity-based correlation; execution order alone is insufficient.
Question 1103A tool-call adapter loses the unique ID of the request and attaches a result to the wrong pending action in a parallel flow. How should the implementation be tested against this failure? Search a large fixture and confirm the adapter returns a bounded page with a continuation token. Reorder two mock tool completions and confirm no result is mismatched. Force a missing location fixture and confirm the final response reports the error accurately. Use malformed and cross-tenant IDs and verify the tool denies them with explicit errors. ExplanationCorrect Answer B:Reorder two mock tool completions and confirm no result is mismatched. This directly checks whether the proposed action occurred: Preserve call IDs and map each result to the correct originating tool_use block. The relevant mechanism is: Parallel tool calls require identity-based correlation; execution order alone is insufficient. Other Answers A:Tool results consume context tokens, so unbounded backend output is a reliability and cost risk. The failure is checked more directly by a test to reorder two mock tool completions and confirm no result is mismatched. C:Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. The relevant acceptance check is to reorder two mock tool completions and confirm no result is mismatched. D:Missing or invalid tool identifiers should not relax authorization to another resource. The relevant acceptance check is to reorder two mock tool completions and confirm no result is mismatched.
Question 1104A tool-call adapter loses the unique ID of the request and attaches a result to the wrong pending action in a parallel flow. What durable design rule should be enforced? Standardize typed error responses and monitor fallback quality for all external tools. Ban implicit privileged defaults and review authorization handling in tool adapters. Add concurrency and correlation tests to every dispatch framework. Document maximum result sizes and pagination for retrieval-oriented tools. ExplanationCorrect Answer C:Add concurrency and correlation tests to every dispatch framework. This maintains the fix beyond the immediate incident. The underlying issue is that parallel tool calls require identity-based correlation; execution order alone is insufficient. The immediate corrective action remains: Preserve call IDs and map each result to the correct originating tool_use block. Other Answers A:Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. Reducing this risk requires a practice to add concurrency and correlation tests to every dispatch framework. B:Missing or invalid tool identifiers should not relax authorization to another resource. Reducing this risk requires a practice to add concurrency and correlation tests to every dispatch framework. D:Tool results consume context tokens, so unbounded backend output is a reliability and cost risk. A more direct preventive measure is to add concurrency and correlation tests to every dispatch framework.
Question 1105A database tool returns a million rows after an unrestricted search and overwhelms the model context window. What is the most defensible fix under these conditions? Constrain pagination, result projection, and safe output size in the tool API. Return the minimum authorized aggregate and filter sensitive fields before model context. Use the appropriate server-tool protocol and dispatch only tools actually executed by the application. Return structured tool errors and let the agent report unavailable data or use an approved fallback. ExplanationCorrect Answer A:Tool results consume context tokens, so unbounded backend output is a reliability and cost risk. To confirm, search a large fixture and confirm the adapter returns a bounded page with a continuation token. Other Answers B:A tool should reveal only the necessary data for the current caller and purpose. A more relevant action is to constrain pagination, result projection, and safe output size in the tool API. C:Server-executed and client-executed tools have different continuation responsibilities. This failure calls for a decision to constrain pagination, result projection, and safe output size in the tool API. D:Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. A more relevant action is to constrain pagination, result projection, and safe output size in the tool API.
Question 1106A database tool returns a million rows after an unrestricted search and overwhelms the model context window. Which engineering principle most directly fits these observations? Tool results consume context tokens, so unbounded backend output is a reliability and cost risk. Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. Server-executed and client-executed tools have different continuation responsibilities. A tool should reveal only the necessary data for the current caller and purpose. ExplanationCorrect Answer A:Tool results consume context tokens, so unbounded backend output is a reliability and cost risk. This is why the appropriate action is to constrain pagination, result projection, and safe output size in the tool API. The expected evidence is: Search a large fixture and confirm the adapter returns a bounded page with a continuation token. Other Answers B:Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. In the stated system, tool results consume context tokens, so unbounded backend output is a reliability and cost risk. C:Server-executed and client-executed tools have different continuation responsibilities. By contrast, tool results consume context tokens, so unbounded backend output is a reliability and cost risk. D:A tool should reveal only the necessary data for the current caller and purpose. In the stated system, tool results consume context tokens, so unbounded backend output is a reliability and cost risk.
Question 1107A database tool returns a million rows after an unrestricted search and overwhelms the model context window. Which evidence distinguishes success from an unverified claim? Run mixed tool requests and confirm every tool executes once with the correct result block semantics. Query with low-privilege access and verify no individual records appear in the result. Force a missing location fixture and confirm the final response reports the error accurately. Search a large fixture and confirm the adapter returns a bounded page with a continuation token. ExplanationCorrect Answer D:Search a large fixture and confirm the adapter returns a bounded page with a continuation token. This directly checks whether the proposed action occurred: Constrain pagination, result projection, and safe output size in the tool API. The relevant mechanism is: Tool results consume context tokens, so unbounded backend output is a reliability and cost risk. Other Answers A:Server-executed and client-executed tools have different continuation responsibilities. The relevant acceptance check is to search a large fixture and confirm the adapter returns a bounded page with a continuation token. B:A tool should reveal only the necessary data for the current caller and purpose. Proving this correction calls for a check to search a large fixture and confirm the adapter returns a bounded page with a continuation token. C:Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. Proving this correction calls for a check to search a large fixture and confirm the adapter returns a bounded page with a continuation token.
Question 1108A database tool returns a million rows after an unrestricted search and overwhelms the model context window. Which preventive measure best fits this case? Version the tool-type router and test new provider tool variants before deployment. Document maximum result sizes and pagination for retrieval-oriented tools. Review tool output schemas for data minimization and permission changes. Standardize typed error responses and monitor fallback quality for all external tools. ExplanationCorrect Answer B:Document maximum result sizes and pagination for retrieval-oriented tools. This maintains the fix beyond the immediate incident. The underlying issue is that tool results consume context tokens, so unbounded backend output is a reliability and cost risk. The immediate corrective action remains: Constrain pagination, result projection, and safe output size in the tool API. Other Answers A:Server-executed and client-executed tools have different continuation responsibilities. A more direct preventive measure is to document maximum result sizes and pagination for retrieval-oriented tools. C:A tool should reveal only the necessary data for the current caller and purpose. The stronger recurring control is to document maximum result sizes and pagination for retrieval-oriented tools. D:Tool result integrity matters; inventing success from an integration failure is a form of unsafe data fabrication. The stronger recurring control is to document maximum result sizes and pagination for retrieval-oriented tools.
Question 1109An assistant invokes a destructive infrastructure tool even though the user asked only for a configuration analysis. Which change should the team prioritize for this problem? Expose narrowly defined read-only operations with validated identifiers rather than unrestricted SQL execution. Expose a separate read-only inspection tool and gate the write tool with explicit confirmation. Validate final parsed arguments, perform resource-level authorization, and require approval before side effects. Return the minimum authorized aggregate and filter sensitive fields before model context. ExplanationCorrect Answer B:Tool selection should reflect the task's authorized side effects, not merely related system names. To confirm, run an analysis-only request and verify no mutating tool is executable. Other Answers A:Tool schema design defines the executable surface; unconstrained strings can become injection paths to powerful backends. The required change instead is to expose a separate read-only inspection tool and gate the write tool with explicit confirmation. C:A model's tool-use intent must be enforced by application code; syntactic output alone grants no authority. The corrective action for this requirement is to expose a separate read-only inspection tool and gate the write tool with explicit confirmation. D:A tool should reveal only the necessary data for the current caller and purpose. The corrective action for this requirement is to expose a separate read-only inspection tool and gate the write tool with explicit confirmation.
Question 1110An assistant invokes a destructive infrastructure tool even though the user asked only for a configuration analysis. Why is the recommended intervention appropriate here? A tool should reveal only the necessary data for the current caller and purpose. A model's tool-use intent must be enforced by application code; syntactic output alone grants no authority. Tool selection should reflect the task's authorized side effects, not merely related system names. Tool schema design defines the executable surface; unconstrained strings can become injection paths to powerful backends. ExplanationCorrect Answer C:Tool selection should reflect the task's authorized side effects, not merely related system names. This is why the appropriate action is to expose a separate read-only inspection tool and gate the write tool with explicit confirmation. The expected evidence is: Run an analysis-only request and verify no mutating tool is executable. Other Answers A:A tool should reveal only the necessary data for the current caller and purpose. By contrast, tool selection should reflect the task's authorized side effects, not merely related system names. B:A model's tool-use intent must be enforced by application code; syntactic output alone grants no authority. By contrast, tool selection should reflect the task's authorized side effects, not merely related system names. D:Tool schema design defines the executable surface; unconstrained strings can become injection paths to powerful backends. In the stated system, tool selection should reflect the task's authorized side effects, not merely related system names.