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

Question 470

A team uses Claude Code to implement a business-rule change. A review discovers the acceptance criteria changed mid-implementation. Which change most directly addresses this condition?

  1. Request the exact states and exception cases before coding
  2. Run the reproducer, inspect the cause, then apply a minimal change
  3. Remove incidental changes and present a focused diff
  4. Update tests and plan based on the approved revised criteria
  5. Validate the changed module and affected integration boundaries

Explanation

Correct Answer

D:

Continuing with an obsolete contract can produce polished but wrong code; the new requirements must govern validation.

Incorrect Answers

A:

This choice is relevant when a ticket uses the word 'active' without defining qualifying account states; an undefined business term can map to several implementations; clarification prevents a seemingly plausible but wrong patch. Here, however, a review discovers the acceptance criteria changed mid-implementation.

B:

A known failure gives objective feedback; starting with a broad rewrite increases unrelated regression risk; the benefit is tied to the team has a known bug with a reproducible failing test. It is not the immediate control for the need to reconcile the implementation against the new specification.

C:

For the separate situation where the generated patch contains unrelated formatting changes, a small diff improves reviewability and makes unintended consequences easier to detect; the current task is to reconcile the implementation against the new specification.

E:

A local green test is not enough when shared interfaces are modified; neighboring consumers need coverage; it is a safeguard for the fix passes the reproducer but may affect adjacent modules, not the specific situation described: a review discovers the acceptance criteria changed mid-implementation.

Question 471

An application extracts structured fields from invoices with Claude. A paid amount is emitted as a phrase such as 'about fifty'. What is the most defensible next step?

  1. Declare amount as a number and reject nonnumeric values
  2. Model tax ID as optional or nullable according to downstream semantics
  3. On a model that supports it, set tool_choice to tool with the required function name
  4. Define an array of line-item objects with required amount and description fields

Explanation

Correct Answer

A:

Type constraints prevent textual approximations from being silently interpreted as ledger-ready amounts. This matches the workflow goal to enforce the numeric field type rather than introducing an unrelated action.

Incorrect Answers

B:

A schema that requires nonexistent information encourages fabricated values; absence must be representable explicitly; it is a safeguard for some invoice records omit an optional tax identifier, not the specific situation described: a paid amount is emitted as a phrase such as 'about fifty'.

C:

A forced tool choice can enforce this output channel on compatible models; the application must still validate arguments and should use schema-constrained output when forced tool use is unavailable; the benefit is tied to the deployment uses a Claude model and settings that support forcing a designated tool, and every extracted record must be submitted through that function. It is not the immediate control for the need to enforce the numeric field type.

D:

For the separate situation where the system stores several line items for one invoice, nested arrays preserve line-item boundaries and permit validation of each element without relying on free-text delimiters; the current task is to enforce the numeric field type.

Question 472

A support-orchestration service decides how to pass tasks between specialists. The coordinator wants to know whether a stalled task can be resumed. Which approach satisfies the stated constraint?

  1. Select a named specialist based on intent and permission boundaries
  2. Associate delegated jobs with stable identifiers and recoverable progress
  3. Treat the unrecognized status as invalid and request clarification or manual review
  4. Require both verified prerequisite states before dispatching the dependent worker

Explanation

Correct Answer

B:

A durable job identity connects resumes to prior work and avoids launching duplicate specialists blindly. The relevant requirement is to retain task IDs and recoverable checkpoint state, and this measure operates at that decision point.

Incorrect Answers

A:

This choice is relevant when a customer intent is classified, but no worker has been chosen; an explicit dispatch decision links a validated customer need to a worker with relevant expertise and tool access. Here, however, the coordinator wants to know whether a stalled task can be resumed.

C:

For the separate situation where a delegated task completes but its result schema has an unknown status, a closed status enumeration prevents unfamiliar values from accidentally being treated as success; the current task is to retain task IDs and recoverable checkpoint state.

D:

A conjunction of prerequisites prevents the next stage from treating one successful check as equivalent to full authorization; the benefit is tied to a task needs both a billing result and an identity confirmation. It is not the immediate control for the need to retain task IDs and recoverable checkpoint state.

Question 473

A document-processing architecture decides between online calls and batch jobs. The team wants to know whether extraction quality changes over several nightly runs. Which mechanism should be selected?

  1. Maintain stable item IDs and a durable submission ledger
  2. Invoke the model synchronously with bounded timeout and fallback
  3. Compute field-level error metrics by input cohort and workflow version
  4. Mark uncertain items for separate human adjudication while preserving successful outputs

Explanation

Correct Answer

C:

Aggregate success status does not prove accuracy; scored examples reveal changes in extraction behavior over time. This matches the workflow goal to evaluate batches against sampled labeled records rather than introducing an unrelated action.

Incorrect Answers

A:

A replay-safe manifest distinguishes outstanding items from completed or already submitted work and prevents accidental duplicate processing; it is a safeguard for a batch worker may retry failed items after network interruption, not the specific situation described: the team wants to know whether extraction quality changes over several nightly runs.

B:

A transaction depends on the output now; asynchronous batch scheduling would not satisfy the immediate completion dependency; the benefit is tied to a cashier needs a tax calculation before finishing the same transaction. It is not the immediate control for the need to evaluate batches against sampled labeled records.

D:

For the separate situation where a large job contains some documents that require human review, partial automation can still be useful, but the pipeline must not pretend every item met the same confidence threshold; the current task is to evaluate batches against sampled labeled records.

Question 474

A research MCP server uses structured errors and pagination. A request fails with an internal stack trace containing server paths. What should be implemented at the appropriate boundary?

  1. Expose a sanitized error code and trace ID while logging restricted details internally
  2. Return successful index results plus per-source error statuses
  3. Return a timeout category with correlation ID and bounded retry guidance
  4. Return a distinct expired-cursor error with a restart strategy

Explanation

Correct Answer

A:

Structured diagnostics allow troubleshooting without dumping sensitive service internals into a language-model conversation.

Incorrect Answers

B:

For the separate situation where only one of five federated indexes fails while others succeed, a mixed outcome should retain usable evidence while informing the coordinator that coverage is incomplete; the current task is to separate operational logs from model-facing errors.

C:

Time limits protect system capacity; reporting an empty search result would conceal that no reliable search completed; the benefit is tied to an upstream search endpoint times out after several seconds. It is not the immediate control for the need to separate operational logs from model-facing errors.

D:

This choice is relevant when a returned cursor has expired between paginated requests; an invalid cursor is not 'no more results'; preserving the error prevents a partial search from appearing complete. Here, however, a request fails with an internal stack trace containing server paths.

Question 475

A multi-agent research controller launches short-lived specialists. An autonomous worker encounters an unexpected request for credentials. Which option best meets the operational need?

  1. Set agent-level execution limits and monitor per-task consumption
  2. Assign each worker a purpose-specific allowed-tool set
  3. Pass a curated task brief and the approved evidence only
  4. Require status, result, and unresolved-work fields in each worker handoff
  5. Use a credential broker or application-side authorization rather than giving secrets in prompts

Explanation

Correct Answer

E:

Secrets placed in worker context are vulnerable to disclosure in logs or outputs; privileged access belongs in controlled service boundaries.

Incorrect Answers

A:

Budget limits stop a narrow delegated task from silently exhausting the resources allocated to the entire orchestration; it is a safeguard for a worker is likely to call an expensive external tool excessively, not the specific situation described: an autonomous worker encounters an unexpected request for credentials.

B:

This choice is relevant when a finance analyst must not obtain the searcher's CRM write tool; tool permissions should follow delegated duties, not the maximum privileges of the parent or another worker. Here, however, an autonomous worker encounters an unexpected request for credentials.

C:

Specialized workers benefit from an explicit information boundary; inherited unrelated history can confuse task scope and expose sensitive data; the benefit is tied to a writing specialist receives the entire private search history, including unrelated leads. It is not the immediate control for the need to keep secrets outside delegated tool text.

D:

For the separate situation where the coordinator cannot tell whether a worker finished or merely started searching, a typed completion status allows the parent to distinguish finished evidence collection from a partial exploratory result; the current task is to keep secrets outside delegated tool text.

Question 476

Claude Code is used to modernize a legacy service under production constraints. The final plan is accepted, but some files lie outside the permitted workspace. What is the most appropriate design choice?

  1. Search for the flag and inspect references using read-only tools
  2. Inspect dependencies and outline migration, rollback, and validation steps in plan mode
  3. Limit writes to authorized paths and escalate the out-of-scope changes
  4. Edit the identified key and run the acceptance test

Explanation

Correct Answer

C:

Approval for a plan does not grant unrestricted filesystem rights; actual tool permissions must still match the authorized work.

Incorrect Answers

A:

Locating references is a discovery task; executable patches are premature until intended behavior is understood; the benefit is tied to the task is to locate files referencing an old environment flag. It is not the immediate control for the need to enforce edit scope despite plan approval.

B:

This choice is relevant when the requested change affects database schema and multiple integrations; high-impact changes benefit from a reviewable plan that exposes assumptions and ordering before writes occur. Here, however, the final plan is accepted, but some files lie outside the permitted workspace.

D:

A concrete low-risk request with clear verification can move directly to execution without an elaborate architecture phase; it is a safeguard for a one-line configuration adjustment has an approved target and acceptance check, not the specific situation described: the final plan is accepted, but some files lie outside the permitted workspace.

Question 477

An internal compliance agent handles ambiguous requests. A reviewer confirms that all documented conditions are satisfied. Which response is most reliable?

  1. Record the verified conditions and perform the permitted action
  2. Keep the approval gate and provide the normal escalation path
  3. Seek the necessary proof before making the decision
  4. Request compliance-owner guidance instead of inferring a rule

Explanation

Correct Answer

A:

Reliable systems should distinguish genuine blockers from resolved ones and avoid unnecessary repeated escalation. The relevant requirement is to allow the validated lower-risk operation to proceed, and this measure operates at that decision point.

Incorrect Answers

B:

A conversational request does not supersede an execution policy; access and approvals remain external constraints; it is a safeguard for the user asks the assistant to override an explicit approval requirement, not the specific situation described: a reviewer confirms that all documented conditions are satisfied.

C:

For the separate situation where a document explicitly allows an action, but the request lacks required evidence, eligibility text is not enough when required supporting facts are absent; clarification can close the gap without inventing evidence; the current task is to allow the validated lower-risk operation to proceed.

D:

This choice is relevant when a new regulation is mentioned but the maintained policy library has not been updated; regulatory ambiguity cannot be repaired by confident paraphrase; the accountable team must supply the applicable policy. Here, however, a reviewer confirms that all documented conditions are satisfied.

Question 478

An engineering assistant writes migration plans for internal reviewers. The team needs to compare two architecture options fairly. What should the team do to resolve this particular gap?

  1. Evaluate each alternative against the same security, latency, maintenance, and failure criteria
  2. Require backward compatibility, staged rollout, and rollback considerations
  3. Require each risk to be marked observed, inferred, or unknown with supporting evidence
  4. Require affected service names, dependency edges, and verification steps

Explanation

Correct Answer

A:

A shared rubric makes trade-offs comparable rather than giving one preferred option more favorable assessment dimensions.

Incorrect Answers

B:

An explicit availability constraint changes feasible migration designs; it must be visible before the model proposes modifications; the benefit is tied to a rollout has a strict zero-downtime requirement. It is not the immediate control for the need to define a consistent comparison rubric.

C:

Distinguishing established facts from hypotheses prevents speculative risk language from masquerading as a verified defect; it is a safeguard for a risk register mixes confirmed issues with guesses, not the specific situation described: the team needs to compare two architecture options fairly.

D:

This choice is relevant when a plan says 'update services' without naming dependent components; an actionable architecture plan names components and checks rather than relying on unbounded generic tasks. Here, however, the team needs to compare two architecture options fairly.

Question 479

A Claude Code automation project uses lifecycle hooks for deterministic behavior. A tool result contains a bearer token accidentally echoed from logs. Which control is most directly relevant?

  1. Capture the subagent lifecycle completion event for orchestration tracking
  2. Run the targeted test through an appropriate post-tool hook or workflow stage
  3. Sanitize tool outputs at a controlled result boundary before passing them to the model
  4. Use session initialization to provide relevant instructions or environment facts

Explanation

Correct Answer

C:

Tool-return filtering reduces exposure of secrets in model context and later generated text; a user-facing disclaimer does not remove the token.

Incorrect Answers

A:

For the separate situation where a subagent finishes a task, and its completion status must be recorded centrally, a completion event is the right place to record the specialist's result without confusing it with the parent agent's final turn; the current task is to redact secret material from the returned evidence.

B:

This choice is relevant when a test command must run after a source-editing tool successfully changes code; the validation is bound to the actual modification event, not to whether Claude remembers a reminder at the end of the conversation. Here, however, a tool result contains a bearer token accidentally echoed from logs.

D:

Start-of-session hooks can make standard setup repeatable rather than relying on each developer to manually paste conventions; it is a safeguard for a session needs to load its approved repository-specific working conventions, not the specific situation described: a tool result contains a bearer token accidentally echoed from logs.

Question 480

A support workflow handles errors from external services. A customer-facing workflow receives a detailed internal stack trace. How should the workflow be adjusted?

  1. Propagate an unavailable-service error and avoid a negative factual assertion
  2. Query the transaction ledger by idempotency key before retrying
  3. Stop the action and route to the approved access process
  4. Treat a validated empty optional field as data, not a tool outage
  5. Convert the exception to a safe user-facing status and retain trace IDs internally

Explanation

Correct Answer

E:

The user needs an accurate next step, not sensitive implementation paths or credentials embedded in a service error.

Incorrect Answers

A:

This choice is relevant when the order API times out and the agent states the customer has no order; a failed query provides no evidence that a record is absent; the customer should receive an honest temporary-status response. Here, however, a customer-facing workflow receives a detailed internal stack trace.

B:

Unknown delivery of a response is not proof the operation failed; reconciliation prevents duplicate financial effects; the benefit is tied to a refund call may have succeeded before its network connection dropped. It is not the immediate control for the need to avoid leaking operational details.

C:

For the separate situation where a backend returns a permanent account-permission denial, a fixed permission constraint is not repaired by exponential backoff; repeated calls can add noise without changing authority; the current task is to avoid leaking operational details.

D:

An expected empty value is distinct from execution failure; confusing them causes unnecessary recovery attempts; it is a safeguard for a policy lookup returns a valid empty result for an optional note, not the specific situation described: a customer-facing workflow receives a detailed internal stack trace.

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