Anthropic CCA-F Practice Test 57
Question 560
A defect appears only in the Windows build because the repository selects different parser implementations by build flag. Which exploration step identifies the code actually executed?
- Use the failing tests to narrow affected modules before changing unrelated code
- Trace active build flags and inspect the platform-specific implementation selected at runtime
- Inspect environment-specific configuration layers and precedence at runtime
- Use filename-pattern discovery and then inspect only relevant manifests
Explanation
Correct Answer
B:Repository file names alone do not identify which conditional branch the build uses. Checking configuration values and call paths avoids repairing an inactive implementation. Conditional builds can select different parsers for Windows and other targets. Inspect the relevant build flags and active implementation before altering a generic file that is not compiled on the failing platform.
Incorrect Answers
A:Using test failures to narrow affected modules is useful after observing a failing test, but here the defect's defining clue is platform-specific parser selection. Trace build flags, package conditions and the Windows implementation actually loaded; otherwise generic test triage may overlook the alternate parser.
C:Configuration precedence may explain some CI differences, but the stated Windows-only defect follows conditional selection of parser implementations. Inspect the active platform/build flags and the corresponding code path before changing generic environment values. The failure is an implementation branch, not necessarily a configuration override.
D:Structural search answers where configuration lives without dumping irrelevant file content into context. This alternative does not establish how to trace the active platform-specific execution path in the stated workflow.
Question 561
A monorepo has the corrected shared TypeScript type, but one CI job still resolves an older installed package and reports the obsolete field. What should the investigator examine first?
- Edit the generated client file by hand without checking which package version CI loads
- Trace unrelated database queries and assume the frontend compile error came from the storage layer
- Inspect the CI lockfile, package-resolution path and published workspace package version to identify the stale dependency
- Increase model context size and disregard the package manager’s resolved versions
Explanation
Correct Answer
C:The shared type may already be correct in the source tree while CI imports an older installed or published package. Inspect the lockfile, dependency aliases, workspace linking, package output and CI cache to identify the actual resolved version. Repair dependency resolution or rebuild the published artifact, then run the affected consumer tests against that exact version.
Incorrect Answers
A:Editing a generated file cannot change which dependency version the CI package manager selected. The stale field may originate in a published artifact or cached workspace package rather than current source. Identify the resolved dependency before modifying any generated client.
B:A database call chain is relevant when runtime response data is wrong, but the evidence here is a TypeScript consumer compiling against a different installed package version. Investigate the package manager’s resolved artifact and lockfile before changing business logic or database queries.
D:More context tokens do not update a pinned package or invalidate an obsolete compiled artifact. A dependency-resolution mismatch must be proved using installed package metadata and CI logs. Ignoring the lockfile leaves the obsolete field available to the failing job.
Question 562
A refactor fails only in one package's tests. What should the assistant do?
- Inspect environment-specific configuration layers and precedence at runtime
- Trace active build flags and inspect the platform-specific implementation selected at runtime
- Find all importers and consumers of the changed type and test compatibility
- Use the failing tests to narrow affected modules before changing unrelated code
Explanation
Correct Answer
D:Failure location is valuable evidence. Targeted exploration reduces speculative edits and regression risk. The failing package provides a strong starting point for code search and test isolation. Trace its imports and recent changes, reproduce the failure, and avoid broad modifications until the responsible dependency is established.
Incorrect Answers
A:Runtime configuration precedence matters when different environments select different settings, but this refactor is failing tests in one package. Use those specific failures and their stack traces to limit inspection to affected modules and callers, then test the smallest coherent change before modifying unrelated code.
B:Repository file names alone do not identify which conditional branch the build uses. It would leave the stated need to localize defects through test evidence unresolved.
C:A shared interface has effects beyond its definition. This capability does not directly localize defects through test evidence. A cross-package consumer inventory may be useful after a public API change, but the question says only one package's tests fail. Inspect its test setup and local implementation differences first.
Question 563
An application works locally but fails in CI because a different config value is loaded. What should be traced?
- Trace the field through its service and data-access call chain
- Use the failing tests to narrow affected modules before changing unrelated code
- Trace active build flags and inspect the platform-specific implementation selected at runtime
- Inspect environment-specific configuration layers and precedence at runtime
Explanation
Correct Answer
D:The same code can behave differently when configuration sources differ. Tracing the effective value identifies the cause. Check environment variable and configuration precedence at runtime, comparing local and CI sources. A code diff alone cannot explain why one environment loads a different setting.
Incorrect Answers
A:Tracing a field through a service and persistence layer helps identify data-flow bugs, but the application works locally and fails only where CI loads another configuration. Compare configuration layers, environment variables and precedence at runtime before changing service logic unrelated to the different setting.
B:Failing tests can identify a problem's surface area, yet a local-versus-CI mismatch tied to config loading needs investigation of the active value and how it was resolved. Inspect environment-specific files, overrides and secrets precedence; fixing a test without understanding configuration selection may mask the real defect.
C:Repository file names alone do not identify which conditional branch the build uses. This alternative does not establish how to determine which configuration source wins in each environment in the stated workflow.
Question 564
A renamed public function still gets called through its old name at runtime. Which THREE checks are most relevant before completing the rename? Choose THREE.
- Inspect indirect dynamic dispatch and reflection-based references that static imports may miss
- Trace the field through its service and data-access call chain
- Inspect environment-specific configuration layers and precedence at runtime
- Limit checks to the function’s displayed UI label and ignore generated or external callers.
- Search generated API clients and SDK references for the superseded public symbol.
- Check external API compatibility contracts and exercise runtime integration tests.
Explanation
Correct Answers
A:Indirect references can be constructed at runtime from strings, reflection or plugin registries, so ordinary import searches may not expose them. Inspect those dispatch paths and their configuration values before removing an old public symbol. This check is specifically about runtime name resolution rather than generated SDKs or external contract guarantees.
E:Generated clients can retain old identifiers even after local source imports change. A public symbol can be copied into generated SDK bindings even after source imports have been updated. Rebuild and inspect generated outputs so clients do not keep invoking an obsolete name.
F:Public contracts and integration tests detect indirect callers that static import searches may miss. External callers may depend on API names that local code search cannot see. Review the compatibility contract and run integration tests against the public entry point before declaring the rename complete.
Incorrect Answers
B:Symptoms may originate below the visible handler. The proposed option cannot provide the specific “Inspect indirect dynamic dispatch and reflection-based references that static imports may miss; Search generated API clients and SDK references for the superseded public symbol; Check external API compatibility contracts and exercise runtime integration tests” behavior that the case requires. Indirect references can be constructed at runtime from strings, reflection or plugin registries, so ordinary import searches may not expose them.
C:The same code can behave differently when configuration sources differ. That addresses a different part of the system, not the requirement to find indirect callers before completing symbol renames.
D:A visible label does not establish whether production integrations still call the old symbol. Generated clients, reflection and external API contracts may reference the original identifier even when the local UI looks correct. Excluding these callers would allow a breaking rename to pass an inadequate review.
Question 565
A compiler reports two incompatible versions of the same library type. What should the agent examine?
- Inspect dependency manifests and lockfile resolution across packages
- Use filename-pattern discovery and then inspect only relevant manifests
- Locate the generator source schema and regeneration procedure first
- Find all importers and consumers of the changed type and test compatibility
- Delete the lockfile and guess compatible versions without a dependency analysis.
- Suppress all type-checking errors at the repository level.
Explanation
Correct Answer
A:Conflicting transitive versions can make apparently identical types incompatible. Dependency graph inspection is needed before source edits. A version-skew error can arise when separate packages resolve incompatible versions of the same library type. Inspect manifests and lockfiles before applying local type casts that merely conceal the dependency mismatch.
Incorrect Answers
B:Structural search answers where configuration lives without dumping irrelevant file content into context. This alternative does not establish how to diagnose version skew in repository dependencies in the stated workflow.
C:Generated files are derived artifacts. It would leave the stated need to diagnose version skew in repository dependencies unresolved. Regeneration from an API schema does not fix duplicate dependency versions that produce distinct types. Resolve the package manager's actual version graph.
D:Tracking importers is important when a type's interface changes, but two incompatible copies of the same library type usually suggest dependency-resolution divergence. Inspect package manifests, lockfiles and installed versions to find duplicated or conflicting library identities before broad changes to consumers.
E:Uncontrolled removal of resolution state can introduce further conflicts and nonreproducible builds. The lockfile records a resolved dependency graph. Deleting it before investigating versions can introduce new changes and make builds irreproducible; inspect the conflicting package constraints and choose a controlled resolution.
F:Disabling static checks hides incompatible dependencies rather than resolving them. Global suppression hides type incompatibilities in unrelated modules and can ship unsafe runtime assumptions. Resolve version skew or correct the affected type signatures, then rerun type checks and impacted tests.
Question 566
A code assistant reads an entire monorepo before knowing the target module. What should the agent inspect or persist next?
- Search symbol references, then inspect the relevant implementation and tests
- Persist concise file summaries and change receipts with stable paths
- Build a small interface and call-graph map before modifying files
- Start with narrow path discovery and expand reads only where dependency evidence requires it
Explanation
Correct Answer
D:A code assistant reads an entire monorepo before knowing the target module. The relevant control is to start with narrow path discovery and expand reads only where dependency evidence requires it. Progressive exploration reduces context waste and avoids irrelevant files. Begin with narrow symbol and path discovery before expanding into implementation files.
Incorrect Answers
A:Targeted content search creates a traceable dependency map without ingesting the repository wholesale. The required action is “Start with narrow path discovery and expand reads only where dependency evidence requires it”; the other measure addresses a separate concern. Progressive exploration reduces context waste and avoids irrelevant files.
B:Durable navigation notes avoid repeated context consumption during long debugging work. Here, a code assistant reads an entire monorepo before knowing the target module. Start with narrow path discovery and expand reads only where dependency evidence requires it. Progressive exploration reduces context waste and avoids irrelevant files.
C:A scoped dependency map helps locate integration risks and avoid unrelated edits. Here, a code assistant reads an entire monorepo before knowing the target module. Start with narrow path discovery and expand reads only where dependency evidence requires it. Progressive exploration reduces context waste and avoids irrelevant files.
Question 567
A bug relates to an API method used in many packages. How should the agent narrow codebase exploration?
- Search symbol references, then inspect the relevant implementation and tests
- Persist concise file summaries and change receipts with stable paths
- Rewrite every package speculatively without inspecting the relevant method references.
- Keep focused before/after evidence and relevant regression test results
Explanation
Correct Answer
A:The relevant control is to search symbol references, then inspect the relevant implementation and tests. Targeted content search creates a traceable dependency map without ingesting the repository wholesale. This matters when a bug relates to an API method used in many packages. Save focused diffs, references and regression evidence to avoid rereading unrelated repository sections.
Incorrect Answers
B:Durable navigation notes avoid repeated context consumption during long debugging work. The required action is “Search symbol references, then inspect the relevant implementation and tests”; the other measure addresses a separate concern. Targeted content search creates a traceable dependency map without ingesting the repository wholesale.
C:Speculative edits across all packages maximize churn and make it harder to locate the actual fault. Search uses of the affected API method, inspect the implementations and tests that exercise it, then make a bounded change backed by a regression check.
D:A concise baseline lets a reviewer assess impact without retaining every exploratory read. Here, a bug relates to an API method used in many packages. Search symbol references, then inspect the relevant implementation and tests. Targeted content search creates a traceable dependency map without ingesting the repository wholesale.
Question 568
A coding agent repeatedly rereads the same long source files. Which code navigation or checkpoint strategy is preferable?
- Build a small interface and call-graph map before modifying files
- Persist concise file summaries and change receipts with stable paths
- Keep focused before/after evidence and relevant regression test results
- Start with narrow path discovery and expand reads only where dependency evidence requires it
Explanation
Correct Answer
B:Durable navigation notes avoid repeated context consumption during long debugging work. For this situation, the system should persist concise file summaries and change receipts with stable paths. The factual trigger is a coding agent repeatedly rereads the same long source files. Begin with narrow symbol and path discovery before expanding into implementation files.
Incorrect Answers
A:A scoped dependency map helps locate integration risks and avoid unrelated edits. The proposed option cannot provide the specific “Persist concise file summaries and change receipts with stable paths” behavior that the case requires. Durable navigation notes avoid repeated context consumption during long debugging work.
C:A concise baseline lets a reviewer assess impact without retaining every exploratory read. Here, a coding agent repeatedly rereads the same long source files. Persist concise file summaries and change receipts with stable paths. Durable navigation notes avoid repeated context consumption during long debugging work.
D:Progressive exploration reduces context waste and avoids irrelevant files. This is not a substitute for “Persist concise file summaries and change receipts with stable paths”; that control is necessary in the stated circumstances. Durable navigation notes avoid repeated context consumption during long debugging work.
Question 569
A change spans multiple modules with unclear call dependencies. What should the agent inspect or persist next?
- Keep focused before/after evidence and relevant regression test results
- Start with narrow path discovery and expand reads only where dependency evidence requires it
- Build a small interface and call-graph map before modifying files
- Search symbol references, then inspect the relevant implementation and tests
Explanation
Correct Answer
C:When a change spans multiple modules with unclear call dependencies, the system should build a small interface and call-graph map before modifying files. A scoped dependency map helps locate integration risks and avoid unrelated edits. Save focused diffs, references and regression evidence to avoid rereading unrelated repository sections.
Incorrect Answers
A:A concise baseline lets a reviewer assess impact without retaining every exploratory read. Here, a change spans multiple modules with unclear call dependencies. Build a small interface and call-graph map before modifying files. A scoped dependency map helps locate integration risks and avoid unrelated edits.
B:Progressive exploration reduces context waste and avoids irrelevant files. Here, a change spans multiple modules with unclear call dependencies. Build a small interface and call-graph map before modifying files. A scoped dependency map helps locate integration risks and avoid unrelated edits.
D:Targeted content search creates a traceable dependency map without ingesting the repository wholesale. The required action is “Build a small interface and call-graph map before modifying files”; the other measure addresses a separate concern. A scoped dependency map helps locate integration risks and avoid unrelated edits.
Question 570
A refactor is complete, and reviewers need to compare the old and new behavior without reopening unrelated files. What evidence should the agent retain to validate the change?
- Start with narrow path discovery and expand reads only where dependency evidence requires it
- Search symbol references, then inspect the relevant implementation and tests
- Persist concise file summaries and change receipts with stable paths
- Keep focused before/after evidence and relevant regression test results
Explanation
Correct Answer
D:Capture representative before/after outputs for the changed paths and retain the focused regression test results and artifact revisions. Evidence tied to the modified implementation shows whether the refactor preserved required behavior without forcing a new whole-repository exploration. Include the exact revision and test environment so another reviewer can reproduce any observed regression without guessing which source version ran.
Incorrect Answers
A:Narrow path discovery is useful before editing, but the requested work is now a post-refactor verification receipt. Listing relevant paths does not prove behavior was preserved. Keep before/after evidence, impacted tests and their results for the specific changed interface.
B:Symbol searches locate consumers of a changed function, but the question concerns demonstrating behavioral parity after the refactor. Search results alone cannot show whether new behavior matches the accepted baseline. Preserve representative inputs, outputs and regression results.
C:File summaries help future agents navigate a repository, but they are not a substitute for test evidence of the refactor. Maintain a scoped behavior comparison and recorded regression checks so reviewers can assess what actually changed.