CCDV-F Claude Code Practice Question
Which of the following is an example of an effective natural language instruction for Claude Code?
⚠ Common exam trap
Test-takers frequently choose vague, high-level statements like 'fix my code' rather than specific architectural directions with explicit constraints and modules.
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
✓
Refactor the authentication module to use JWT instead of sessions, keeping existing error handling.
Effective prompts are clear, concise, and provide actionable goals with necessary context. By specifying the file, the intended change, and the desired outcome, a developer helps the agent narrow its focus, leading to more accurate results. This practice reduces ambiguity, minimizes the need for follow-up corrections, and maximizes the efficiency of the AI agent, which is a key skill for any developer working with modern LLM-powered CLI tools.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Fix the code.
Why it's wrong here
This prompt is far too vague. The agent lacks the context to identify which file to fix, what the error is, or what the desired outcome should be. Providing high-level, undefined requests leads to poor performance and increases the likelihood of the agent making incorrect, unwanted assumptions.
- ✓
Refactor the authentication module to use JWT instead of sessions, keeping existing error handling.
Why this is correct
This prompt is excellent because it defines the scope (authentication module), the task (JWT implementation), and the constraint (maintain error handling). This specificity allows the model to reason effectively and produce a focused, high-quality solution that aligns with the developer's exact requirements for the refactoring task.
- ✗
Make it better.
Why it's wrong here
Subjective descriptors like 'better' are not actionable. Without clear metrics or specific goals, the agent cannot determine what 'better' means in the context of the project, leading to erratic results that likely do not satisfy the developer's actual technical needs or project requirements.
- ✗
Delete everything in the src directory.
Why it's wrong here
This is a destructive instruction that lacks professional nuance and safety. While the agent might follow it, such a command is highly dangerous and rarely what a developer actually intends. Prompting should focus on constructive, incremental improvements rather than destructive actions that compromise the project's integrity.
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.