CCAR-F Claude Code Configuration and Workflows Practice Question
A developer wants to use Claude Code to perform a large refactor across multiple files. What is the most efficient workflow to ensure the model has the necessary context without manual file-by-file reading?
⚠ Common exam trap
Developers often waste context and time by manually feeding every relevant file to the model instead of leveraging autonomous tool discovery.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Provide a high-level description of the refactor and let the model use its search and read tools.
Efficiency in large-scale refactoring depends on the model's ability to discover and navigate the codebase. Rather than the user manually feeding files to the model, the best practice is to describe the scope of the change and allow the model to use its internal tools to explore the relevant dependencies.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Manually run 'cat' on every file in the project and paste the output into the prompt.
Why it's wrong here
Pasting large amounts of code manually is highly inefficient and quickly exhausts the context window with irrelevant information. It bypasses the agent's ability to selectively read only what is necessary, leading to higher costs and potentially confusing the model with too much unrelated data at once.
- ✗
Use the /read-all command to force Claude to load every file into memory at once.
Why it's wrong here
There is no /read-all command, and even if there were, it would be a poor practice for anything but the smallest projects. Forcing a full read of a large repository would exceed token limits and degrade the model's reasoning capabilities. Targeted reading is the core design philosophy of the tool.
- ✓
Provide a high-level description of the refactor and let the model use its search and read tools.
Why this is correct
The most effective way to work with Claude Code is to leverage its agentic nature. By describing the goal (e.g., 'Refactor the Auth module to use the new DB schema'), the model can use its search tools to find relevant files and then selectively read and edit them as needed.
- ✗
Copy the entire project into a single .txt file and upload it using the /upload command.
Why it's wrong here
Uploading a single massive file destroys the structure and metadata that Claude Code uses to understand the project (like directory hierarchy and file types). It also makes it impossible for the model to use its file-editing tools effectively, as it can no longer map changes back to the original source.
About these practice questions
This CCAR-F question is part of Courseiva's 271-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Anthropic exam blueprint
This CCAR-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCAR-F exam.