Question 320
An agent proposes an amount exceeding a payment tool's approved maximum. Which configuration or component should be selected?
- Enforce server-side value ranges and authorization on the tool call
- Enforce result bounds and identity-scoped filtering in the tool handler
- Provide precise tool purpose, side-effect, and precondition descriptions
- Declare a tool with typed parameter names, requirements, and descriptions
Explanation
Correct Answer
A:Model-generated parameters never substitute for policy; validation must reject out-of-range actions before side effects.
Incorrect Answers
B:Tool arguments are untrusted proposals; the backend must limit returned content and query scope independently; it addresses a neighboring concern, while the task tests enforcing server-side value ranges and authorization on the tool call.
C:Clear affordances help the model choose the correct operation without granting new permissions or making a broad generic tool; it cannot substitute for enforcing server-side value ranges and authorization on the tool call under these conditions.
D:A function schema guides argument construction and makes missing or mistyped values detectable before the API is invoked; on its own this leaves enforcing server-side value ranges and authorization on the tool call unaddressed.
Question 321
A model returns a function-call request, and the team assumes the API action has already happened. What is the most suitable next implementation decision?
- Stop, compensate, or resume according to explicit workflow state
- Use stable idempotency tokens at the tool boundary
- Execute the requested function in trusted application code and return its result
- Propagate structured tool failure status into the agent's continuation
Explanation
Correct Answer
C:A tool-call proposal is structured model output; the host must perform authorization, execution, and result injection explicitly.
Incorrect Answers
A:Dependent side effects require error-aware orchestration; blindly executing subsequent calls can corrupt business state; the scenario instead depends on executing the requested function in trusted application code and return its result.
B:Retries can duplicate non-read operations; service-side deduplication separates logical actions from repeated transmissions; the requested solution requires executing the requested function in trusted application code and return its result rather than this different mechanism.
D:The model needs the actual operation outcome; a proposed call does not prove a successful side effect; it cannot substitute for executing the requested function in trusted application code and return its result under these conditions.
Question 322
A tool returns an error and the model confidently tells the user that an update succeeded. Which method is the best fit?
- Propagate structured tool failure status into the agent's continuation
- Stop, compensate, or resume according to explicit workflow state
- Use freshness-aware fetching rather than indefinite caching
- Execute the requested function in trusted application code and return its result
Explanation
Correct Answer
A:The model needs the actual operation outcome; a proposed call does not prove a successful side effect.
Incorrect Answers
B:Dependent side effects require error-aware orchestration; blindly executing subsequent calls can corrupt business state; the scenario instead depends on propagating structured tool failure status into the agent's continuation.
C:Operational facts should be refreshed according to source volatility; old tool outputs can become obsolete; the requested solution requires propagating structured tool failure status into the agent's continuation rather than this different mechanism.
D:A tool-call proposal is structured model output; the host must perform authorization, execution, and result injection explicitly; it addresses a neighboring concern, while the task tests propagating structured tool failure status into the agent's continuation.
Question 323
An order lookup returns hundreds of records containing unrelated customer data. Which method is the best fit?
- Propagate structured tool failure status into the agent's continuation
- Minimize and scope the tool response before giving it to the model
- Stop, compensate, or resume according to explicit workflow state
- Validate and normalize tool results before reinserting them into the model context
- Use freshness-aware fetching rather than indefinite caching
Explanation
Correct Answer
B:Least-data responses reduce exposure and token cost while preserving fields necessary for the current task.
Incorrect Answers
A:The model needs the actual operation outcome; a proposed call does not prove a successful side effect; that would not ensure minimizing and scope the tool response before giving it to the model for this workload.
C:Dependent side effects require error-aware orchestration; blindly executing subsequent calls can corrupt business state; the scenario instead depends on minimizing and scope the tool response before giving it to the model.
D:Typed response handling protects later reasoning and lets the host surface malformed integrations cleanly; the requested solution requires minimizing and scope the tool response before giving it to the model rather than this different mechanism.
E:Operational facts should be refreshed according to source volatility; old tool outputs can become obsolete; it addresses a neighboring concern, while the task tests minimizing and scope the tool response before giving it to the model.
Question 324
An agent calls a write API twice after a network retry. What solution would satisfy this constraint?
- Use stable idempotency tokens at the tool boundary
- Minimize and scope the tool response before giving it to the model
- Validate and normalize tool results before reinserting them into the model context
- Use freshness-aware fetching rather than indefinite caching
Explanation
Correct Answer
A:Retries can duplicate non-read operations; service-side deduplication separates logical actions from repeated transmissions.
Incorrect Answers
B:Least-data responses reduce exposure and token cost while preserving fields necessary for the current task; that would not ensure using stable idempotency tokens at the tool boundary for this workload.
C:Typed response handling protects later reasoning and lets the host surface malformed integrations cleanly; the needed design choice concerns using stable idempotency tokens at the tool boundary instead.
D:Operational facts should be refreshed according to source volatility; old tool outputs can become obsolete; the scenario instead depends on using stable idempotency tokens at the tool boundary.
Question 325
A tool result includes a malicious string demanding the assistant reveal secrets. Which method is the best fit?
- Propagate structured tool failure status into the agent's continuation
- Use freshness-aware fetching rather than indefinite caching
- Treat tool output as untrusted content and maintain instruction hierarchy
- Execute the requested function in trusted application code and return its result
Explanation
Correct Answer
C:External system data cannot authorize policy override even when it arrives from an otherwise approved tool.
Incorrect Answers
A:The model needs the actual operation outcome; a proposed call does not prove a successful side effect; that mechanism does not itself establish treating tool output as untrusted content and maintain instruction hierarchy.
B:Operational facts should be refreshed according to source volatility; old tool outputs can become obsolete; the relevant decision is treating tool output as untrusted content and maintain instruction hierarchy, not the separate action described here.
D:A tool-call proposal is structured model output; the host must perform authorization, execution, and result injection explicitly; the needed design choice concerns treating tool output as untrusted content and maintain instruction hierarchy instead.
Question 326
A tool result changes during a long conversation and stale data leads to wrong status reports. Which method is the best fit?
- Use freshness-aware fetching rather than indefinite caching
- Stop, compensate, or resume according to explicit workflow state
- Execute the requested function in trusted application code and return its result
- Propagate structured tool failure status into the agent's continuation
- Minimize and scope the tool response before giving it to the model
Explanation
Correct Answer
A:Operational facts should be refreshed according to source volatility; old tool outputs can become obsolete.
Incorrect Answers
B:Dependent side effects require error-aware orchestration; blindly executing subsequent calls can corrupt business state; that mechanism does not itself establish using freshness-aware fetching rather than indefinite caching.
C:A tool-call proposal is structured model output; the host must perform authorization, execution, and result injection explicitly; the relevant decision is using freshness-aware fetching rather than indefinite caching, not the separate action described here.
D:The model needs the actual operation outcome; a proposed call does not prove a successful side effect; that would not ensure using freshness-aware fetching rather than indefinite caching for this workload.
E:Least-data responses reduce exposure and token cost while preserving fields necessary for the current task; the needed design choice concerns using freshness-aware fetching rather than indefinite caching instead.
Question 327
An agent proposes three sequential dependent API calls but the second fails. What should the engineer implement?
- Propagate structured tool failure status into the agent's continuation
- Treat tool output as untrusted content and maintain instruction hierarchy
- Execute the requested function in trusted application code and return its result
- Stop, compensate, or resume according to explicit workflow state
Explanation
Correct Answer
D:Dependent side effects require error-aware orchestration; blindly executing subsequent calls can corrupt business state.
Incorrect Answers
A:The model needs the actual operation outcome; a proposed call does not prove a successful side effect; on its own this leaves stop,ing compensate, or resume according to explicit workflow state unaddressed.
B:External system data cannot authorize policy override even when it arrives from an otherwise approved tool; meeting the stated constraint still involves stop,ing compensate, or resume according to explicit workflow state.
C:A tool-call proposal is structured model output; the host must perform authorization, execution, and result injection explicitly; that mechanism does not itself establish stop,ing compensate, or resume according to explicit workflow state.
Question 328
A custom tool sometimes returns plain text that violates its promised response object. Which of the following would meet this need?
- Treat tool output as untrusted content and maintain instruction hierarchy
- Use stable idempotency tokens at the tool boundary
- Validate and normalize tool results before reinserting them into the model context
- Stop, compensate, or resume according to explicit workflow state
Explanation
Correct Answer
C:Typed response handling protects later reasoning and lets the host surface malformed integrations cleanly.
Incorrect Answers
A:External system data cannot authorize policy override even when it arrives from an otherwise approved tool; it cannot substitute for validating and normalize tool results before reinserting them into the model context under these conditions.
B:Retries can duplicate non-read operations; service-side deduplication separates logical actions from repeated transmissions; on its own this leaves validating and normalize tool results before reinserting them into the model context unaddressed.
D:Dependent side effects require error-aware orchestration; blindly executing subsequent calls can corrupt business state; that mechanism does not itself establish validating and normalize tool results before reinserting them into the model context.
Question 329
An agent invokes an API on behalf of a signed-in employee and must preserve that employee's access limits. What is the most suitable next implementation decision?
- Run the connector with approved network access and internal DNS
- Use an appropriately scoped application or managed identity
- Use delegated user-scoped authorization where the connector supports it
- Keep the key in a managed secret connection and rotate it
Explanation
Correct Answer
C:The downstream API should evaluate the actual user's permissions rather than an unrestricted shared service principal.
Incorrect Answers
A:Valid OAuth tokens do not create connectivity; the tool executor still needs a route to the private service; it addresses a neighboring concern, while the task tests preserving that employee's access limits.
B:Service-to-service access needs a workload principal and permitted roles; a user token is unnecessary when no user is present; it cannot substitute for preserving that employee's access limits under these conditions.
D:Credential isolation and lifecycle controls reduce exposure compared with inserting the key into tool descriptions or user messages; meeting the stated constraint still involves preserving that employee's access limits.
Question 330
A background agent accesses a noninteractive enterprise resource with no signed-in employee. Which design choice is most appropriate?
- Remove the tool assignment or revoke its backend authorization centrally
- Run the connector with approved network access and internal DNS
- Use delegated user-scoped authorization where the connector supports it
- Use an appropriately scoped application or managed identity
- Complete the supported OAuth authorization and store tokens outside prompts
Explanation
Correct Answer
D:Service-to-service access needs a workload principal and permitted roles; a user token is unnecessary when no user is present.
Incorrect Answers
A:Technical tool access is separable from the model's instructions and can be withdrawn as a security control; the requested solution requires using an appropriately scoped application or managed identity rather than this different mechanism.
B:Valid OAuth tokens do not create connectivity; the tool executor still needs a route to the private service; it addresses a neighboring concern, while the task tests using an appropriately scoped application or managed identity.
C:The downstream API should evaluate the actual user's permissions rather than an unrestricted shared service principal; it cannot substitute for using an appropriately scoped application or managed identity under these conditions.
E:Consent and token custody belong to the integration layer; the language model should never receive refresh-token secrets; meeting the stated constraint still involves using an appropriately scoped application or managed identity.