CCDV-F Claude Code Practice Question
Exhibit
Claude: 'I have modified 15 files to upgrade the dependency version. Please verify.' Developer: 'Wait, some of these files are generated build artifacts.'
Refer to the exhibit. What is the most effective way to address the agent's modification of build artifacts?
⚠ Common exam trap
Candidates often try to manually delete build artifacts without updating configuration. This causes the agent to recreate them, leading to a loop of unnecessary modifications and wasted compute resources.
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
✓
Add the build artifact paths to .claudeignore and revert changes.
The correct approach is to stop the agent, exclude the build artifacts via .claudeignore, and revert the changes to those specific files using Git. This protects the integrity of the build process and ensures the agent stays focused on source code. By teaching the agent to respect these boundaries, you optimize future task performance and prevent similar errors in subsequent automated refactoring steps.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Accept the changes and manually delete the artifacts later.
Why it's wrong here
Accepting incorrect changes is poor practice. Modifying build artifacts can lead to inconsistent build states and potentially corrupt the project's output. It is better to address the issue immediately by reverting the changes and ensuring the agent is properly restricted to avoid future occurrences.
- ✓
Add the build artifact paths to .claudeignore and revert changes.
Why this is correct
Updating the .claudeignore file is the standard configuration fix for this issue. It prevents the agent from seeing or touching these files in future tasks. Reverting the changes via Git ensures the repository returns to a clean state, correcting the mistake effectively and efficiently.
- ✗
Tell the agent to be more careful next time.
Why it's wrong here
Simply telling the agent to 'be more careful' is insufficient because it doesn't solve the underlying path-awareness issue. The agent needs explicit boundaries, such as those provided by .claudeignore, to ensure it doesn't repeat the mistake, as natural language feedback alone is not a persistent configuration.
- ✗
Rebuild the project to overwrite the agent's changes.
Why it's wrong here
Rebuilding does not fix the underlying issue of the agent modifying files it shouldn't. It may just mask the problem temporarily. The correct approach is to prevent the modification from happening in the first place through proper file scoping and repository management.
About these practice questions
One of 257 original CCDV-F practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 CCDV-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 CCDV-F exam.