Question 20
A support automation reads a customer's cancellation request and immediately emits tool_use for close_account. The tool supports a dry-run preview. What is a safe host sequence?
Explanation
Correct Answer
Use the preview as a separate, non-mutating checkpoint: verify the authenticated account, inspect the possible effects, and obtain any confirmation required by account policy. After approval, execute one scoped close_account operation under current permissions and retain its real result. A final readback can reconcile ambiguous provider replies before announcing closure. This sequence respects the customer's request while avoiding a speculative or duplicated irreversible action. It also distinguishes planning and approval from actual completed account changes.
Incorrect Answers
A dry run can predict consequences or validate an account-closure request without mutating the provider's account state. Treating its output as evidence that the account is already closed would leave the customer misinformed and skip the actual authorized operation. The host should distinguish preview receipt from execution receipt, present any material retention or billing consequences, and report completion only after the real closure endpoint confirms the target state. A preview is diagnostic, not a completed cancellation.
Executing close_account twice does not make the first closure more certain. A second request may produce an error, affect an already-changed account, or create duplicate cleanup actions if the API is not safely idempotent. When the initial outcome is uncertain, correlate the original operation and read back provider state rather than repeating blindly. The preview is available precisely to examine consequences before making an approved mutation; it does not justify redundant execution.
A cancellation may have data-retention, billing, or service-disruption consequences that account policy requires the customer to confirm. Suppressing that required step crosses an authorization boundary even if the model understood the request. The host should present the preview and obtain the necessary decision, then use scoped credentials for the action. Missing confirmation means the closure stays pending; neither assistant urgency nor tool availability can silently waive the stated requirement.



Claude Certified Architect - Foundations (CCA-F) Practice Tests