Skip to content

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

Task 5.5: Architectural Controls for Compliance Obligations

Matching controls (data residency and deployment surface, retention and zero data retention, PII detection and redaction, audit logs, tenant isolation) to a compliance obligation and choosing the set that proves it is met.

Study it

  • Compliance controls: residency, retention and zero data retention, PII redaction, audit logs, tenant isolation

    Partly covered by: Finding and Masking PII

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 healthcare software vendor's policy says that session transcripts holding source code and test data must not stay on developer laptops longer than 7 days. Developers use the Claude Code CLI, and some continue sessions in Claude Desktop. The platform team controls managed settings on every laptop. Which control set evidences the obligation?

  1. ASet cleanupPeriodDays to 7 and desktopSessionCleanupPeriodDays to 7 in managed settings
  2. BSet cleanupPeriodDays to 7 in managed settings, which removes every transcript on the laptop after a week
  3. CSet cleanupPeriodDays to 0 in managed settings, so that Claude Code keeps no transcripts on the laptops at all
  4. DCommit desktopSessionCleanupPeriodDays set to 7 in each repository's .claude/settings.json, so that every project enforces it
Show the answer and why
  • ASet cleanupPeriodDays to 7 and desktopSessionCleanupPeriodDays to 7 in managed settings

    Correct

    Desktop and Cowork transcripts are kept past cleanupPeriodDays by default, and the desktop key deletes them once older than both limits.

  • BSet cleanupPeriodDays to 7 in managed settings, which removes every transcript on the laptop after a week

    Incorrect

    Sessions started or last continued in Claude Desktop or Cowork are kept past this period by default.

  • CSet cleanupPeriodDays to 0 in managed settings, so that Claude Code keeps no transcripts on the laptops at all

    Incorrect

    Setting 0 fails validation; the minimum is 1, and another setting stops transcripts from being written.

  • DCommit desktopSessionCleanupPeriodDays set to 7 in each repository's .claude/settings.json, so that every project enforces it

    Incorrect

    Claude Code ignores that key in project and local settings, and it acts only together with cleanupPeriodDays.

Claude Code clients store session transcripts in plaintext under ~/.claude/projects/ for 30 days by default; cleanupPeriodDays changes that period, with a minimum of 1. Transcripts of sessions started or last continued in Claude Desktop or Cowork are kept past this period unless desktopSessionCleanupPeriodDays is set, and that key deletes a transcript only once it is older than both limits. It is read from user or managed settings, not project or local settings.

Question 2 · choose 1

A company runs Claude Code only through Amazon Bedrock. Its policy says no traffic from developer machines may reach Anthropic's endpoints, and developers set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC. The egress proxy still logs requests to api.anthropic.com each time Claude uses WebFetch. What stops these requests while keeping control over which sites Claude reaches?

  1. ASet DISABLE_TELEMETRY=1, since the requests carry the usage metrics that Claude Code sends to Anthropic
  2. BSet DISABLE_ERROR_REPORTING=1, since error reports still go out on Bedrock
  3. CBlock api.anthropic.com at the proxy, so that WebFetch fetches pages without consulting Anthropic
  4. DSet skipWebFetchPreflight to true, and limit the domains WebFetch may reach with permission rules
Show the answer and why
  • ASet DISABLE_TELEMETRY=1, since the requests carry the usage metrics that Claude Code sends to Anthropic

    Incorrect

    Metrics are off by default on Bedrock; the requests come from the WebFetch domain safety check.

  • BSet DISABLE_ERROR_REPORTING=1, since error reports still go out on Bedrock

    Incorrect

    Error reports are off by default on Bedrock and go to a third-party error tracking service.

  • CBlock api.anthropic.com at the proxy, so that WebFetch fetches pages without consulting Anthropic

    Incorrect

    If the network blocks api.anthropic.com, WebFetch requests fail until the domain is allowed or the check is skipped.

  • DSet skipWebFetchPreflight to true, and limit the domains WebFetch may reach with permission rules

    Correct

    The hostname check runs on every provider and ignores the nonessential-traffic variable; this setting turns it off.

Before fetching a URL, the WebFetch tool sends the requested hostname to api.anthropic.com to check it against Anthropic's safety blocklist. The check runs whichever model provider is used and isn't affected by CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC; blocking the domain makes WebFetch fail. Setting skipWebFetchPreflight to true in settings turns the check off, and the documentation suggests combining that with WebFetch permission rules to restrict which domains Claude can reach. On Bedrock, metrics, error reporting and bug reporting are already off by default.

Practice domain 5 →Practice all domains →