An agent that can edit files and run shell commands is useful and, unmanaged, a little terrifying. Claude Code's permission system is the layer that makes autonomy safe: it decides which actions run freely, which pause for your approval, and which are forbidden outright. The CCA-F exam treats this as core Configuration & Workflows material, and it is one of the least-competitive topics to rank for because most write-ups skip it. This guide covers the rules, the precedence order, and the scenarios the exam builds on them.
Find out where you stand first
Take the free CCA-F sample questions cold (no signup, real exam style), then read on with your gaps in mind. When you are ready for full rehearsal, Preporato's CCA-F practice tests include 6 full-length exams (390 questions in total, domain-proportional, every answer explained) for a one-time $19.99 with lifetime access.
The Three Verdicts: Allow, Ask, Deny
Every action an agent attempts is resolved against permission rules into one of three outcomes:
- allow: the action runs without interruption
- ask: the agent pauses and requests your approval before proceeding
- deny: the action is blocked outright, no prompt
Rules target tools and can be scoped narrowly. Bash(npm run test:*) allows a family of test commands; Read(./.env) can be denied to keep secrets out of context; Edit(./src/**) can be allowed while writes elsewhere still ask. The specificity is the point: you grant fast paths for the safe, common actions and reserve friction for the consequential ones.
The mental split versus hooks (covered in the hooks guide): permission rules are declarative allow/ask/deny lists the system evaluates; a PreToolUse hook is a program that can apply arbitrary logic and block with feedback. Use rules for "these commands are fine, these are forbidden"; reach for a hook when the decision needs conditions a static rule cannot express.
Try 15 CCA-F practice questions free
They come from the CCA-F practice tests, and each option shows its explanation once you answer.
- 6 timed practice exams
- Every answer explained
- A score for each domain
- $19.99 one-time
Settings Precedence: Who Wins
Permission rules (and every other setting) come from several files, and the exam's hardest Configuration questions turn on which one wins. The precedence, strongest first:
- Enterprise managed policy (organization-deployed): overrides everything, non-negotiable
- Command-line flags for the current invocation
- Local project settings (
.claude/settings.local.json, your personal per-project file, gitignored) - Shared project settings (
.claude/settings.json, committed to the repo) - User settings (
~/.claude/settings.json, your global defaults)
More specific and higher-authority sources override broader ones. Two consequences the exam tests:
- A
denyin enterprise policy cannot be undone by a project or user setting. Security boundaries set by the org hold no matter what a repo's config says. - Shared vs local project settings is the collaboration distinction:
settings.jsonis committed so the whole team inherits it;settings.local.jsonis your personal overrides that stay out of git. Putting a personal convenience allow-rule in the shared file (and pushing it) is the kind of mistake a scenario question is built around.
Permission Modes
Beyond individual rules, Claude Code runs in a permission mode that sets the baseline posture:
| Mode | Behavior | Fits |
|---|---|---|
| Default | Ask for consequential actions per the rules | Everyday interactive work |
| Plan mode | Read and analyze only; no edits or commands | Investigation, review, "show me the plan first" |
| Auto-accept edits | File edits proceed without prompting | Trusted, fast iteration on a scoped task |
| Bypass permissions | Skip prompts entirely | Sandboxed automation only; dangerous elsewhere |
Mode and rules compose: even in a permissive mode, a deny rule still blocks. Plan mode is a frequent exam answer for "how do you let the agent investigate a sensitive system without risking changes" because it removes the capability rather than trusting the agent to abstain.
Three questions from the CCA-F practice tests
Your wire-transfer agent must screen each recipient against a sanctions list before calling execute_transfer, and the system prompt says so firmly. In red-team tests, about 1 in 300 transfers skipped screening when the requester stressed urgency ("the CEO needs this in 10 minutes"). Compliance requires screening on every transfer, with no exceptions. What is the most reliable change?
[object Object]
Correct. A programmatic prerequisite looks at recorded state, which no amount of urgency in the conversation can change: the transfer tool refuses to run unless a passing screen for the same recipient is recorded, and returns an error telling the agent to screen first.
A. The final decision still rests on Claude reconciling two outputs, so the same urgency framing can tip it toward approving.
B. Forcing a tool on each turn breaks normal conversation, is not supported on every model and still does not tie the screening result to the recipient being paid.
C. Stronger wording and examples lower the skip rate, but they keep screening in the model's hands, which is what urgency framing exploits. A zero-tolerance rule needs enforcement outside the model.
Your coordinator receives the research subagent's findings, then dispatches the report-writing subagent with the prompt "Using the research above, write the client report." The reports regularly contradict the findings, for example citing a 12% market decline that the research had shown was 3%. What is the most likely root cause?
[object Object]
Correct. A subagent starts with the prompt it is given and nothing else; it does not see the coordinator's conversation. "The research above" points at nothing, so the writer fills the gap from general knowledge. Pass the findings, with sources, in the report agent's prompt.
A. Different snapshots would not explain a report contradicting findings it had been given. The writer never had them.
B. max_tokens limits the length of the response and has no effect on what the prompt can carry.
D. The coordinator had the findings before it dispatched the writer. The problem is what it put in the writer's prompt.
Your returns agent has 22 tools, from lookup_order and check_inventory to generate_label and schedule_pickup. It often picks the wrong tool and calls tools out of order, such as generate_label before process_return. Most conversations move through clear phases: identify the order, decide the remedy, carry it out. What is the primary architectural improvement?
[object Object]
Correct. Workflow-level tools, such as a process_return that also generates the label, remove sequencing mistakes inside a workflow, and exposing the tools for the current phase alone keeps each choice small.
A. Hard-coding each step turns the agent into a script that breaks on cases the orchestrator did not anticipate, and forced tool choice is not available on every model.
B. Examples help with common paths but grow with each new request type and still leave the model choosing among 22 tools.
D. Better descriptions help selection at the margin, but 22 overlapping choices remain, and descriptions do not enforce order.
Full CCA-F set: 6 timed exams, every answer explained, $19.99 one-time.
See the practice testsThe Security Scenarios the Exam Builds
Representative shapes, all resolvable from the rules above:
- "The agent must never read
.envorsecrets/." Adenyon those paths; the safest place is enterprise or shared project settings so it is not one careless local override away from disappearing. - "Let the agent run tests freely but confirm before installs."
allowthe test command family,askonnpm install. - "A junior wants to loosen a security rule the company set." They cannot; enterprise policy outranks project and user settings. This is the exam testing whether you know the precedence direction.
- "Investigate a production incident with zero risk of mutation." Plan mode: capability removed, not merely discouraged.
- "Autonomous CI job editing files unattended." Auto-accept or bypass, but only because it runs sandboxed; the same setting on a dev laptop is the wrong answer.
The through-line the exam rewards: security is layered. Untrusted content can prompt-inject an agent's reasoning, but it cannot rewrite a deny rule or forge an enterprise policy. Hard boundaries belong in the permission and hook layers, not in advisory prose that a clever injection can talk around. This is the same principle the context and reliability material builds on.
Re-scope an over-powered agent to least privilege
Permissions in practice: take a tool-wielding agent with too much reach and constrain it to exactly what it needs, then confirm the excess access is gone.
Key Takeaways
- Every action resolves to allow, ask, or deny; scope rules narrowly to tools and paths
- Precedence, strongest first: enterprise policy > CLI flags > local project > shared project > user settings
- Enterprise
denyrules are absolute; project and user configs cannot override org security settings.json(shared, committed) vssettings.local.json(personal, gitignored) is the team-vs-you split- Permission modes set the baseline; plan mode removes edit capability entirely for safe investigation
- Hard boundaries live in permissions and hooks, never in advisory instructions
The Claude Code course makes you the permission system in a Level 5 interactive resolver, and Preporato's CCA-F practice tests drill precedence and permission scenarios across 390 explained questions.
Frequently asked questions
Sources:
Last updated: July 10, 2026
