Skip to content

CCAR-P · Domain 5: Governance, Safety, and Risk Management · 16% of the exam

Task 5.1: Guardrail Placement

Checking where a design's guardrails sit against a described misuse path, and choosing the control that closes it while a stated legitimate use keeps working.

Study it

  • Placing guardrails and human checkpoints by misuse path, reversibility and stakes

    Partly covered by: Guardrails

Sample questions

Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.

Question 1 · choose 1

A Claude Enterprise organization routes governed requests to its AI security server through inference hooks. Its current setup:| Setting | Value | | --- | --- | | Hook events in use | prompt | | Validate tool calls | Off | | Failure handling | Block the request | | Verdict timeout | 5 seconds |A red-team test shows a misuse path: a user asks Claude in Cowork to email a confidential spreadsheet to a personal address, and the send-mail tool call runs before anything evaluates it. Prompts asking for legitimate internal emails must keep working. Which change closes the path?

  1. AHave the security server rewrite the prompt to strip external addresses before inference continues
  2. BTurn on Validate tool calls, so that the tool_call event sends tool calls to the server before any of them runs
  3. CHave the security server inspect Claude's final response and deny it when it mentions sending an email
  4. DChange failure handling to allow, so that the server sees more traffic and can learn the misuse pattern
Show the answer and why
  • AHave the security server rewrite the prompt to strip external addresses before inference continues

    Incorrect

    Verdicts are allow or deny; rewriting or redacting a prompt is not supported.

  • BTurn on Validate tool calls, so that the tool_call event sends tool calls to the server before any of them runs

    Correct

    The tool_call event fires when a response contains tool calls, before any runs, in organizations with Validate tool calls on.

  • CHave the security server inspect Claude's final response and deny it when it mentions sending an email

    Incorrect

    The hooked points are the prompt, the tool call and the tool result; the response itself is not checked.

  • DChange failure handling to allow, so that the server sees more traffic and can learn the misuse pattern

    Incorrect

    Failure handling decides what happens when the server is unreachable or times out; it adds no check on tool calls.

Inference hooks have two events. prompt fires once for each governed inference request, before inference starts; tool_call fires when Claude's response contains tool calls, before any of them runs, and only in organizations that have Validate tool calls on. Verdicts are allow or deny, and failure handling only covers an unreachable or slow server.

Question 2 · choose 1

A bank on Claude Enterprise must stop prompts containing customer account data from reaching the model, whichever Claude product an employee uses: claude.ai on the web, Cowork, Claude Code in the CLI or Claude in Chrome. Many employees work from personal devices that IT can't manage, and ordinary prompts must not be slowed by extra steps on the user's side. Where should the control sit?

  1. AIn a UserPromptSubmit hook shipped through Claude Code managed settings to every corporate laptop, scanning each prompt locally
  2. BIn the Compliance API, polling the organization's activity and flagging conversations that contain account data
  3. CIn an endpoint agent installed on each device that blocks pastes of account numbers into any Claude window
  4. DIn inference hooks, which send each governed prompt to the bank's AI security server for a verdict before inference
Show the answer and why
  • AIn a UserPromptSubmit hook shipped through Claude Code managed settings to every corporate laptop, scanning each prompt locally

    Incorrect

    Claude Code hooks govern Claude Code sessions on the machines that receive the settings, not the other products or unmanaged devices.

  • BIn the Compliance API, polling the organization's activity and flagging conversations that contain account data

    Incorrect

    Polling reviews activity after it happened; it doesn't stop a prompt before inference.

  • CIn an endpoint agent installed on each device that blocks pastes of account numbers into any Claude window

    Incorrect

    Unmanaged personal devices can't be required to run it, and the bank needs every product covered.

  • DIn inference hooks, which send each governed prompt to the bank's AI security server for a verdict before inference

    Correct

    The hook runs on Anthropic's servers before the model, across all Claude products, with nothing to install on user devices.

Inference hooks route every governed prompt of a Claude Enterprise organization to an AI security server for an allow or deny verdict before inference runs. Because the hook runs on Anthropic's servers after the request leaves the client, it applies uniformly across claude.ai, Cowork, Claude Code, Claude in Chrome and the other Claude products, with nothing to install or deploy on user devices. A denied request never reaches the model.

Question 3 · choose 1

A team runs Claude Code in bypassPermissions mode inside development containers. A review finds a misuse path: Claude's file tools could read credential files in the developer's home directory, outside the project. The team must keep bypassPermissions for routine project work. Which setting closes the path for the file tools?

  1. AdefaultMode set to plan in the project settings, so that Claude only plans
  2. Bpermissions.blockReadsOutsideWorkingDirectories set to true
  3. CAn allow rule for Read(./**), so that only reads inside the project are approved
  4. DA line in CLAUDE.md telling Claude never to read files in the home directory
Show the answer and why
  • AdefaultMode set to plan in the project settings, so that Claude only plans

    Incorrect

    Plan mode would stop the routine project work the team wants to keep.

  • Bpermissions.blockReadsOutsideWorkingDirectories set to true

    Correct

    With it set, the file tools refuse reads outside the working directories in every permission mode, bypassPermissions included.

  • CAn allow rule for Read(./**), so that only reads inside the project are approved

    Incorrect

    In bypassPermissions mode, calls outside the allow list are approved too.

  • DA line in CLAUDE.md telling Claude never to read files in the home directory

    Incorrect

    CLAUDE.md is guidance Claude tries to follow, not enforced configuration.

To make Claude's file tools refuse paths outside the working directories in every permission mode, including bypassPermissions, set permissions.blockReadsOutsideWorkingDirectories, and blockWritesOutsideWorkingDirectories for writes. The write key doesn't limit shell commands, MCP tools or hook programs.

Practice domain 5 →Practice all domains →