Anthropic CCA-F (Claude Certified Architect - Foundations (CCAR-F)) Practice Test 26

Question 250

A document-processing agent decides whether to retry failed MCP calls. An XML converter receives a password-protected file it cannot read. What is the most defensible next step?

  1. Treat missing approval as a policy precondition requiring escalation
  2. Use an operation ID to query authoritative completion status
  3. Return a field-level constraint violation for the caller to repair
  4. Use retry-aware error metadata with capped exponential backoff
  5. Return a password-protection status rather than a fabricated empty conversion

Explanation

Correct Answer

E:

A clear input limitation enables the user to provide an accessible document through approved channels; repeated conversion is ineffective.

Incorrect Answers

A:

Approval cannot be manufactured by model retries; the workflow must obtain an authorized decision outside the model; the alternative would make sense if a tool reports that the user's approval is missing for a payout. It does not directly fix the observed condition: an XML converter receives a password-protected file it cannot read.

B:

This measure fits a different trigger: a network timeout leaves the outcome of a state-changing operation uncertain. In that setting, Retrying a financial mutation blindly can duplicate a transaction; checking durable state is safer than inferring failure from a timeout; it does not resolve the present need to request a permitted input remedy.

C:

When a validator rejects a confidence value outside its supported range, this would be useful because a type or range error requires argument correction, not infrastructure backoff or an alternate source search; this item instead calls for a way to request a permitted input remedy.

D:

Temporary saturation may clear; paced retries can recover without causing a synchronized load spike; the relevant precondition would be a service responds with a temporary capacity error and a recommended wait. The question instead describes an XML converter receives a password-protected file it cannot read.

Question 251

A document agent selects tools based on the phase of work. A record passes validation and needs to be submitted to a ledger. Which approach satisfies the stated constraint?

  1. Apply a workflow state gate before exposing the final submission action
  2. Use a dedicated schema checker on the extracted object
  3. Update application state so submission tools reject the cancelled operation
  4. Allow targeted page reads rather than forcing a full-document re-extraction

Explanation

Correct Answer

A:

A phase-aware grant keeps irreversible posting separate from exploration and validation. This matches the workflow goal to enable the posting tool only at the approved commit phase rather than introducing an unrelated action.

Incorrect Answers

B:

Validation checks structure and semantics of existing data; another extraction pass does not directly prove that the object satisfies the contract; the alternative would make sense if a PDF has already been parsed and needs only schema validation. It does not directly fix the observed condition: a record passes validation and needs to be submitted to a ledger.

C:

When a user cancels a submission before the commit stage, this would be useful because revocation must be enforced by the host; removing a tool description from a prompt alone cannot cancel queued transactions; this item instead calls for a way to enable the posting tool only at the approved commit phase.

D:

This measure fits a different trigger: a correction requires retrieving one missing page from a previously parsed document. In that setting, The narrowest retrieval operation reduces cost and avoids perturbing already verified fields from unrelated pages; it does not resolve the present need to enable the posting tool only at the approved commit phase.

Question 252

A code analysis service accepts Claude-generated review findings. A review record must contain an array of recommended tests. Which mechanism should be selected?

  1. Declare an enum aligned to the triage system
  2. Verify referenced symbols and locations against the actual code revision
  3. Require an array of test strings or typed test objects
  4. Define whether extra keys are permitted and enforce that contract

Explanation

Correct Answer

C:

Arrays are safer for downstream automation than a single comma-delimited paragraph that could be parsed ambiguously.

Incorrect Answers

A:

Controlled labels avoid synonyms that break deterministic routing and reporting; the alternative would make sense if the pipeline needs severities that match its existing triage labels. It does not directly fix the observed condition: a review record must contain an array of recommended tests.

B:

When a review is structurally valid but flags a function absent from the repository, this would be useful because a well-formed schema cannot prove an architectural claim is true; source checks are still necessary; this item instead calls for a way to encode multiple test suggestions structurally.

D:

This measure fits a different trigger: the downstream parser rejects a valid JSON object because an unexpected property appears. In that setting, Unknown fields should have a deliberate policy; silent acceptance can hide model drift, while arbitrary rejection can break legitimate extensibility; it does not resolve the present need to encode multiple test suggestions structurally.

Question 253

An internal compliance agent handles ambiguous requests. The user asks the assistant to override an explicit approval requirement. What should be implemented at the appropriate boundary?

  1. Keep the approval gate and provide the normal escalation path
  2. Seek the necessary proof before making the decision
  3. Request compliance-owner guidance instead of inferring a rule
  4. Record both versions and request adjudication from the policy owner

Explanation

Correct Answer

A:

A conversational request does not supersede an execution policy; access and approvals remain external constraints. The relevant requirement is to refuse the unauthorized workflow transition, and this measure operates at that decision point.

Incorrect Answers

B:

This measure fits a different trigger: a document explicitly allows an action, but the request lacks required evidence. In that setting, Eligibility text is not enough when required supporting facts are absent; clarification can close the gap without inventing evidence; it does not resolve the present need to refuse the unauthorized workflow transition.

C:

Regulatory ambiguity cannot be repaired by confident paraphrase; the accountable team must supply the applicable policy; the relevant precondition would be a new regulation is mentioned but the maintained policy library has not been updated. The question instead describes the user asks the assistant to override an explicit approval requirement.

D:

Silent selection of whichever date looks newest can be wrong when different scopes or transition rules apply; the alternative would make sense if two approved policy documents contain contradictory effective dates. It does not directly fix the observed condition: the user asks the assistant to override an explicit approval requirement.

Question 254

An architect is reviewing Claude Code memory usage for a large engineering organization. A convention applies to every service in the same monorepo. Which option best meets the operational need?

  1. Store the durable personal convention in the user's Claude Code instruction scope
  2. Put the shared standard in the repository-level CLAUDE.md
  3. Keep the billing convention in the billing project or scoped rule
  4. Reference the maintained build configuration rather than hard-code versions in memory

Explanation

Correct Answer

B:

A root project instruction communicates cross-cutting conventions without repeating them in every package. This matches the workflow goal to make it a common project requirement rather than introducing an unrelated action.

Incorrect Answers

A:

User guidance follows the developer across projects while remaining separate from team-wide repository policy; the relevant precondition would be an instruction is relevant to every repository maintained by one developer. The question instead describes a convention applies to every service in the same monorepo.

C:

Narrow placement keeps tasks in unrelated services from inheriting incompatible commands or assumptions; the alternative would make sense if an instruction is mandatory only for the billing service. It does not directly fix the observed condition: a convention applies to every service in the same monorepo.

D:

When a rule changes frequently because its tool version is pinned elsewhere, this would be useful because the build manifest is authoritative for version details; repeating values in instructions creates stale conflicting copies; this item instead calls for a way to make it a common project requirement.

Question 255

A support workflow uses model-generated structured actions. The same invalid tool argument is regenerated after retry. What is the most appropriate design choice?

  1. Consult current quota state before committing the mutation
  2. Route the request to the approval path without automatic replay
  3. Validate the record identity against the authenticated session
  4. Check postal-code validity with an authoritative service
  5. Include targeted validator diagnostics instead of a generic 'try again'

Explanation

Correct Answer

E:

Specific error feedback helps repair a mismatched field, whereas an uninformative retry prompt may repeat the original value.

Incorrect Answers

A:

When an action payload validates but would exceed a daily transaction limit, this would be useful because current cumulative limits depend on external state and require an authoritative execution-time check, not just a schema; this item instead calls for a way to feed back the exact failure in the next attempt.

B:

This measure fits a different trigger: a service rejects a proposed mutation for insufficient approval. In that setting, Authorization is not a text-generation defect; more model attempts cannot substitute for a missing approval; it does not resolve the present need to feed back the exact failure in the next attempt.

C:

Schema matching cannot establish that a valid-looking identifier belongs to the authorized customer; the alternative would make sense if a model response contains a correct enum but refers to the wrong customer ID. It does not directly fix the observed condition: the same invalid tool argument is regenerated after retry.

D:

A field can be a syntactically valid string while failing the external real-world requirement for a deliverable address; the relevant precondition would be a proposed address change contains a nonexistent postal code. The question instead describes the same invalid tool argument is regenerated after retry.

Question 256

A research pipeline asks Claude to emit machine-readable evidence records. Some sources have no stable page number because they are HTML. Which response is most reliable?

  1. Check source IDs against the approved evidence registry after parsing
  2. Allow a conditional locator such as a page or URL fragment as appropriate
  3. Define source_id and publication_date as required schema properties
  4. Use a list of claim objects, each with its own source references and stance

Explanation

Correct Answer

B:

The schema should reflect source-type differences; forcing a PDF page number for HTML would create meaningless metadata.

Incorrect Answers

A:

When a tool-call payload satisfies syntax but cites an unknown document ID, this would be useful because JSON Schema checks shape and types, not whether a purported reference actually exists or supports the claim; this item instead calls for a way to avoid imposing impossible fields on every source.

C:

Required fields expose missing citation metadata early instead of allowing evidence records that cannot later be traced; the relevant precondition would be a citation must include both source ID and publication date. The question instead describes some sources have no stable page number because they are HTML.

D:

This measure fits a different trigger: results need to preserve multiple contradictory claims from one source set. In that setting, Structured claim-level provenance prevents competing interpretations from being collapsed into one misleading free-text conclusion; it does not resolve the present need to avoid imposing impossible fields on every source.

Question 257

A customer-support service drives Claude through an application-owned tool loop. A single assistant message contains two independent tool_use blocks. What should the team do to resolve this particular gap?

  1. Return a tool_result marked as an error with a sanitized diagnostic
  2. Use a stable transaction or idempotency key at the refund service
  3. Deliver the assistant's final content without dispatching another tool
  4. Execute approved calls and return one result correlated to each tool-use identifier

Explanation

Correct Answer

D:

Tool-use IDs associate responses with particular requests; matching both blocks prevents a result from being mistaken for another operation.

Incorrect Answers

A:

This measure fits a different trigger: a tool request fails because a backend times out. In that setting, A structured failed result preserves the agent loop and lets the model choose recovery or escalation; fabricating successful data would hide the failure; it does not resolve the present need to return both outputs to the proper callers.

B:

When a state-changing refund tool may be retried after a dropped network connection, this would be useful because the model cannot guarantee exactly-once external side effects; an application-level key makes a repeated request resolve to the same transaction; this item instead calls for a way to return both outputs to the proper callers.

C:

An end-of-turn stop signals that the model has finished this turn; a fresh tool invocation would be an unauthorized extra operation rather than required orchestration; the alternative would make sense if the API replies with stop_reason=end_turn and no pending tool requests. It does not directly fix the observed condition: a single assistant message contains two independent tool_use blocks.

Question 258

A design review automates multi-stage document and code checks. Independent lint and unit-test suites can run on an unchanged build. Which control is most directly relevant?

  1. Stop dependent deployment stages and report the failed security gate
  2. Use a join gate that requires successful results from both checks
  3. Use an explicit test checklist and deterministic execution order
  4. Launch checks concurrently while preserving distinct result records

Explanation

Correct Answer

D:

Checks that read the same immutable revision can reduce total time without introducing dependency errors. The relevant requirement is to execute independent validations in parallel, and this measure operates at that decision point.

Incorrect Answers

A:

When a failed security check makes downstream deployment work irrelevant, this would be useful because a blocker should halt stages that cannot succeed safely; continuing merely consumes resources and may create risk; this item instead calls for a way to execute independent validations in parallel.

B:

This measure fits a different trigger: a final reviewer needs both lint and tests to pass. In that setting, Approval before every prerequisite completes risks accepting a change that violates an unchecked requirement; it does not resolve the present need to execute independent validations in parallel.

C:

Stable compliance steps should be reproducible in code, with Claude assisting individual reasoning tasks rather than inventing the pipeline; the relevant precondition would be a fixed compliance check requires a predictable list of tests. The question instead describes independent lint and unit-test suites can run on an unchanged build.

Question 259

An agent controller must coordinate recoverable workflows across interruptions. A worker changed permissions in an earlier session, but today's role policy differs. How should the workflow be adjusted?

  1. Reauthorize actions against the current permission configuration
  2. Replay the persisted, ID-correlated tool_result into the restored conversation
  3. Load checkpoint status and reuse completed result artifacts
  4. Persist origin session, fork lineage, task ID, and artifact references

Explanation

Correct Answer

A:

Session continuity is not continuing authorization; permissions may change independently of the saved transcript. This matches the workflow goal to apply current policy at resume time rather than introducing an unrelated action.

Incorrect Answers

B:

When the result is already durably recorded, the host can resume the exact tool-use/result exchange without repeating the side-effecting operation; the relevant precondition would be a tool result was durably saved with its request ID, but the host crashed before passing it back to Claude. The question instead describes a worker changed permissions in an earlier session, but today's role policy differs.

C:

A checkpointed task graph supports partial recovery and avoids paying for identical completed work; the alternative would make sense if an interrupted research task has several finished specialist outputs. It does not directly fix the observed condition: a worker changed permissions in an earlier session, but today's role policy differs.

D:

When engineers need to trace exactly where a resumed result originated, this would be useful because provenance across resumes and forks is essential for diagnosing which state or branch produced a disputed conclusion; this item instead calls for a way to apply current policy at resume time.

Question 260

A code review automation runs Claude Code on inbound pull requests. An agent is asked to review a feature without knowing its acceptance criteria. Which implementation decision is the best fit?

  1. Switch from review to authorized bounded editing and validation
  2. Run allowed checks and inspect logs before proposing edits
  3. Use an interview or planning step to collect expected behavior
  4. Run read-only inspection and feedback generation without write-capable tools
  5. Inspect tainted inputs, query construction, and existing parameterization

Explanation

Correct Answer

C:

Undefined success conditions make a code change hard to test; targeted questions can establish the missing contract.

Incorrect Answers

A:

Separation between analysis and implementation gives the maintainer control over when automated modifications occur; the alternative would make sense if a human explicitly requests a patch after reviewing generated suggestions. It does not directly fix the observed condition: an agent is asked to review a feature without knowing its acceptance criteria.

B:

When a test suite is failing and the team wants diagnosis only, this would be useful because diagnostic evidence is needed to locate the cause; granting automatic write access in the discovery phase increases change risk; this item instead calls for a way to clarify requirements before implementation.

D:

A CI reviewer should not silently modify a contributor's branch while supposedly assessing it; the relevant precondition would be the pipeline must analyze a PR without altering its contents. The question instead describes an agent is asked to review a feature without knowing its acceptance criteria.

E:

This measure fits a different trigger: a reviewer finds a potential SQL-injection path in an unfamiliar module. In that setting, Security findings require traceable evidence; a pattern match alone may yield a false positive or overlook mitigations; it does not resolve the present need to clarify requirements before implementation.

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