Anthropic CCA-F Practice Test 10
Question 90
A document classifier must hand off rejected files to human review. Which enforced workflow change solves the problem?
- Separate non-mutating review from the publish action and enforce distinct permission checks
- Carry a completeness flag and block unsupported final assertions
- Implement explicit branch predicates over the validated account data
- Route rejected files by an explicit validation outcome, including reasons and references
Explanation
Correct Answer
D:A document classifier must hand off rejected files to human review. The relevant control is to route rejected files by an explicit validation outcome, including reasons and references. A structured handoff lets reviewers inspect a reproducible failure instead of receiving an unexplained label. Enforce ordering and approvals at the execution boundary, with explicit success, failure and cancellation transitions.
Incorrect Answers
A:Breaking the workflow at the side-effect boundary prevents innocuous analysis requests from silently triggering publication. Here, a document classifier must hand off rejected files to human review. Route rejected files by an explicit validation outcome, including reasons and references. A structured handoff lets reviewers inspect a reproducible failure instead of receiving an unexplained label.
B:Handoff contracts must preserve partial status so later steps do not silently convert gaps into confident facts. Here, a document classifier must hand off rejected files to human review. Route rejected files by an explicit validation outcome, including reasons and references. A structured handoff lets reviewers inspect a reproducible failure instead of receiving an unexplained label.
C:Deterministic branch conditions are testable and reduce ambiguity about when to escalate or proceed. The proposed option cannot provide the specific “Route rejected files by an explicit validation outcome, including reasons and references” behavior that the case requires. A structured handoff lets reviewers inspect a reproducible failure instead of receiving an unexplained label.
Question 91
A user request requires both a read-only comparison and an authorized publish step. How should the workflow boundary be implemented?
- Separate non-mutating review from the publish action and enforce distinct permission checks
- Carry a completeness flag and block unsupported final assertions
- Implement explicit branch predicates over the validated account data
- Enforce the approval predicate at the refund execution boundary
Explanation
Correct Answer
A:The relevant control is to separate non-mutating review from the publish action and enforce distinct permission checks. Breaking the workflow at the side-effect boundary prevents innocuous analysis requests from silently triggering publication. This matters when a user request requires both a read-only comparison and an authorized publish step. Keep completed side effects and outstanding approvals distinguishable so a downstream step cannot invent success.
Incorrect Answers
B:Handoff contracts must preserve partial status so later steps do not silently convert gaps into confident facts. This is not a substitute for “Separate non-mutating review from the publish action and enforce distinct permission checks”; that control is necessary in the stated circumstances. Breaking the workflow at the side-effect boundary prevents innocuous analysis requests from silently triggering publication.
C:Deterministic branch conditions are testable and reduce ambiguity about when to escalate or proceed. Here, a user request requires both a read-only comparison and an authorized publish step. Separate non-mutating review from the publish action and enforce distinct permission checks. Breaking the workflow at the side-effect boundary prevents innocuous analysis requests from silently triggering publication.
D:Deterministic tool authorization is necessary because prompts cannot guarantee that an autonomous model never bypasses a financial control. The proposed option cannot provide the specific “Separate non-mutating review from the publish action and enforce distinct permission checks” behavior that the case requires. Breaking the workflow at the side-effect boundary prevents innocuous analysis requests from silently triggering publication.
Question 92
An upstream tool reports partial data but a downstream writer expects completeness. Which control most reliably preserves the required sequence?
- Implement explicit branch predicates over the validated account data
- Carry a completeness flag and block unsupported final assertions
- Enforce the approval predicate at the refund execution boundary
- Gate answer generation on the verified entitlement result
Explanation
Correct Answer
B:Handoff contracts must preserve partial status so later steps do not silently convert gaps into confident facts. For this situation, the system should carry a completeness flag and block unsupported final assertions. The factual trigger is an upstream tool reports partial data but a downstream writer expects completeness. Enforce ordering and approvals at the execution boundary, with explicit success, failure and cancellation transitions.
Incorrect Answers
A:Deterministic branch conditions are testable and reduce ambiguity about when to escalate or proceed. The direct remedy is “Carry a completeness flag and block unsupported final assertions”, which the alternative does not itself accomplish. Handoff contracts must preserve partial status so later steps do not silently convert gaps into confident facts.
C:Deterministic tool authorization is necessary because prompts cannot guarantee that an autonomous model never bypasses a financial control. This is not a substitute for “Carry a completeness flag and block unsupported final assertions”; that control is necessary in the stated circumstances. Handoff contracts must preserve partial status so later steps do not silently convert gaps into confident facts.
D:A workflow dependency prevents the model from asserting an unsupported refund entitlement before lookup completes. Here, an upstream tool reports partial data but a downstream writer expects completeness. Carry a completeness flag and block unsupported final assertions. Handoff contracts must preserve partial status so later steps do not silently convert gaps into confident facts.
Question 93
A workflow can take several branches based on verified account state. Which enforced workflow change solves the problem?
- Enforce the approval predicate at the refund execution boundary
- Gate answer generation on the verified entitlement result
- Implement explicit branch predicates over the validated account data
- Implement the dry-run and approval as distinct validated workflow stages
Explanation
Correct Answer
C:When a workflow can take several branches based on verified account state, the system should implement explicit branch predicates over the validated account data. Deterministic branch conditions are testable and reduce ambiguity about when to escalate or proceed. Keep completed side effects and outstanding approvals distinguishable so a downstream step cannot invent success.
Incorrect Answers
A:Deterministic tool authorization is necessary because prompts cannot guarantee that an autonomous model never bypasses a financial control. Here, a workflow can take several branches based on verified account state. Implement explicit branch predicates over the validated account data. Deterministic branch conditions are testable and reduce ambiguity about when to escalate or proceed.
B:A workflow dependency prevents the model from asserting an unsupported refund entitlement before lookup completes. The direct remedy is “Implement explicit branch predicates over the validated account data”, which the alternative does not itself accomplish. Deterministic branch conditions are testable and reduce ambiguity about when to escalate or proceed.
D:Technical control flow must make side effects impossible until required evidence and authorization are present. Here, a workflow can take several branches based on verified account state. Implement explicit branch predicates over the validated account data. Deterministic branch conditions are testable and reduce ambiguity about when to escalate or proceed.
Question 94
An external application resumes an agent through a callback URL after approval. What should the callback verify?
- Authenticate the caller and bind approval to the exact pending task and expiry
- Use an explicit timeout and escalation transition rather than waiting forever
- Enforce the scan as a programmatic prerequisite to the deploy tool
- Assign approval authority to an independent principal or review service
Explanation
Correct Answer
A:An approval callback is an authorization boundary, not just a notification that a URL was visited. Validate the caller's authenticated identity, bind the approval to the exact pending action and record or transaction, and enforce expiry and replay protection. A generic true/approved field from an untrusted callback must not authorize arbitrary tasks. The executor should reject a mismatched or expired approval and preserve a traceable decision record.
Incorrect Answers
B:A workflow should make missed deadlines visible and actionable. That addresses a different part of the system, not the requirement to accept only authorized task-specific approval callbacks.
C:Text instructions are probabilistic guidance. The decisive requirement here is to accept only authorized task-specific approval callbacks. The scan prerequisite controls deployment sequencing, not whether a callback was genuinely issued by the authorized reviewer for the exact pending action. Callback identity and authorization must be checked separately.
D:Segregating request and authorization roles prevents one compromised assistant from completing an unchecked financial transaction. This capability does not directly accept only authorized task-specific approval callbacks.
Question 95
One CRM tool returns customerId and another returns customer_id. Agents repeatedly confuse them. Where should normalization occur?
- A PostToolUse hook that masks secret patterns before the result enters context
- In a PostToolUse hook that converts tool results to a stable canonical schema
- Fail safely with a visible structured error rather than passing unvalidated data onward
- A pre-execution hook that validates the destination against an allowlist
- Normalize only the model prompt while preserving both incompatible tool response fields.
- Silently drop whichever CRM identifier disagrees with the last response.
Explanation
Correct Answer
B:A PostToolUse hook can transform the tool result before Claude receives it by returning hookSpecificOutput.updatedToolOutput in the documented output shape. Map customerId and customer_id into one canonical identifier field without silently altering the underlying ID, then validate conflicting values. Merely adding explanatory context next to the original output would leave both incompatible field names in view; replacement must actually be accepted by the hook runner.
Incorrect Answers
A:A secret-redaction hook protects confidentiality, but changing or masking sensitive values is not the same as reconciling `customerId` and `customer_id` into one typed identifier field. Here both connectors return ordinary IDs using different field names. Map them to a canonical schema and reject conflicts rather than treating the fields as secrets.
C:Failing safely is appropriate when a result is malformed or cannot be normalized. It is not by itself the normal transformation needed when two valid CRM connectors use different field spellings. Map both into a documented canonical schema and report unresolvable conflicts.
D:A destination guard must run before bytes leave the system. Although useful elsewhere, it is not the direct mechanism to normalize heterogeneous tool payloads after execution.
E:Prompt changes cannot guarantee downstream code receives a consistent machine-readable field contract. A system prompt can encourage the model to use a preferred spelling, but cannot guarantee stable JSON field names emitted by separate connectors. Normalize at the typed integration boundary and test downstream consumers.
F:Discarding an identifier hides a mapping problem and can link the wrong customer record. Those identifiers may represent different customers or different schema versions. Silent deletion corrupts reconciliation evidence and risks linking a tool response to the wrong CRM record; report and resolve the mapping explicitly.
Question 96
A coding agent may execute commands in a sandbox but must never invoke destructive shell operations. Which TWO controls directly enforce that boundary? Choose TWO.
- Only add a polite reminder to the final-answer style guide
- Intercept Bash invocations with a PreToolUse authorization hook
- Inspect the shell output for risky commands after execution
- Deny commands outside an approved allowlist and permitted workspace
Explanation
Correct Answers
B:A PreToolUse authorization hook can inspect a proposed Bash action before the host executes it. The hook should evaluate the command, arguments and target path against a deny/allow policy, then reject disallowed destructive operations. Intercepting before execution matters because a shell command can cause irreversible damage before post-execution monitoring has a chance to respond.
D:Executable allowlists establish a deterministic boundary for sensitive operations. The command gate should check resolved executable, arguments, target paths and workspace permissions before launch. It can reject file deletion or unsafe privilege changes while allowing necessary bounded inspection and testing commands.
Incorrect Answers
A:A final-answer reminder does not enforce runtime command permissions. A final-response style rule is applied after tool execution has already been attempted. Command permissions should instead be enforced at the tool boundary, before the shell receives the requested operation.
C:Post-execution review occurs too late to prevent destructive effects. A destructive command may erase files or modify credentials before its output is inspected. Prevent such actions by restricting available operations and checking command intent and target paths before execution.
Question 97
A monitoring tool occasionally returns API keys embedded in logs. The model must never see those values. Which hook fits?
- Fail safely with a visible structured error rather than passing unvalidated data onward
- A PostToolUse hook that masks secret patterns before the result enters context
- Apply narrow deterministic parsing and transformations only where required
- In a PostToolUse hook that converts tool results to a stable canonical schema
Explanation
Correct Answer
B:Use a PostToolUse hook that replaces the returned log payload through updatedToolOutput before that payload is sent to Claude. Redact credential fields and tested key patterns in the replacement and fail closed if the output cannot be sanitized. The tool has already executed, and telemetry may have captured the original content before the hook runs, so separately protect logging and retention; this hook only controls what the model receives.
Incorrect Answers
A:A structured error is appropriate if a tool result cannot be processed safely. Here the result may be valid but contains an API key; returning an error without a pre-context redaction step may still expose it. Replace or quarantine secret-bearing content before model consumption.
C:Generic format normalization does not guarantee that credential patterns are scrubbed from returned logs. The required policy is explicit secret redaction at the inbound tool-result boundary, tested with representative key formats and a fail-closed path for content that cannot be safely sanitized.
D:Renaming fields into a canonical schema can help consumers parse a valid payload, but it will not necessarily remove embedded API keys. The threat is credential exposure to the model. Use a PostToolUse replacement with tested redaction or quarantine rules and validate that the replacement matches the tool's output shape.
Question 98
A tool emits dates in several locale-specific formats, breaking downstream comparison. What is the most reliable intervention?
- A PreToolUse authorization hook that denies restricted paths
- A pre-execution hook that validates the destination against an allowlist
- Fail safely with a visible structured error rather than passing unvalidated data onward
- A PostToolUse transformer that parses dates and outputs ISO 8601 consistently
Explanation
Correct Answer
D:Deterministic date normalization can be implemented in code after the tool call. Asking the model to guess each ambiguous locale is less reliable. The date parser must know the source locale or reject ambiguous dates instead of guessing whether 03/04 means March or April. Normalize accepted timestamps to ISO 8601 with explicit timezone handling.
Incorrect Answers
A:A tool guard operates before the read and is enforceable regardless of prompt adherence. The scenario instead requires a way to standardize dates at the tool-result boundary.
B:A destination guard must run before bytes leave the system. Although useful elsewhere, it is not the direct mechanism to standardize dates at the tool-result boundary.
C:Interception logic becomes part of the reliability boundary. This alternative does not establish how to standardize dates at the tool-result boundary in the stated workflow.
Question 99
An agent tries to read credentials through a filesystem tool despite having a no-secrets instruction. Which protection is stronger?
- Use a post-execution audit hook that records the result of the credential-read attempt after the filesystem operation finishes.
- A PreToolUse authorization hook that denies restricted paths
- Fail safely with a visible structured error rather than passing unvalidated data onward
- A pre-execution hook that validates the destination against an allowlist
Explanation
Correct Answer
B:A tool guard operates before the read and is enforceable regardless of prompt adherence. Instructions alone cannot provide a deterministic access boundary. Credential paths should be denied by enforceable tool permissions or a pre-execution path authorization check, including symlink and resolved-path handling. A natural-language 'never read secrets' instruction alone leaves the filesystem tool available.
Incorrect Answers
A:A post-execution audit hook can record which operation ran, but it cannot prevent the filesystem read that already occurred. The requirement is to block access to credential paths before bytes reach the model; enforce the path-deny rule at the tool-execution boundary and restrict the filesystem permissions themselves.
C:Interception logic becomes part of the reliability boundary. That addresses a different part of the system, not the requirement to block sensitive path reads rather than relying on a reminder.
D:A destination guard must run before bytes leave the system. The required action is “A PreToolUse authorization hook that denies restricted paths”; the other measure addresses a separate concern. Credential paths should be denied by enforceable tool permissions or a pre-execution path authorization check, including symlink and resolved-path handling.
Question 100
A single global hook attempts to alter every tool result and corrupts image outputs. How should configuration improve?
- Keep the global catch-all matcher but rely on a polite system prompt asking it to ignore images
- Apply the same text-only normalization function to images and binary results so all tool responses look uniform
- Disable tool-result monitoring entirely rather than distinguish the tools that need interception
- Scope the hook matcher to the specific tool types whose results require normalization
Explanation
Correct Answer
D:Restrict the hook's matcher to the tool names and result types whose data genuinely require transformation. This avoids modifying image output or unrelated payloads while keeping deterministic parsing for the intended textual tool. Validate both matching and nonmatching cases; merely changing the model's prompt would not change a global hook's execution scope.
Incorrect Answers
A:A prompt can influence an assistant's choices but does not change which tool events trigger a configured programmatic hook. If the matcher still intercepts all tools, image outputs remain exposed to the same unsafe transformation. The matching scope must be corrected at configuration level, not delegated to probabilistic language instructions.
B:Image and binary payloads do not share the structural guarantees of ordinary text results. Running a text parser or replacement routine indiscriminately can corrupt data or remove required metadata. A normalization hook should be designed for the specific response types it supports, with a safe bypass for other tools.
C:Removing all monitoring would also discard useful validations for the tool results that actually require normalization. The defect is overbroad application, not proof that every hook is inherently unsafe. Retain the needed scoped interception and separately preserve error handling and observability for affected operations.