Question 60 A document search service returns isError=true with “invalid date filter; expected YYYY-MM-DD.” What should the agent do? Attempt the same malformed request indefinitely. Correct the filter format and retry only the affected read call. Continue as if the search returned no documents. Use a destructive delete tool to reset the search index. Explanation Correct Answer B:A validation error provides actionable input guidance rather than requiring the whole workflow to restart. Incorrect Answers A:Unchanged invalid input will fail again. C:Validation failure is not evidence that no matches exist. D:Deleting data is unrelated to date-format correction.
Question 61 An auditor wants few-shot examples for conflicting sources. What should the examples demonstrate? Always choosing the first retrieved statement. Blending both claims into an invented average. Dropping sources because citations make examples longer. Separating competing claims, preserving provenance, and labeling unresolved discrepancies. Explanation Correct Answer D:A conflict example teaches transparent adjudication instead of silent selection. Incorrect Answers A:Retrieval order is not a reliability criterion. B:A compromise number may have no source. C:Provenance is essential to conflict resolution.
Question 62 A user asks Claude Code to use a formatting convention from a different, unrelated repository. What should be consulted first? All other repositories’ CLAUDE.md files in the user’s machine. A random historical session from another company. The largest available file irrespective of purpose. The current project’s instructions and explicit user request, checking conflicts and authorization. Explanation Correct Answer D:An unrelated project’s local conventions do not automatically apply. Incorrect Answers A:Cross-project instructions can be irrelevant or confidential. B:Old unrelated context is not reliable authority. C:Size does not establish relevant instructions.
Question 63 An analytics system chains classification, retrieval and synthesis. An early classifier marks a sensitive record public by mistake. Where should safeguards be applied? Let downstream workers infer permissions from the classifier text alone. Trust the last summarizer to detect every upstream access error. Hide the label from audit logs while sharing the record. Validate the classification before granting downstream access and enforce access rules independently at retrieval. Explanation Correct Answer D:Layered checks prevent one model label from granting permissions. Incorrect Answers A:Classification mistakes could expose protected data. B:A summarizer may not know the original access policy. C:Concealment does not reduce risk.
Question 64 An agent is asked to process a refund only after identity verification. Even with clear prompts it sometimes skips verification. Where should the invariant be enforced? After the refund, by displaying a warning to the customer. Only in the system prompt with emphatic capital letters. At the refund tool boundary, rejecting requests without a verified customer reference. Only by adding examples of good refunds. Explanation Correct Answer C:The transaction policy needs deterministic enforcement outside the probabilistic model. Incorrect Answers A:A retrospective warning cannot undo an unauthorized transaction reliably. B:Prompt strength does not guarantee a required prerequisite always executes. D:Examples can guide decisions but cannot block an unsafe API call.
Question 65 A model writes issue comments without distinguishing existing defects from defects introduced in a PR. What should the prompt specify? Omit source-line references to make comments shorter. Report only issues caused or newly exposed by the diff, with affected line context. Report anything that feels unusual even without evidence. List every preexisting defect in the entire monorepo. Explanation Correct Answer B:A change-scoped criterion reduces irrelevant historical findings. Incorrect Answers A:Without locations developers cannot efficiently validate findings. C:Intuition alone cannot justify an actionable finding. D:That overwhelms the actual review with unrelated issues.
Question 66 A stock lookup tool has no symbol matching an input. Which behavior is most honest? Output an invented stock price. Return the first stock alphabetically as a substitute. Return a typed no-match result or explicit not-found tool error with the submitted symbol. Raise a fatal server exception that closes every ongoing request. Explanation Correct Answer C:A clear absence state supports clarification instead of misreporting another asset. Incorrect Answers A:A fabricated price is worse than an honest no-match. B:Unrelated results could lead to incorrect financial decisions. D:A normal search miss need not terminate all tool activity.
Question 67 An organization wants a style rule for every Markdown file, but not for Python source. Which condition belongs in the rule frontmatter? A Bash command that rewrites all Python files. A random list of file sizes. A fixed rule that always runs on every file. A paths selector covering Markdown files, such as **/*.md. Explanation Correct Answer D:A file-type glob makes application conditional on relevant edits. Incorrect Answers A:Mutation cannot implement a markdown-only instruction scope. B:Sizes are not the desired file-type condition. C:Python source would receive irrelevant markdown style instructions.
Question 68 An agent makes tool calls through a shared gateway. How can lifecycle hooks support consistent metrics across different backend APIs? Normalize tool names, durations, statuses, and trace IDs into a common event format. Record only the most recent successful call. Copy full request and response bodies without any privacy review. Replace every failed call with a success event. Explanation Correct Answer A:A common schema supports cross-tool latency and failure analysis. Incorrect Answers B:Selective success-only logging hides failures and earlier dependencies. C:Raw payloads may contain sensitive information inappropriate for telemetry. D:Metrics would cease to reflect system reliability.
Question 69 A support assistant has to label messages into refund, delivery, and account-access categories. It confuses combined refund and delivery complaints. What examples are most useful? Twenty near-identical refund-only examples. Examples containing the target label but no input texts. A small varied set including multi-intent messages with the desired primary-label rule. Only an abstract sentence saying labels should be consistent. Explanation Correct Answer C:Boundary examples demonstrate how to resolve the exact ambiguity. Incorrect Answers A:Repetition of easy cases does not teach mixed-intent handling. B:Without input-output pairs the model cannot learn the mapping. D:The boundary remains underspecified.
Question 70 An agent drafts a routine internal summary with source links and no external side effects. When is human intervention most proportionate? Require personal approval for every punctuation mark. Publish it externally without checking authorization. Treat source links as guaranteed factual correctness. When a material unsupported claim or policy-triggering uncertainty is identified, not for every harmless sentence. Explanation Correct Answer D:Risk-based review keeps the workflow efficient while catching significant errors. Incorrect Answers A:Microapprovals create friction without stronger assurance. B:A draft does not authorize public release. C:Links must support the specific assertions.