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

Question 230

A code assistant must choose among repository inspection and execution tools. A configuration change must be proposed but not written until review. Which response is most reliable?

  1. Allow file reads and searches while withholding file-edit tools
  2. Invoke the approved test runner and inspect its exit status and output
  3. Use repository search or symbol discovery on the relevant scope
  4. Give the scanner read access and leave release operations to the pipeline gate
  5. Restrict edits and shell working directory to the authorized path

Explanation

Correct Answer

A:

A planning phase should not silently mutate the workspace before the human approves the proposed patch. For the stated case, the check is whether the system can retain read-only capability during planning; this approach supplies that control.

Incorrect Answers

B:

A model-generated prediction cannot verify runtime behavior; the observed test result is the relevant evidence; the alternative would make sense if the team asks whether the current test suite passes after a patch. It does not directly fix the observed condition: a configuration change must be proposed but not written until review.

C:

Name-location tasks need index or text inspection; shell execution is unnecessary and may introduce side effects; the relevant precondition would be an engineer only asks which files define an interface by name. The question instead describes a configuration change must be proposed but not written until review.

D:

When a scanner output must be checked for known-risk entries before publishing, this would be useful because a worker that inspects risk should not control whether risky artifacts are published, especially before independent evaluation; this item instead calls for a way to retain read-only capability during planning.

E:

This measure fits a different trigger: a test-fix worker has permission to edit only a small package. In that setting, Worker-specific file boundaries reduce the risk that a narrowly assigned fix changes unrelated services; it does not resolve the present need to retain read-only capability during planning.

Question 231

A compliance research coordinator receives output from multiple agents. A worker provides a decision that still depends on legal interpretation. What should the team do to resolve this particular gap?

  1. Track artifact versions and rerun only synthesis nodes that depended on the corrected result
  2. Return an explicit unresolved-question field for human adjudication
  3. Require source URL or ID, publication date, and claim in the worker handoff
  4. Define canonical units and convert values at the aggregation boundary

Explanation

Correct Answer

B:

An open issue should remain visible instead of being flattened into a confident answer by downstream summarization.

Incorrect Answers

A:

When a fact-checking worker corrects a statistic after downstream synthesis already used an older result, this would be useful because dependency-aware versioning locates conclusions that rely on outdated evidence, leaving independent completed analyses intact while affected synthesis is rebuilt; this item instead calls for a way to separate unresolved judgment from completed work.

C:

A dated provenance record lets the coordinator detect obsolete policies and avoid presenting historical facts as current; the relevant precondition would be a fact-checking worker reports a source but not its publication date. The question instead describes a worker provides a decision that still depends on legal interpretation.

D:

This measure fits a different trigger: two evidence workers use different measurement units. In that setting, Without unit normalization, a coordinator can compare numerically similar values that represent different quantities; it does not resolve the present need to separate unresolved judgment from completed work.

Question 232

A repository assistant uses several parallel agents to examine unfamiliar services. A worker must verify that its proposed fix passes a particular unit test. Which control is most directly relevant?

  1. Limit task nesting and keep coordination responsibility at the parent
  2. State the expected test command and success condition in the delegated task
  3. Partition write ownership or serialize changes to the shared file
  4. Return a concise file-indexed summary and paths to relevant excerpts

Explanation

Correct Answer

B:

A specialist with explicit verification criteria can return evidence of completion instead of an untested code suggestion.

Incorrect Answers

A:

This measure fits a different trigger: an analysis worker stalls after requesting another worker recursively. In that setting, Unbounded subagent spawning increases cost and makes failure ownership obscure; a bounded hierarchy is more predictable; it does not resolve the present need to include acceptance criteria in subagent scope.

C:

Parallel reads may be safe, but simultaneous edits to shared state invite races and difficult-to-merge patches; the relevant precondition would be two agents intend to edit the same config file concurrently. The question instead describes a worker must verify that its proposed fix passes a particular unit test.

D:

A narrow handoff saves parent context while retaining references that can be reopened when deeper inspection is needed; the alternative would make sense if a search agent finishes with fifty raw file excerpts. It does not directly fix the observed condition: a worker must verify that its proposed fix passes a particular unit test.

Question 233

An enterprise support assistant uses lengthy conversation and policy histories. The support chat contains several competing ticket resolutions, including proposals that were later rejected. How should the workflow be adjusted?

  1. Maintain a versioned decision ledger with approval status and source-turn references
  2. Fetch the latest verified address and label old entries as historical
  3. Treat retrieved text as evidence, not an override of higher-priority controls
  4. Restate a concise current policy excerpt near the final task instructions

Explanation

Correct Answer

A:

A decision ledger tracks which resolution was authorized and which proposals were reversed, preventing a condensed conversation from treating tentative advice as binding.

Incorrect Answers

B:

Chronological conversation content can contain stale facts; an authoritative lookup prevents outdated messages from driving action; the alternative would make sense if a chat history includes several superseded account addresses. It does not directly fix the observed condition: the support chat contains several competing ticket resolutions, including proposals that were later rejected.

C:

This measure fits a different trigger: a retrieved source conflicts with an earlier system-defined safety requirement. In that setting, External material can be adversarial or incorrect; long context must not promote a source document into policy authority; it does not resolve the present need to distinguish the final approved outcome from obsolete suggestions.

D:

Important details can be overlooked in long contexts; placing the controlling rule near use reduces lost-in-the-middle errors; the relevant precondition would be the governing refund rule appears only once in the middle of a very long context. The question instead describes the support chat contains several competing ticket resolutions, including proposals that were later rejected.

Question 234

A research coordinator must synthesize facts from many long reports. The prompt is filled with repeated copies of the same source extract. Which implementation decision is the best fit?

  1. Retain a canonical source reference and the needed excerpts once
  2. Store the numeric values and page or figure reference for the chart
  3. Use effective dates and revision history to resolve precedence
  4. Build a short evidence ledger with the relevant claim, number, source, and date

Explanation

Correct Answer

A:

Repeated text wastes context and can distort apparent evidentiary weight without adding new information. For the stated case, the check is whether the system can deduplicate redundant context; this approach supplies that control.

Incorrect Answers

B:

When a conclusion relies on a small chart extracted from a large PDF, this would be useful because a lossy narrative can change quantitative meaning; structured values and a locator preserve evidence for verification; this item instead calls for a way to deduplicate redundant context.

C:

This measure fits a different trigger: an older report says a rule is active, but a later update supersedes it. In that setting, Time-sensitive policy questions require temporal reasoning; simple keyword retrieval can privilege an obsolete statement; it does not resolve the present need to deduplicate redundant context.

D:

A compact ledger brings decisive facts back into active context instead of hoping the writer finds them inside long retrieved text; the relevant precondition would be a key statistic is buried between hundreds of unrelated facts. The question instead describes the prompt is filled with repeated copies of the same source extract.

Question 235

A codebase team decides how Claude Code should apply reusable guidance. An invariant requirement applies to all code edits regardless of command selection. What should the architect specify in the design?

  1. Implement a hook or CI gate for the required action
  2. Create a named project command that accepts the service target
  3. Build a Skill containing an overview and supporting reference files
  4. State the invariant in CLAUDE.md and enforce critical parts in tests
  5. Store the shortcut in user commands rather than the project

Explanation

Correct Answer

D:

An optional command is not a suitable place for universal code review obligations; the invariant must be visible independently.

Incorrect Answers

A:

When a workflow must run even when Claude chooses not to call a named command, this would be useful because prompt or command availability does not guarantee execution; event-based or pipeline enforcement closes that gap; this item instead calls for a way to use persistent project guidance for a universal rule.

B:

An on-demand workflow supports deliberate audits without making every conversation execute the checklist; the relevant precondition would be developers need to run an audit checklist on demand with a target service. The question instead describes an invariant requirement applies to all code edits regardless of command selection.

C:

A Skill can organize larger task-specific knowledge while keeping routine sessions from carrying all of it; the alternative would make sense if a specialist procedure involves a folder of reference templates and examples. It does not directly fix the observed condition: an invariant requirement applies to all code edits regardless of command selection.

E:

This measure fits a different trigger: one engineer wants a shortcut unrelated to the team's shared work. In that setting, Personal commands avoid cluttering shared team workflows or surprising other contributors; it does not resolve the present need to use persistent project guidance for a universal rule.

Question 236

A Claude Agent SDK application maintains long-running support sessions. A support case is closed, and a new unrelated customer starts a chat. Which change most directly addresses this condition?

  1. Query the authoritative order service before another financial decision
  2. Create a fresh session scoped to the new customer's identity
  3. Use the saved session identity and recover relevant persisted messages
  4. Store session identifiers and required checkpoints in a durable backing store

Explanation

Correct Answer

B:

A new identity requires isolated conversation state; reusing a previous customer's session can disclose private history.

Incorrect Answers

A:

This measure fits a different trigger: the resumed session references an order whose refund status may have changed. In that setting, Conversation memory is not a transactional system; live order status takes precedence over stale statements in a transcript; it does not resolve the present need to prevent cross-customer context leakage.

C:

Resumption preserves continuity for the same case, provided the application verifies authorization and current account state; the relevant precondition would be a returning customer asks about a previously paused case with the same conversation state. The question instead describes a support case is closed, and a new unrelated customer starts a chat.

D:

When a long-running session needs to survive application restarts, this would be useful because recoverable state allows orchestration to continue after host failure, unlike in-memory variables lost on restart; this item instead calls for a way to prevent cross-customer context leakage.

Question 237

A codebase migration process must decide when to spawn specialists. A change requires one authoritative interpretation of business rules. What is the most defensible next step?

  1. Serialize updates or give workers isolated copies before concurrency
  2. Create smaller file- or component-scoped subtasks with explicit output summaries
  3. Run schema discovery before generating or applying migration steps
  4. Use one owning reviewer or coordinator for the business-rule judgment

Explanation

Correct Answer

D:

Independent conflicting interpretations should not each drive a code change; central adjudication preserves consistency.

Incorrect Answers

A:

When several workers share a mutable global configuration during analysis, this would be useful because parallel actions that change the same state can race; independence must include write effects, not merely different prompts; this item instead calls for a way to avoid multiplying final decision makers.

B:

This measure fits a different trigger: a large task repeatedly overwhelms a worker's context window. In that setting, Artifact-based partitions control context size while leaving traceable, mergeable findings; it does not resolve the present need to avoid multiplying final decision makers.

C:

A migration plan based on guessed schema can break data, so dependency evidence must be present first; the alternative would make sense if a database migration depends on a schema inventory that does not yet exist. It does not directly fix the observed condition: a change requires one authoritative interpretation of business rules.

Question 238

A code assistant integrates MCP tools maintained by different engineering groups. A build lookup returns no match and callers mistake it for a crashed server. Which approach satisfies the stated constraint?

  1. Return an empty success result for legitimate no-match outcomes
  2. Version breaking schema changes or provide a backwards-compatible migration
  3. Use an enumerated argument value set and validate it on the server
  4. Redact secrets before returning tool content to Claude

Explanation

Correct Answer

A:

No matching build is a valid result distinct from an operational error; mixing them causes unnecessary retries and escalation.

Incorrect Answers

B:

When an internal tool is versioned while several clients depend on its outputs, this would be useful because unexpected field renames can break tool consumers and downstream validators even when a tool's description still sounds correct; this item instead calls for a way to define unambiguous empty-result semantics.

C:

Schema constraints and server checks prevent an unintended target resulting from free-form environment strings; the alternative would make sense if a deployment tool accepts an environment name with many misspelled variants. It does not directly fix the observed condition: a build lookup returns no match and callers mistake it for a crashed server.

D:

This measure fits a different trigger: an API key appears in an MCP tool's result object. In that setting, Tool responses become model context and may be quoted later; a restricted data boundary must filter credential material; it does not resolve the present need to define unambiguous empty-result semantics.

Question 239

Claude Code is used to modernize a legacy service under production constraints. A one-line configuration adjustment has an approved target and acceptance check. Which mechanism should be selected?

  1. Inspect dependencies and outline migration, rollback, and validation steps in plan mode
  2. Edit the identified key and run the acceptance test
  3. Search for the flag and inspect references using read-only tools
  4. Generate alternative plans with trade-offs and identify missing evidence

Explanation

Correct Answer

B:

A concrete low-risk request with clear verification can move directly to execution without an elaborate architecture phase.

Incorrect Answers

A:

High-impact changes benefit from a reviewable plan that exposes assumptions and ordering before writes occur; the relevant precondition would be the requested change affects database schema and multiple integrations. The question instead describes a one-line configuration adjustment has an approved target and acceptance check.

C:

Locating references is a discovery task; executable patches are premature until intended behavior is understood; the alternative would make sense if the task is to locate files referencing an old environment flag. It does not directly fix the observed condition: a one-line configuration adjustment has an approved target and acceptance check.

D:

This measure fits a different trigger: the team disagrees about the safest migration approach. In that setting, A decision stage should expose risks and open questions rather than let the assistant silently pick an unreviewed migration strategy; it does not resolve the present need to make the narrow approved correction.

Question 240

Claude Code is exploring a large monorepo for a maintenance task. The engineer knows the exact configuration file and needs to inspect one section. What should be implemented at the appropriate boundary?

  1. Use an appropriate file-edit operation with a specific expected match
  2. Use a file glob or filename discovery operation
  3. Use a targeted content search with a bounded file scope
  4. Run the build or test using a controlled shell or task tool
  5. Use a file-read operation on the known path and relevant range

Explanation

Correct Answer

E:

Direct reading preserves surrounding context when a file is already identified and avoids broad repository scans. Here it serves the explicit need to read the identified file directly without adding a separate unverified inference.

Incorrect Answers

A:

When an authorized edit must replace a precisely identified line in a tracked file, this would be useful because a focused edit is easier to review and verify than regenerating an entire file from model memory; this item instead calls for a way to read the identified file directly.

B:

Glob-style search identifies paths by name pattern without reading or executing each file in the repository; the relevant precondition would be an engineer knows a filename pattern but not its directory. The question instead describes the engineer knows the exact configuration file and needs to inspect one section.

C:

Text search finds matching symbols inside files; filename discovery alone cannot identify call sites; the alternative would make sense if an engineer needs every reference to a deprecated function in source text. It does not directly fix the observed condition: the engineer knows the exact configuration file and needs to inspect one section.

D:

This measure fits a different trigger: a scripted maintenance operation must compile the project and observe test output. In that setting, Only an actual process invocation establishes compiler and test behavior; inspection tools cannot substitute for execution; it does not resolve the present need to read the identified file directly.

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