Question 390
A financial tool receives generated transaction amounts and account identifiers. Which design choice is most appropriate?
- Apply transaction limits, schema checks, and business authorization in code
- Run code in a restricted environment with network egress disabled
- Expose a read-only invoice lookup tool and withhold write permissions
- Enforce source-system permissions for the current user on each query
Explanation
Correct Answer
A:Generated arguments are untrusted until validated; tool-side constraints control real monetary side effects.
Incorrect Answers
B:Sandbox network policy reduces exposure even if generated code attempts unauthorized connections; it addresses a neighboring concern, while the task tests applying transaction limits, schema checks, and business authorization in code.
C:Removing unneeded actions narrows potential damage from mistaken or adversarial tool selection; it cannot substitute for applying transaction limits, schema checks, and business authorization in code under these conditions.
D:A model's access to a connector must not elevate the caller beyond the permissions evaluated by the system of record; on its own this leaves applying transaction limits, schema checks, and business authorization in code unaddressed.
Question 391
A development agent can use code execution to inspect data but should not reach the public internet. Which implementation should the team choose?
- Run code in a restricted environment with network egress disabled
- Replace shell access with a narrowly defined diagnostic function
- Enforce source-system permissions for the current user on each query
- Add rate and execution-count limits for the privileged tool
- Apply transaction limits, schema checks, and business authorization in code
Explanation
Correct Answer
A:Sandbox network policy reduces exposure even if generated code attempts unauthorized connections.
Incorrect Answers
B:A constrained function avoids granting unrestricted command execution for a single operational need; the requested solution requires noting reach the public internet rather than this different mechanism.
C:A model's access to a connector must not elevate the caller beyond the permissions evaluated by the system of record; it addresses a neighboring concern, while the task tests noting reach the public internet.
D:Action budgets make automated loops bounded and prevent a single conversation from exhausting operational resources; it cannot substitute for noting reach the public internet under these conditions.
E:Generated arguments are untrusted until validated; tool-side constraints control real monetary side effects; on its own this leaves noting reach the public internet unaddressed.
Question 392
An operations agent must not repeatedly trigger the same expensive maintenance command. What solution would satisfy this constraint?
- Expose a read-only invoice lookup tool and withhold write permissions
- Enforce source-system permissions for the current user on each query
- Validate destinations against an approved storage allowlist
- Add rate and execution-count limits for the privileged tool
Explanation
Correct Answer
D:Action budgets make automated loops bounded and prevent a single conversation from exhausting operational resources.
Incorrect Answers
A:Removing unneeded actions narrows potential damage from mistaken or adversarial tool selection; the needed design choice concerns noting repeatedly trigger the same expensive maintenance command instead.
B:A model's access to a connector must not elevate the caller beyond the permissions evaluated by the system of record; the scenario instead depends on noting repeatedly trigger the same expensive maintenance command.
C:The executor should enforce target selection independently of model arguments to prevent accidental exfiltration; the requested solution requires noting repeatedly trigger the same expensive maintenance command rather than this different mechanism.
Question 393
A document-approval agent may need to wait two days for a manager's response. Which method is the best fit?
- Persist a pending workflow state outside the model runtime
- Define a compensating action for previously committed steps
- Restore progress from durable task state and receipts
- Checkpoint the completed step and resume remaining work
Explanation
Correct Answer
A:Durable waiting and resumption are orchestration concerns; a live model call should not remain open for days.
Incorrect Answers
B:Distributed workflows often cannot use a single global transaction, so explicit compensation restores business consistency; the needed design choice concerns persisting a pending workflow state outside the model runtime instead.
C:Operational continuity must not depend solely on ephemeral model tokens or one process's memory; the scenario instead depends on persisting a pending workflow state outside the model runtime.
D:Recorded progress avoids recreating the identity while allowing later steps to continue safely; the requested solution requires persisting a pending workflow state outside the model runtime rather than this different mechanism.
Question 394
An onboarding agent completed identity creation but failed before assigning initial training. What should be included in the design?
- Return a job identifier and poll or subscribe for completion
- Model the approval as an explicit paused state with resumable input
- Define a compensating action for previously committed steps
- Checkpoint the completed step and resume remaining work
Explanation
Correct Answer
D:Recorded progress avoids recreating the identity while allowing later steps to continue safely.
Incorrect Answers
A:Asynchronous job state decouples the client response from long work and lets users safely retrieve status; the relevant decision is checkpointing the completed step and resume remaining work, not the separate action described here.
B:A state machine can stop before publication and resume only after valid authorized approval arrives; that would not ensure checkpointing the completed step and resume remaining work for this workload.
C:Distributed workflows often cannot use a single global transaction, so explicit compensation restores business consistency; the needed design choice concerns checkpointing the completed step and resume remaining work instead.
Question 395
A provisioning workflow creates a draft resource, waits for a manager's approval, and then commits the change. If a timeout causes a replay, it must not provision the resource a second time. Which TWO workflow mechanisms satisfy approval and retry safety? Choose TWO.
- Implement cancellation checks at safe transition points
- Rely on the conversation transcript as the only record of pending approval
- Persist an explicit pending-approval state that can resume securely
- Use a stable request idempotency key for the provisioning commit
- Return a job identifier and poll or subscribe for completion
Explanation
Correct Answers
C:A state machine can stop before publication and resume only after valid authorized approval arrives; the workflow can resume only from a verified approved state after interruption.
D:Exactly-once effects require deduplication at the action boundary, not faith that the caller sends one request; replaying the same request then maps to one provisioning operation.
Incorrect Answers
A:A cancellation flag in trusted orchestration code can stop future actions; a prompt telling an unavailable model to stop cannot; that mechanism does not itself establish a resumable approval checkpoint and idempotent provisioning.
B:Dialogue history is not a durable, authoritative state machine; approval and idempotent commit state must survive runtime restarts; the relevant decision is a resumable approval checkpoint and idempotent provisioning, not the separate action described here.
E:Asynchronous job state decouples the client response from long work and lets users safely retrieve status; the scenario instead depends on a resumable approval checkpoint and idempotent provisioning.
Question 396
A complex workflow needs to undo a reservation when payment authorization fails. Which method is the best fit?
- Define a compensating action for previously committed steps
- Persist a pending workflow state outside the model runtime
- Implement cancellation checks at safe transition points
- Checkpoint the completed step and resume remaining work
Explanation
Correct Answer
A:Distributed workflows often cannot use a single global transaction, so explicit compensation restores business consistency.
Incorrect Answers
B:Durable waiting and resumption are orchestration concerns; a live model call should not remain open for days; that mechanism does not itself establish undoing a reservation when payment authorization fails.
C:A cancellation flag in trusted orchestration code can stop future actions; a prompt telling an unavailable model to stop cannot; the relevant decision is undoing a reservation when payment authorization fails, not the separate action described here.
D:Recorded progress avoids recreating the identity while allowing later steps to continue safely; that would not ensure undoing a reservation when payment authorization fails for this workload.
Question 397
A task can take an hour and the user should receive an immediate acknowledgement. Which method is the best fit?
- Persist a pending workflow state outside the model runtime
- Return a job identifier and poll or subscribe for completion
- Checkpoint the completed step and resume remaining work
- Model the approval as an explicit paused state with resumable input
Explanation
Correct Answer
B:Asynchronous job state decouples the client response from long work and lets users safely retrieve status.
Incorrect Answers
A:Durable waiting and resumption are orchestration concerns; a live model call should not remain open for days; on its own this leaves receiving an immediate acknowledgement unaddressed.
C:Recorded progress avoids recreating the identity while allowing later steps to continue safely; that mechanism does not itself establish receiving an immediate acknowledgement.
D:A state machine can stop before publication and resume only after valid authorized approval arrives; the relevant decision is receiving an immediate acknowledgement, not the separate action described here.
Question 398
A job requires user confirmation between draft and publish stages. Which configuration or component should be selected?
- Use an idempotent provisioning key tied to the business request
- Return a job identifier and poll or subscribe for completion
- Restore progress from durable task state and receipts
- Model the approval as an explicit paused state with resumable input
- Persist a pending workflow state outside the model runtime
- Implement cancellation checks at safe transition points
Explanation
Correct Answer
D:A state machine can stop before publication and resume only after valid authorized approval arrives.
Incorrect Answers
A:Exactly-once effects require deduplication at the action boundary, not faith that the caller sends one request; it cannot substitute for providing user confirmation between draft and publish stages under these conditions.
B:Asynchronous job state decouples the client response from long work and lets users safely retrieve status; on its own this leaves providing user confirmation between draft and publish stages unaddressed.
C:Operational continuity must not depend solely on ephemeral model tokens or one process's memory; meeting the stated constraint still involves providing user confirmation between draft and publish stages.
E:Durable waiting and resumption are orchestration concerns; a live model call should not remain open for days; the relevant decision is providing user confirmation between draft and publish stages, not the separate action described here.
F:A cancellation flag in trusted orchestration code can stop future actions; a prompt telling an unavailable model to stop cannot; that would not ensure providing user confirmation between draft and publish stages for this workload.
Question 399
An agent's tool worker restarts during processing and the current conversation context disappears. What should be included in the design?
- Implement cancellation checks at safe transition points
- Return a job identifier and poll or subscribe for completion
- Restore progress from durable task state and receipts
- Checkpoint the completed step and resume remaining work
- Persist a pending workflow state outside the model runtime
- Use an idempotent provisioning key tied to the business request
Explanation
Correct Answer
C:Operational continuity must not depend solely on ephemeral model tokens or one process's memory.
Incorrect Answers
A:A cancellation flag in trusted orchestration code can stop future actions; a prompt telling an unavailable model to stop cannot; it addresses a neighboring concern, while the task tests restoring progress from durable task state and receipts.
B:Asynchronous job state decouples the client response from long work and lets users safely retrieve status; it cannot substitute for restoring progress from durable task state and receipts under these conditions.
D:Recorded progress avoids recreating the identity while allowing later steps to continue safely; meeting the stated constraint still involves restoring progress from durable task state and receipts.
E:Durable waiting and resumption are orchestration concerns; a live model call should not remain open for days; that mechanism does not itself establish restoring progress from durable task state and receipts.
F:Exactly-once effects require deduplication at the action boundary, not faith that the caller sends one request; the relevant decision is restoring progress from durable task state and receipts, not the separate action described here.
Question 400
A team wants to cancel a scheduled agent workflow that has not yet performed its side effects. Which action directly produces the required outcome?
- Restore progress from durable task state and receipts
- Define a compensating action for previously committed steps
- Implement cancellation checks at safe transition points
- Model the approval as an explicit paused state with resumable input
Explanation
Correct Answer
C:A cancellation flag in trusted orchestration code can stop future actions; a prompt telling an unavailable model to stop cannot.
Incorrect Answers
A:Operational continuity must not depend solely on ephemeral model tokens or one process's memory; the requested solution requires canceling a scheduled agent workflow that has not yet performed its side effects rather than this different mechanism.
B:Distributed workflows often cannot use a single global transaction, so explicit compensation restores business consistency; it addresses a neighboring concern, while the task tests canceling a scheduled agent workflow that has not yet performed its side effects.
D:A state machine can stop before publication and resume only after valid authorized approval arrives; on its own this leaves canceling a scheduled agent workflow that has not yet performed its side effects unaddressed.