100% Latest & Updated Anthropic CCA-F Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 220
A user requests a dry-run architecture review, but the agent invokes Write on production configuration. Which safeguard or workflow change provides the missing guarantee?
- Run the defined test suite through an authorized command tool and capture the result.
- Restrict the tool set to read and search operations for dry-run analysis.
- Pass the exact quoted path to a safe read operation.
- Use Write for the new artifact after checking its intended path and permissions.
- Use Grep or content search with appropriate scope.
Explanation
Correct Answer
B:Permit safe search, reading and inspection tools while denying Write, Edit and destructive Bash for this dry-run request. Enforce the policy at execution rather than relying on a prompt reminding the model to be careful. A proposed diff can be returned without changing production.
Incorrect Answers
A:Running tests can validate a configuration change, but the user asked for a dry-run architectural review, not a write-and-test implementation. Authorized test execution may still require permissions unrelated to reading. The first boundary is to remove write authority during the review.
C:Quoting a path helps avoid shell parsing errors, but a correctly quoted command could still mutate production if the underlying tool is unrestricted. The failure is the presence of a disallowed Write operation in a review-only task.
D:Write is appropriate for an approved new artifact, but this instruction explicitly limits work to review. Checking destination safety does not authorize deployment. The architecture plan should describe intended changes and reserve actual writes for a later authorized phase.
E:Grep supports read-only code exploration but availability of a harmless tool alone does not prevent the agent from choosing Write. Limit the permission set so only read and search operations can run until the task scope changes.
Question 221
A large log search returns irrelevant millions of matches. Which response is best supported by these operational facts?
- Repeat the same unrestricted Grep search and rely on manually scrolling through the millions of matches.
- Apply a narrow Edit with exact before-content verification.
- Restrict the tool set to read and search operations for dry-run analysis.
- Use Glob-style filename discovery rather than scanning all file content.
- Narrow Grep patterns and file scope before collecting results.
- Prefer scoped editor replacements with reviewable diffs and file filters.
Explanation
Correct Answer
E:Use a targeted Grep expression, limit paths to the relevant service or time range, and cap results so the evidence fits the review context. This reduces noise without deleting underlying logs. Broaden iteratively only when the narrowed result set fails to explain the incident.
Incorrect Answers
A:Repeating the broad query produces the same enormous result set and offers no tighter evidence. The operator needs to constrain both file paths and content patterns before executing a new search. Human scrolling through millions of irrelevant lines is slow and makes relevant signals easy to miss.
B:A narrowly targeted Edit can safely change one known file, but there is no identified edit in this log investigation. The failure is collecting far too many matches. Restrict the initial search expression and directory scope, then inspect a small bounded subset of relevant logs.
C:Read-only permissions prevent accidental modifications during exploration and should be enforced where appropriate. They do not reduce the volume of irrelevant log output. The agent still needs to choose meaningful patterns, search locations, and result limits before collecting millions of records.
D:Filename discovery helps when the target is a known path pattern, but it does not distinguish ordinary log entries from the sought event inside the files. Once candidate logs are located, restrict content search by relevant identifiers, time window, or message pattern.
F:Scoped editor replacements are useful after an error has been located in source code, but the task concerns excessive log search results, not a requested modification. Applying edit safeguards does not improve which log records are retrieved. Narrow the search before considering any change.
Question 222
A program needs to insert a new function into a file at a specific location. Which design adjustment is most suitable under the stated constraints?
- Perform an unscoped text replacement of the first matching token without checking nearby context.
- Use a controlled filesystem move or validated equivalent operation.
- Use Write for the new artifact after checking its intended path and permissions.
- Make a context-anchored Edit using nearby stable text.
Explanation
Correct Answer
D:Use an Edit operation anchored by stable neighboring code with unique matching context; check the diff and run appropriate tests. This inserts the function at the intended location without rewriting unrelated source.
Incorrect Answers
A:An exact string replacement without surrounding context can hit a repeated fragment elsewhere in a file or become ambiguous after adjacent edits. It is less reliable for inserting a new function at one specified location.
B:Moving a file is unrelated to inserting a function into its source. It changes a path rather than editing the code body.
C:Writing a new artifact may be correct for a new file, but wholesale replacement of an existing source file risks losing unrelated changes or formatting.
Question 223
A developer uses an unguarded Bash sed replacement across every repository file. What targeted change avoids repeating this failure?
- Discover file paths and inspect only relevant manifests and source modules.
- Use filename matching to locate documentation first, then read the relevant files.
- Prefer scoped editor replacements with reviewable diffs and file filters.
- Use the authorized Bash/command runner for executable tests and inspect exit status.
Explanation
Correct Answer
C:Use file-scoped, context-anchored replacements with an expected match count, and inspect diffs before accepting the patch. Then run focused tests to catch accidental semantic changes.
Incorrect Answers
A:Listing relevant files before editing is useful reconnaissance, but it does not restrict an already configured repository-wide substitution. The edit mechanism itself must honor selected files and exact targets.
B:Finding documentation paths is appropriate when searching for docs, not for replacing source code safely. Documentation discovery does not prevent collateral substitutions.
D:A command runner can execute tests, but a test pass does not guarantee no unrelated file was modified by the broad sed expression. Guard the edit scope and inspect the actual diff first.
Question 224
An agent needs to know whether a test output exists before reading it. Which corrective action most directly addresses the observed failure?
- Pass the exact quoted path to a safe read operation.
- Use a bounded path existence or Glob check before opening the file.
- Use Glob-style filename discovery rather than scanning all file content.
- Use Grep or content search with appropriate scope.
Explanation
Correct Answer
B:Use a bounded file existence check or Glob for the known output path, then read only if present. If absent, report an incomplete test or generation step instead of inventing output content.
Incorrect Answers
A:Quoting the path makes a subsequent read syntactically safe, but the file may not exist after a failed test. Quoting does not establish output presence.
C:Broad filename discovery is useful when the output location is unknown, but the case only asks whether a specific test artifact exists. Scope the check to that expected path.
D:Grep searches file content, and it will fail or waste effort when the intended output has not been created. The first decision is path existence, not searching lines in a non-existent file.
Question 225
A tool call proposes executing untrusted content copied from a webpage. Which implementation choice best closes the specific gap described?
- Run the defined test suite through an authorized command tool and capture the result.
- Use Read to inspect the exact local content before editing.
- Treat retrieved command text as data and require local validation before Bash execution.
- Use the authorized Bash/command runner for executable tests and inspect exit status.
- Use Glob-style filename discovery rather than scanning all file content.
Explanation
Correct Answer
C:A tool call proposes executing untrusted content copied from a webpage. Search results cannot grant permission to run arbitrary shell instructions. Search results cannot grant permission to run arbitrary shell instructions. To meet the stated requirement, the system must treat retrieved command text as data and require local validation before Bash execution.
Incorrect Answers
A:A tool call proposes executing untrusted content copied from a webpage. A syntactically valid edit is not evidence of correct runtime behavior. The important technical distinction is that search results cannot grant permission to run arbitrary shell instructions. This action would run the defined test suite through an authorized command tool and capture the result instead of treat retrieved command text as data and require local validation before Bash execution, so the original fault would persist.
B:A tool call proposes executing untrusted content copied from a webpage. A file read grounds the change without running unrelated shell commands. Search results cannot grant permission to run arbitrary shell instructions. The option covers use Read to inspect the exact local content before editing, but the actual correction requires the system to treat retrieved command text as data and require local validation before Bash execution. That difference determines why this choice does not resolve the incident.
D:Read-only file tools cannot prove whether code actually compiles or executes successfully. The stated situation is that a tool call proposes executing untrusted content copied from a webpage. Search results cannot grant permission to run arbitrary shell instructions. The alternative would use the authorized Bash/command runner for executable tests and inspect exit status, but the implementation still must treat retrieved command text as data and require local validation before Bash execution to correct that specific failure.
E:A tool call proposes executing untrusted content copied from a webpage. Search results cannot grant permission to run arbitrary shell instructions. Path matching identifies candidate files quickly when the search criterion is the filename. Performing the proposed action to use Glob-style filename discovery rather than scanning all file content would not treat retrieved command text as data and require local validation before Bash execution; the actual fault would remain possible.
Question 226
A repository’s maintainers want every Claude Code session to know the approved test command and the contribution conventions, while one engineer has a personal preference about terminal colors. Select TWO configuration choices that respect the right instruction scope.
- Commit project-wide test and contribution instructions into the repository’s shared CLAUDE.md.
- Keep the engineer’s private terminal-color preference in personal user-scoped configuration, not shared repository instructions.
- Put the shared test commands only in one developer’s private home-directory instruction file.
- Commit everyone’s preferred terminal theme to CLAUDE.md and prohibit local overrides.
- Ask every developer to copy test instructions manually into each chat instead of maintaining a repository file.
Explanation
Correct Answers
A:Repository guidance belongs in a file visible to contributors working on that project. A checked-in CLAUDE.md allows Claude Code sessions to discover the same test command and coding conventions regardless of which teammate opens the repository. The guidance should be accurate for the repository and maintained with its development workflow.
B:Display preferences are user-specific and do not affect the repository’s required tests or contribution rules. Keeping that choice in the engineer’s own settings avoids imposing it on colleagues. The distinction helps the shared instructions remain focused on decisions every project contributor should follow.
Incorrect Answers
C:A home-directory instruction file can guide that one person’s session but is not automatically available to other contributors. The next developer can miss the project’s required test command. Repository-wide rules need repository-scoped, versioned instructions rather than an individual workstation default.
D:Personal colors are not a coding-quality or test requirement for the shared project. Forcing a theme through repository instructions mixes individual environment taste with workflow obligations and creates needless friction. The shared file should define reproducible project behavior, leaving UI preferences to user configuration.
E:Repeated copying makes instructions drift and wastes time across sessions. Some collaborators may omit steps or use an outdated command after the test runner changes. A shared project CLAUDE.md provides a versioned, discoverable location for the actual repository convention.
Question 227
A developer has a personal keyboard preference that should not be imposed on the whole engineering team. What should the team change first to resolve this exact failure mode?
- Add the stable instruction to the project's version-controlled CLAUDE.md.
- Remove or version-expire the obsolete instruction through review.
- Place the preference in user-scoped Claude configuration, not project CLAUDE.md.
- Put mandatory, stable agent operating requirements in the effective CLAUDE.md hierarchy.
Explanation
Correct Answer
C:Personal instructions should not alter shared repository conventions for every contributor. Here, a developer has a personal keyboard preference that should not be imposed on the whole engineering team. Personal instructions should not alter shared repository conventions for every contributor. Resolving the exact observed failure requires the system to place the preference in user-scoped Claude configuration, not project CLAUDE.md.
Incorrect Answers
A:A developer has a personal keyboard preference that should not be imposed on the whole engineering team. Repository instructions can be discovered by team members when they open work in the project. Personal instructions should not alter shared repository conventions for every contributor. The suggested action would add the stable instruction to the project's version-controlled CLAUDE.md; it does not place the preference in user-scoped Claude configuration, not project CLAUDE.md, which is the necessary correction for the observed fault.
B:A developer has a personal keyboard preference that should not be imposed on the whole engineering team. Stale persistent directions can cause future agents to follow outdated deployment constraints. The important technical distinction is that personal instructions should not alter shared repository conventions for every contributor. This action would remove or version-expire the obsolete instruction through review instead of place the preference in user-scoped Claude configuration, not project CLAUDE.md, so the original fault would persist.
D:A developer has a personal keyboard preference that should not be imposed on the whole engineering team. General documentation is useful context but may not be loaded as an instruction unless referenced. Personal instructions should not alter shared repository conventions for every contributor. The suggested action would put mandatory, stable agent operating requirements in the effective CLAUDE.md hierarchy; it does not place the preference in user-scoped Claude configuration, not project CLAUDE.md, which is the necessary correction for the observed fault.
Question 228
One subsystem uses a different naming standard from the repository root, and the top-level instruction causes conflicts. Which safeguard or workflow change provides the missing guarantee?
- Replace the repository-wide naming standard with this subsystem’s convention, forcing every unrelated folder to use it as well.
- Put the subsystem-specific convention in an appropriate nested CLAUDE.md or scoped rule.
- Document the exception only in a pull-request comment but leave both the conflicting root and nested effective instructions unchanged.
- Remove secret values from shared instructions and reference approved secret-management mechanisms.
Explanation
Correct Answer
B:More local instructions can express conventions relevant only to a directory. The application currently faces this failure: one subsystem uses a different naming standard from the repository root, and the top-level instruction causes conflicts. More local instructions can express conventions relevant only to a directory. The required change is to put the subsystem-specific convention in an appropriate nested CLAUDE.md or scoped rule.
Incorrect Answers
A:Applying one subsystem’s exceptional naming rules to the whole repository merely moves the conflict to all other code. Restrict those instructions to the relevant path using a nested project instruction or scoped rule while preserving valid root defaults.
C:A review comment may explain the intended standard, but it does not change instructions Claude actually loads for future sessions. The directory needs an effective scoped rule or nested CLAUDE.md whose precedence is clear.
D:One subsystem uses a different naming standard from the repository root, and the top-level instruction causes conflicts. Instruction files may be committed and loaded into model context, so they must not hold credentials. More local instructions can express conventions relevant only to a directory. The option covers remove secret values from shared instructions and reference approved secret-management mechanisms, but the actual correction requires the system to put the subsystem-specific convention in an appropriate nested CLAUDE.md or scoped rule. That difference determines why this choice does not resolve the incident.
Question 229
A repository CLAUDE.md is 6,000 lines long and displaces code context. Which response is best supported by these operational facts?
- Keep a concise index and link to focused rules instead of inlining all documentation.
- Add the stable instruction to the project's version-controlled CLAUDE.md.
- State non-negotiable safe-execution rules in effective agent instructions and keep the README informational.
- Copy the entire six-thousand-line instruction file into every nested directory CLAUDE.md so all subagents can find it.
Explanation
Correct Answer
A:A repository CLAUDE.md is 6,000 lines long and displaces code context. Excessively long always-loaded instructions consume context and bury task-relevant constraints. Excessively long always-loaded instructions consume context and bury task-relevant constraints. To meet the stated requirement, the system must keep a concise index and link to focused rules instead of inlining all documentation.
Incorrect Answers
B:Repository instructions can be discovered by team members when they open work in the project. In this case, a repository CLAUDE.md is 6,000 lines long and displaces code context. Excessively long always-loaded instructions consume context and bury task-relevant constraints. This option would add the stable instruction to the project's version-controlled CLAUDE.md, but that does not keep a concise index and link to focused rules instead of inlining all documentation.
C:A repository CLAUDE.md is 6,000 lines long and displaces code context. Tool authorization should not depend on ambiguous informal documentation. Excessively long always-loaded instructions consume context and bury task-relevant constraints. The option covers state non-negotiable safe-execution rules in effective agent instructions and keep the README informational, but the actual correction requires the system to keep a concise index and link to focused rules instead of inlining all documentation. That difference determines why this choice does not resolve the incident.
D:Duplicating a large instruction body into nested scopes worsens context pressure. Keep global project commands concise and move long optional material into focused documents or narrowly loaded rules, retaining a short index at the root.
Question 230
An engineer edits project instructions but other developers cannot reproduce the new behavior. Which design adjustment is most suitable under the stated constraints?
- State non-negotiable safe-execution rules in effective agent instructions and keep the README informational.
- Refresh the version-controlled commands and verify them against current CI behavior.
- Commit shared CLAUDE.md changes with review and document their effective scope.
- Add the changed convention only to a local untracked CLAUDE.md and assume the rest of the team automatically sees it.
- Tell each developer to copy the new command into their personal CLAUDE.md without committing a repository-wide version.
Explanation
Correct Answer
C:An engineer edits project instructions but other developers cannot reproduce the new behavior. Version control makes team-wide agent behavior auditable across revisions. Version control makes team-wide agent behavior auditable across revisions. To meet the stated requirement, the system must commit shared CLAUDE.md changes with review and document their effective scope.
Incorrect Answers
A:Tool authorization should not depend on ambiguous informal documentation. In this case, an engineer edits project instructions but other developers cannot reproduce the new behavior. Version control makes team-wide agent behavior auditable across revisions. This option would state non-negotiable safe-execution rules in effective agent instructions and keep the README informational, but that does not commit shared CLAUDE.md changes with review and document their effective scope.
B:Instructions are operational dependencies and need maintenance when tooling changes. The question describes the following failure: an engineer edits project instructions but other developers cannot reproduce the new behavior. Version control makes team-wide agent behavior auditable across revisions. While the alternative would refresh the version-controlled commands and verify them against current CI behavior, it leaves the required step to commit shared CLAUDE.md changes with review and document their effective scope unfinished.
D:A local untracked instruction can affect one developer while never reaching collaborators. Shared behavior requires a reviewed, committed project instruction file with its effective scope documented.
E:Personal memories and home-level configuration can drift and are not reproducible from the repository. A shared, reviewed project CLAUDE.md with explicit scope is the appropriate source for team instructions.
Claude Certified Architect - Foundations (CCA-F) Practice Tests