CCAR-F Claude Code Configuration and Workflows Practice Question
During an interactive session, Claude Code identifies a bug and proposes a fix that requires executing a shell command to install a new dependency. How does the default permission model handle this request?
⚠ Common exam trap
Candidates often assume that because the agent is 'autonomous', it has full, unchecked permission to execute system commands, forgetting the built-in safety requirement for human confirmation.
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
✓
The tool prompts the user for manual approval before executing any shell command.
Claude Code is designed with a safety-first approach that requires explicit user consent for actions that can modify the system state. By prompting the user for approval before executing shell commands, the tool ensures that the human operator remains in control of the environment and can prevent potentially destructive actions.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Claude Code automatically executes the command if it is deemed safe by the internal classifier.
Why it's wrong here
Relying on an internal classifier for automatic execution poses significant security risks in complex environments. Even seemingly safe commands can have side effects that the model might not fully predict. The default behavior is to prioritize user oversight over automation to prevent unintended modifications to the developer's local system.
- ✓
The tool prompts the user for manual approval before executing any shell command.
Why this is correct
Manual approval is the standard security gate for shell execution in Claude Code. This workflow ensures that developers can review the exact command, understand its implications, and verify its correctness before it runs. It strikes a balance between agentic productivity and the necessity of human-in-the-loop security verification.
- ✗
The command is blocked unless the user has pre-authorized the specific package manager in config.
Why it's wrong here
While configuration can be used to whitelist certain commands, the tool does not block execution entirely by default. Instead, it uses a dynamic prompting system that allows for ad-hoc approvals. Pre-authorization is an optional optimization for advanced users rather than a mandatory requirement for basic shell tool functionality.
- ✗
Claude Code executes the command silently and only reports the output if an error occurs.
Why it's wrong here
Silent execution is contrary to the transparency principles of the Claude Code interface. Providing no feedback during command execution would make it difficult for developers to track changes made to their environment. The tool always provides visible feedback and requires interaction for shell tasks to maintain a clear audit trail.
About these practice questions
One of 271 original CCAR-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 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.