Question 140 A model returns dates as strings that conform to the schema but schedule an event before the contract signing date. What must be added? A temporal business-rule validation that enforces the permitted date ordering. An assumption that schema-valid dates must be legal. A check that every date contains two hyphens. A rule that all dates are replaced with today. Explanation Correct Answer A:Cross-field invariants go beyond individual field types. Incorrect Answers B:Schema validation does not enforce contract semantics. C:String shape cannot establish chronology. D:That discards the source information.
Question 141 A monorepo has security rules that apply only to src/payments/**/*.ts, but the assistant loads them for every README change. What configuration should the team use? A tool that edits all TypeScript files regardless of scope. A path-scoped rule in .claude/rules with a matching paths pattern. A random substring search in every prompt. A single global rule with no path qualification. Explanation Correct Answer B:Conditional rules reduce irrelevant context and apply only to affected payment files. Incorrect Answers A:Broad mutations do not solve conditional instruction loading. C:Dynamic guessing is less reliable than declarative file scoping. D:That continues to burden unrelated documentation tasks.
Question 142 A human reviewer approves a draft; the agent then changes the destination address and document content. Is the earlier approval still sufficient? No; approval must be tied to the reviewed content and intended destination, with affected changes rechecked. No approval ever matters if the model gives a rationale. Yes; any later variant inherits unlimited authority. Yes if the new email subject is shorter. Explanation Correct Answer A:Version and target binding prevent approval being reused for a different action. Incorrect Answers B:The model cannot replace an authorized decision maker. C:An approval does not cover arbitrary modifications. D:Length is unrelated to scope.
Question 143 A support assistant has refund, search, and note tools; a separate summarizer only needs read access. What capability split is best? Share a production administrator token across all agents. Give the summarizer read/search tools and reserve refund capability for the authorized support executor. Remove search from the summarizer and give it refunds. Give every agent all tools for convenience. Explanation Correct Answer B:Role-specific tool visibility reduces accidental money-moving actions. Incorrect Answers A:Shared privileged credentials defeat least privilege. C:That contradicts its information-only task. D:Broad rights create unnecessary side effects.
Question 144 A text moderation pipeline must handle live chats in under one second. When is the asynchronous batch API a poor fit? When an immediate per-message blocking decision must arrive on an interactive deadline. When requests are independent of one another. When outcomes can be consumed hours later. When all items can be correlated by request ID. Explanation Correct Answer A:An offline completion model is unsuitable for strict synchronous latency. Incorrect Answers B:Independence often favors batching. C:Deferred consumption is suitable for batch. D:Stable IDs improve batch correctness.
Question 145 The CI runner receives a partial JSON response because the generation hit a token limit. What should it do? Treat the run as incomplete and retry or fail gracefully without posting malformed results. Remove the token limit and all job timeouts indefinitely. Publish the fragment as a success comment. Parse the partial fragment as if it were complete. Explanation Correct Answer A:Output truncation is not a valid review artifact. Incorrect Answers B:Unbounded execution is not required for safe recovery. C:The user would mistake incomplete output for a review. D:A truncated structure may omit critical findings.
Question 146 A ticket handler can read accounts and close accounts. It should handle balance inquiries automatically but require a human before permanent closure. What flow is suitable? Require a human approval for every read-only balance lookup. Allow silent closure after two repeated customer requests. Branch by requested operation and place a human approval gate before irreversible closure. Remove account lookup tools so closure cannot be checked. Explanation Correct Answer C:Low-risk reads may proceed while high-impact account closure requires explicit oversight. Incorrect Answers A:Universal review adds friction without targeting the dangerous operation. B:Repetition does not prove identity or authorized closure. D:The workflow needs verified account state to act safely.
Question 147 An architect is documenting a new MCP write tool that updates customer contact details. Which TWO details should its definition make explicit? The internal deployment server password. An instruction to suppress negative results. Which fields it modifies and the approval or identity preconditions. How errors, missing records, and validation failures are returned. A vague sentence saying “does customer things.” Explanation Correct Answers C:The agent must distinguish an authorized update from a harmless lookup. D:A typed failure contract supports recovery without fabricated success. Incorrect Answers A:Secrets are not part of a public tool description. B:Hidden failures corrupt downstream decisions. E:Unspecified scope increases routing mistakes.
Question 148 A tool step times out after submitting a create-order request. The next agent sees no confirmation. Which recovery avoids duplicate orders? Reconcile using a durable idempotency key or order status before resubmitting. Report the order as definitely completed despite no receipt. Delete all pending request records. Submit the order again using a new identifier immediately. Explanation Correct Answer A:A timeout leaves outcome unknown and must not be treated as failure. Incorrect Answers B:The status is unverified. C:That prevents reconciliation. D:That risks creating a duplicate order.
Question 149 A payments-specific rule should be used in src/payments but a developer renames that folder to services/billing. What maintenance step is needed? Copy payment secrets into a new rules file. Delete all other rules to make the old one win. Update and test the rule’s paths selectors against the new directory layout. Assume the old glob follows semantic renames automatically. Explanation Correct Answer C:A valid instruction can become unreachable after path changes. Incorrect Answers A:Secret disclosure is unrelated to path matching. B:Priority changes do not make an unmatched path match. D:A static path pattern does not understand architectural meaning.
Question 150 A software review finds that a single agent’s attention weakens after reading thousands of lines, even though the model’s context window is large enough. What is the best response? Remove test requirements to make the prompt shorter. Run the same giant prompt ten times and take the shortest answer. Break the review into focused scopes and add an explicit integration check. Simply double the context window again. Explanation Correct Answer C:Attention allocation, not just token capacity, is the observed bottleneck. Incorrect Answers A:Dropping necessary validation creates new quality defects. B:Repetition without structured coverage may reproduce the same omissions. D:A larger window does not guarantee equivalent attention to all details.