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

Question 370

An unfamiliar repository contains a complex checkout flow and the requested modification has hidden side effects. What should happen before editing?

  1. Pinpoint specific tests and acceptance criteria alongside the edit steps
  2. Explore dependencies and produce a change plan before mutation
  3. Share the plan for approval before allowing write-capable execution
  4. Describe deployment order, checkpoints and rollback triggers before execution

Explanation

Correct Answer

B:

Discovery identifies relevant modules, tests and side effects. Plan-first work reduces the chance that the agent patches an isolated line while breaking the wider transaction.

Incorrect Answers

A:

A useful plan describes not just changes but the evidence that will establish success; supporting embedding verification into the implementation plan cannot replace the required mapping dependencies before modifying unfamiliar code.

C:

Sensitive migrations benefit from separating design review from mutation; that serves requiring plan approval for a migration, whereas the case requires mapping dependencies before modifying unfamiliar code.

D:

Because multi-service updates have dependencies and failure domains that cannot be improvised safely, the measure supports preparing release sequencing and rollback rather than the needed mapping dependencies before modifying unfamiliar code.

Question 371

A tool should require a refund reason code from an allowed policy list rather than arbitrary text. What contract element fits?

  1. Set out explicit amount units and a required currency input
  2. Encode the supported reason codes as a constrained enumeration
  3. Specify the mutation and external communication effect explicitly in the tool description
  4. Formalize typed required parameters with separate identifier semantics

Explanation

Correct Answer

B:

Enumerated fields constrain inputs to a documented business vocabulary and support deterministic validation. Unrestricted strings permit unsupported codes to reach back-end workflows.

Incorrect Answers

A:

Financial tools need unambiguous units and typed fields; that may serve disambiguating monetary units in tool calls, but it is no substitute for limiting parameters to valid business values.

C:

Callers need to distinguish observation from state change before choosing tools; the stated problem requires limiting parameters to valid business values rather than signaling irreversible tool side effects.

D:

A precise input schema can distinguish account identifiers from email addresses and reject unsupported shapes; a method suited to distinguishing identity fields in a tool interface does not meet the need for limiting parameters to valid business values.

Question 372

A codebase exploration worker produces a giant file dump with no interpretation. What output shape is more useful to the parent?

  1. Read the implicated method and immediate call chain before expanding scope
  2. Begin by centralizing a short verified configuration summary with exact file references
  3. Log tested commands, outcomes and affected paths alongside decisions
  4. Return a concise module map with relevant paths, responsibilities and unresolved questions

Explanation

Correct Answer

D:

A structured map preserves navigation value without carrying every line into parent context. Focused path references support selective follow-up inspection.

Incorrect Answers

A:

Error evidence supplies a high-signal starting point; this addresses using stack traces to prioritize code inspection, while the question is about compacting repository exploration into an actionable map.

B:

Shared grounded notes prevent repeated expensive reads while retaining the ability to verify details; that relates to reusing concise verified repository findings, not the necessary compacting repository exploration into an actionable map.

C:

Although implementation history is not reliable if verification evidence is lost, the choice addresses preserving code-testing evidence in work summaries and not the requested compacting repository exploration into an actionable map.

Question 373

A reviewer needs to decide an exception but the agent forwards only a vague 'please help' message. What should escalation include?

  1. Specify escalation signals based on evidence gaps and policy-critical uncertainty
  2. Send to the security or fraud workflow and suspend sensitive actions
  3. Specify the approval dependency and avoid claiming the refund has occurred
  4. Provide a concise structured handoff with issue, evidence, attempted steps and decision needed

Explanation

Correct Answer

D:

Structured escalations let the human act on the actual unresolved choice. An uninformative handoff wastes time and increases the chance of repeating prior work.

Incorrect Answers

A:

Observable criteria are more actionable than a model's unsupported self-confidence score; the unsatisfied requirement is preparing an actionable human escalation, not operationalizing uncertainty-based escalation.

B:

Fraud indicators change the permitted handling of customer accounts; in this scenario, routing suspected fraud out of standard support is secondary to preparing an actionable human escalation.

C:

When considering communicating a pending human approval accurately, transparent status respects the user's need for clarity without misrepresenting incomplete action; the requirement for preparing an actionable human escalation remains unmet.

Question 374

A Markdown-only editorial rule makes source-code review responses verbose. Which repair is appropriate?

  1. Choose a rule with glob patterns matching the relevant source extensions
  2. Move writing-style guidance into a documentation-path rule
  3. Split Python and TypeScript lint guidance into separate files but leave Markdown editorial instructions globally loaded
  4. Refresh rule globs to the new directory structure in the same refactor

Explanation

Correct Answer

B:

Documentation conventions are meaningful when documents are the target. A scoped rule avoids imposing prose instructions on code analysis.

Incorrect Answers

A:

Conditional rule metadata can select the file types that need a convention; this concerns selecting source file types for security guidance, leaving the requirement for limiting editorial guidance to documentation edits outstanding.

C:

Separating code-language conventions does not restrict a Markdown-only editorial instruction. That text must be attached to Markdown and documentation paths instead of remaining global.

D:

Conditional instruction matching depends on current paths; this can serve maintaining globs after a directory move, but leaves the requirement for limiting editorial guidance to documentation edits unmet.

Question 375

An analyst retries a deterministic schema error from an upstream worker without changing its input. What recovery policy is needed?

  1. Test the worker's claimed completion against authoritative tool status
  2. Begin by propagating a sanitized error category and protected correlation reference
  3. Block the publication gate whenever mandatory validation fails
  4. Classify schema mismatches as repairable-input defects rather than transient outages

Explanation

Correct Answer

D:

Schema failures typically persist until the contract or payload changes. Repeating the same request does not address the underlying structural mismatch.

Incorrect Answers

A:

Subagent prose should not override an explicit failed execution record; that serves verifying delegated completion against real error state, whereas the case requires stopping futile retries of invalid worker payloads.

B:

Because error propagation should preserve recovery information without spreading secrets, the measure supports redacting sensitive details in propagated errors rather than the needed stopping futile retries of invalid worker payloads.

C:

Successful generation is distinct from successful verification; its benefits for honoring validation failures during workflow completion do not resolve the need for stopping futile retries of invalid worker payloads.

Question 376

A CI job prints the full authentication token in a Claude Code log. What should the pipeline change?

  1. Give relevant migration files and compatibility criteria with the diff
  2. Prepare proposed changes in an isolated workspace or pull request for review
  3. Request file path, line range and finding rationale in a validated result schema
  4. Redact secrets and keep tokens in the runner's protected secret store

Explanation

Correct Answer

D:

Build logs are often retained and widely visible. Secrets should not appear in prompts, stdout or artifacts, even when used by authorized integrations.

Incorrect Answers

A:

Reviewing only altered lines can miss deployment sequencing and consumers; the stated problem requires keeping CI credentials out of generated logs rather than providing dependency context for migration review.

B:

Generated tests may be incorrect or brittle; a method suited to isolating generated CI code changes does not meet the need for keeping CI credentials out of generated logs.

C:

For generating location-specific PR findings, location-aware structured findings allow a bot to attach actionable comments; however, this requirement concerns keeping CI credentials out of generated logs.

Question 377

A research plan includes search, evidence checking and report publication. Which handoff prevents fabricated citations?

  1. Provide a concise case summary, relevant evidence and the escalation reason
  2. Save workflow checkpoints and skip already-confirmed idempotent stages
  3. Require a citation audit to pass before publishing the report
  4. Set out a post-action reconciliation stage before marking the case resolved

Explanation

Correct Answer

C:

A publish gate makes source validity an explicit dependency. A writer's fluent output must not override failed or absent evidence verification.

Incorrect Answers

A:

Although a meaningful handoff preserves the context the reviewer needs to act, avoiding repeated questioning and incorrect policy decisions, the choice addresses transferring sufficient escalation context and not the requested gating publication on source validation.

B:

Stage-level state permits resumable orchestration; the deciding condition is gating publication on source validation, whereas this action concerns restarting from a durable workflow checkpoint.

D:

Workflow success should depend on confirmed downstream state, not just a tool invocation; this addresses verifying all required stages of case resolution, while the question is about gating publication on source validation.

Question 378

A contract date is ambiguous between day-month and month-day formats. What safeguard is best?

  1. Compute again totals and reject or review arithmetic inconsistencies
  2. Test extracted references against authoritative business records
  3. Preserve the original string and flag ambiguity until locale evidence resolves it
  4. Focus on deduplicating extracted records using source identifiers and document context

Explanation

Correct Answer

C:

A date parser cannot safely invent locale rules. Recording the source and uncertainty prevents silently reversing months and days in downstream systems.

Incorrect Answers

A:

When considering checking arithmetic consistency in extracted records, semantic checks compare extracted values to business invariants; the requirement for handling ambiguous date interpretations remains unmet.

B:

When addressing checking referential integrity after extraction, referential checks establish that identifiers and relationships are real; the present task instead calls for handling ambiguous date interpretations.

D:

Overlapping page captures can lead to double counting; the unsatisfied requirement is handling ambiguous date interpretations, not removing duplicate extraction artifacts.

Question 379

A report API requires the keys status, evidence and uncertainty with no unrecognized keys. What schema definition matters?

  1. Express line items as an array with a defined item object schema
  2. Check source-level correctness even when the output parses
  3. Establish a nullable field explicitly and use a documented missing-value convention
  4. Mark required properties and disallow additional properties in the output schema

Explanation

Correct Answer

D:

Required fields and closed object shapes prevent silently missing or invented keys. Structural conformance alone does not prove that evidence values are true.

Incorrect Answers

A:

The declared array type tells the consumer how to iterate through repeated records; the action supports constraining collection shape in extraction output but falls short of forbidding missing and unexpected JSON fields in this case.

B:

A schema constrains representation, not factual truth; this can serve distinguishing schema conformance from factual accuracy, but leaves the requirement for forbidding missing and unexpected JSON fields unmet.

C:

A deliberate null representation lets consumers distinguish unknown data from malformed output; that addresses representing legitimate missing data in a schema, whereas this case calls for forbidding missing and unexpected JSON fields.

Question 380

A batch completes with succeeded, errored and expired records. What result-handling logic is required?

  1. Confine batch result access and enforce the organization's data retention policy
  2. Find expiration and resubmit eligible unfinished requests separately
  3. Inspect each request outcome and route failures for targeted recovery
  4. Adopt asynchronous batching and budget for deferred results

Explanation

Correct Answer

C:

An ended batch does not imply every item succeeded. Per-request result types let operators retry failed items without discarding successful work.

Incorrect Answers

A:

Bulk result files can concentrate sensitive information; its benefits for protecting sensitive bulk-processing results do not resolve the need for handling partial success within a batch.

B:

Deferred processing has time limits and can return expired outcomes; supporting recovering expired batch requests cannot replace the required handling partial success within a batch.

D:

Batch processing can reduce unit cost at the expense of immediate completion; that serves trading response latency for bulk-processing cost, whereas the case requires handling partial success within a batch.

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