Courseiva

CCAR-F Claude Code Configuration and Workflows Practice Question

A security-conscious architect is standardizing how Claude Code is configured across a large engineering organization. Which TWO practices best reduce the risk introduced by project-level configuration that arrives with cloned repositories? (Choose two.)

⚠ Common exam trap

The trap here is believing that the model's built-in caution about dangerous commands is a sufficient control, when configuration-driven execution happens outside that judgment.

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

✓

Use enterprise-managed policy settings to constrain what project-level configuration is permitted to do.

The risk is that cloning a repository imports configuration capable of executing commands. The two complementary controls are inspection and constraint: review what a project declares before trusting it, and use managed policy to cap what project scope can do regardless of its contents. Blanket hook bans remove useful capability without targeting the threat, storing secrets in shared files worsens exposure, and depending solely on model judgment leaves no enforceable boundary.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Store credentials and API keys directly in the project settings file so every session authenticates consistently.

    Why it's wrong here

    Committing secrets to a shared settings file exposes them to anyone with repository access and to history forever. Authentication should come from environment variables or a secret manager, not from version-controlled configuration. This practice increases risk rather than reducing it.

  • ✓

    Use enterprise-managed policy settings to constrain what project-level configuration is permitted to do.

    Why this is correct

    Managed policy sits above project and user scope, so it can restrict or forbid risky capabilities even when a repository ships aggressive configuration. This gives the organization a durable backstop that does not depend on every developer inspecting every clone, which is what makes it effective at scale.

  • ✗

    Ask developers to disable all hooks globally on their machines.

    Why it's wrong here

    A blanket ban removes a legitimate automation mechanism the organization may rely on for formatting, linting, and test gates, while providing no targeted protection. It also pushes teams toward undocumented workarounds. The goal is controlled, reviewed automation, not elimination of the feature.

  • ✓

    Require review of committed configuration and hook definitions before a repository is trusted in developer environments.

    Why this is correct

    Because project configuration can declare hooks and permission rules that execute commands, a cloned repository is effectively executable content. Reviewing those definitions before trusting the repo catches malicious or careless entries at the point where they would first take effect, which is the earliest and cheapest place to intervene.

  • ✗

    Rely on the model to refuse to run any command that looks dangerous, without additional configuration.

    Why it's wrong here

    Model-level judgment is a useful layer but not a deterministic control; it can be influenced by crafted content in the repository. Treating it as the sole safeguard leaves the organization without an enforceable boundary. Configuration review and managed policy provide the mechanical guarantees that model behavior alone cannot.

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 →

How Courseiva writes practice questions · Editorial policy

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.