Question 340 The repository root specifies TypeScript strict mode, while a nested legacy migration directory documents a temporary exception. What should Claude Code do when working inside that directory? Apply the legacy exception to every package in the monorepo. Apply relevant root guidance together with the more specific scoped exception when compatible. Ignore the exception and silently rewrite the migration files. Ignore all root security rules because a nested file exists. Explanation Correct Answer B:Hierarchical context allows local, narrowly targeted behavior without weakening unrelated code. Incorrect Answers A:A narrow exception should not become global policy. C:That would disregard context established for the affected subtree. D:Local guidance is not a blanket deletion of higher-level requirements.
Question 341 A financial extraction workflow uses a drafting model and an independent checking model. Which separation is meaningful? Skip checking if both models have similar styles. Have the checker repeat the draft’s arithmetic explanation without data. Ask the checker whether the draft sounds professional. Have the checker recompute totals from source line items and cite mismatches. Explanation Correct Answer D:A distinct deterministic calculation tests an important failure mode. Incorrect Answers A:Stylistic similarity is irrelevant to accuracy. B:That is susceptible to copying the same error. C:Tone assessment does not verify amounts.
Question 342 A claims process has three mandatory checks: identity, active policy, and fraud screening. The agent sometimes misses one. Which architecture is better than a purely prompt-described checklist? Rely on the model to remember from prior examples. Remove the fraud check to reduce latency. Add the checks as suggestions in the final customer message. Use a workflow state machine that refuses settlement until all three checks are recorded as passed. Explanation Correct Answer D:An explicit state transition gate enforces the complete prerequisite set. Incorrect Answers A:Memory of examples does not deterministically enforce each requirement. B:Simplifying by dropping a mandatory control violates policy. C:Final text cannot compensate for an executed unauthorized settlement.
Question 343 An agent gets a temporary network error from a read-only tool and a permanent policy-denied error from a write tool. What recovery distinction matters? Treat the write denial as a success while retrying the read. Retry only the transient read within limits; do not retry the denied write without new authorization. Retry both calls indefinitely because they are tool errors. Abandon both user tasks without reporting reasons. Explanation Correct Answer B:Recoverability depends on the error category and potential side effects. Incorrect Answers A:That would falsely claim a mutation occurred. C:Permanent denials do not become authorized through repetition. D:A transient read may recover and both need clear status.
Question 344 A developer asks Claude Code to map dependencies and propose a migration before any repository writes. Which workflow mode is appropriate? Bypass all permissions and deploy immediately. Force a production deployment before producing a plan. Plan mode with read-oriented exploration and an explicit proposal before editing. Directly delete obsolete packages without checking references. Explanation Correct Answer C:Planning separates investigation from mutation when scope and risk are still uncertain. Incorrect Answers A:The user explicitly requested analysis before writes. B:Deployment is not necessary to evaluate a migration proposal. D:Premature mutation can break unknown dependencies.
Question 345 Two reviewers reach opposite decisions on a potentially damaging account suspension. What should the system do? Choose the faster review automatically. Remove dissenting records to present a unanimous decision. Hold the consequential action and escalate the conflict with evidence to an authorized adjudicator. Apply the harshest decision without source support. Explanation Correct Answer C:Disagreement on a high-impact decision requires resolution, not arbitrary selection. Incorrect Answers A:Speed does not establish fairness or correctness. B:That conceals material disagreement. D:That increases harm from uncertainty.
Question 346 A code-review task covers 18 independent modules plus one integration boundary. The single-pass reviewer misses cross-module interactions. What decomposition fits? Review modules separately, then run an explicit integration pass over shared interfaces. Require every module reviewer to rewrite all other modules. Raise the context window and keep one undifferentiated review as the sole strategy. Review only the largest module and extrapolate results. Explanation Correct Answer A:Local passes preserve attention while the final pass examines dependencies across files. Incorrect Answers B:Unnecessary edits expand risk instead of creating systematic coverage. C:Context capacity alone does not guarantee focused coverage. D:Other modules and boundaries could contain separate defects.
Question 347 Two model instances review the same migration plan. Both repeat an unsupported claim from a shared summary. What would improve review independence? Remove the plan and ask for opinions from memory. Treat agreement as conclusive without source inspection. Ask both to copy the same earlier summary verbatim. Give the second reviewer the primary plan and a distinct evidence checklist before revealing the first review. Explanation Correct Answer D:Independent source reading reduces shared-answer anchoring. Incorrect Answers A:That weakens evidence quality. B:Consensus is not proof of factual support. C:Correlated assumptions can produce identical errors.
Question 348 A generated test file passes locally but fails CI because it depends on wall-clock time. What refinement should be made? Control time using a test clock or deterministic fixture. Increase the test timeout until all failures disappear. Change the pass report without rerunning tests. Delete the CI job so local results always win. Explanation Correct Answer A:Eliminating timing nondeterminism makes the test reliable across environments. Incorrect Answers B:More waiting may hide rather than fix a time-dependent assertion. C:A false result cannot establish correctness. D:Disabling validation is not refinement.
Question 349 A user asks a code assistant to inspect source but never run commands. What should the agent’s built-in tool policy emphasize? Create new files as a side effect of every search. Use Read, Grep, or Glob within scope and avoid Bash execution. Edit source files proactively to demonstrate helpfulness. Run arbitrary Bash commands because they are built in. Explanation Correct Answer B:Read-only inspection does not require shell side effects. Incorrect Answers A:Discovery should not alter the repository. C:The user did not request any mutation. D:Built-in availability is not authorization for execution.
Question 350 A conversation contains a requested purchase and a background research task. The model tries to place the order as soon as it finds a price. What host-side condition is essential? Assume any product mention grants purchase consent. Charge first and ask permission in the final message. Authorize if the tool schema validates the price field. Check explicit purchasing authorization and constraints before executing the order tool. Explanation Correct Answer D:Research access is not equivalent to permission to spend money. Incorrect Answers A:Interest in a product does not authorize a transaction. B:Post-action approval cannot protect the user against an unauthorized purchase. C:Schema validity checks form, not the user’s consent.