10.1 Data Privacy, Zero Data Retention & Tenant Isolation

Key Takeaways

  • Minimize sensitive data before inference; combine pattern and contextual detection, and use separate authorized surrogate mapping only when re-identification is required.

  • Commercial no-training defaults and retention are distinct. Confirm the applicable contract, data handling arrangement, model and feature eligibility.

  • Legacy ZDR, EFS ZDR and HIPAA readiness differ. Batch processing, Files API and hosted Managed Agents are examples of ineligible features, subject to documented exceptions and behavior.

  • Enforce tenant and document authorization independently of provider prompt-cache isolation; scope and reauthorize semantic cached answers, retrieval and telemetry.

Last updated: December 2026

10.1 Data Privacy, Zero Data Retention & Tenant Isolation

Core Principle: Provider retention and training policies are not substitutes for access control, data minimization and privacy safeguards in the application.

Minimize Sensitive Data Before Inference

If raw identifiers are prohibited from leaving the application boundary, telling the model to redact them after inference is too late. Review what the provider receives, including prompt, tools and attachments, and minimize that data before sending it. Pattern and checksum checks can identify structured identifiers; contextual entity detection can help identify names and other sensitive text. Test both on representative data because neither guarantees complete detection.

Reversible Surrogates vs. Redaction

For a task that does not need identifiers, remove them. When the task distinguishes multiple entities without needing their real identifiers, use typed surrogate identifiers and a separately protected mapping. A static redaction placeholder may collapse distinct entities into the same symbol.

  • Scoped surrogates: Map distinct values to labels such as PERSON_1 and ACCOUNT_2 within a request or approved session.
  • Protected mapping: Store the mapping in an access-controlled, encrypted service separate from model context, with a retention limit appropriate to the workflow. Restrict mapping access and log authorized use without raw sensitive values.
  • Authorized resolution: Resolve a surrogate only in trusted code for the permitted resource and purpose. Verify the caller's current authorization and validate the surrogate against the mapping. Do not return raw values to the model or user unless separately authorized and necessary.
TechniqueAppropriate useLimitation
RedactionIdentifier not neededCan lose distinctions and context
Reversible surrogate mappingRelationships must remain usableMapping is sensitive; direct and indirect identifiers can remain
In-model redactionOutput formatting where input is already authorizedCannot prevent transmission to the model

Pseudonymization reduces exposure but does not automatically make data anonymous or remove regulatory obligations. Assess the remaining content and indirect identifiability; under GDPR, Art. 4(5) defines pseudonymization using separately held additional information.

Data Handling: No Training vs. Retention

Anthropic's commercial products do not use submitted inputs and outputs for model training by default; affirmative participation or feedback can change the data use. Consumer services and partner-operated platforms have their own policies. Check the current contract for the actual route. A no-training default does not mean no retention.

Anthropic currently documents three arrangements for its Claude API: Legacy Zero Data Retention (Legacy ZDR), Enterprise Frontier Safeguards ZDR (EFS ZDR, beta), and HIPAA readiness. Compare them against standard commercial retention and verify the feature coverage, model and agreement before sending sensitive information.

Feature on Claude APIZDR eligibility (Legacy / EFS)HIPAA eligibility
Standard Messages API, inline PDFs and citationsYes, subject to arrangement/modelYes, subject to BAA scope
Structured outputs and strict tool useQualified: schema retained for up to 24 hours since last use; EFS restrictions applyYes; do not include PHI in schema definitions
Batch APINo; results retained for 29 days, new batches blocked under EFS ZDR or Human Review offNo
Files APINo; retained until deletion or configured expiryNo
Hosted Managed AgentsNo; transcript retained until deletionNo
Self-hosted Managed AgentsLegacy ZDR exception; verify exact arrangementNo
Direct Messages API MCP connectorNoNo

Under Legacy ZDR, noneligible requests can still succeed and retain data outside the arrangement. Covered Models, including Claude Fable 5.2, ordinarily require 30-day retention and are not eligible for Legacy ZDR unless expressly authorized. EFS ZDR (beta) enables eligible organizations to use Covered Models under its distinct safeguards; sealed safety data is stored in the customer’s own storage. Confirm the applicable arrangement and effective setup. Legal and safety-related retention exceptions can apply, and the customer's own logs/storage are outside provider retention commitments. The existence of ZDR does not establish HIPAA coverage.


Authorization Across Shared Layers

LayerDefensive design
Provider prompt cacheReuses exact supplied input prefixes, not other users' generated answers. Claude API, Claude Platform on AWS and Microsoft Foundry isolate caches at workspace level as well as organization; Google-managed Google Cloud and Bedrock use organization isolation. Check the selected platform. Do not use cache matching as authorization.
Application semantic response cacheScope by tenant, verified entitlement and corpus/version; invalidate on policy or source changes and reauthorize source access on hits.
Vector store or RAGBind tenant scope and document ACLs to authenticated identity; enforce appropriate filtering and validate authorized results before model exposure. Pre-filtering can preserve relevant authorized top-k candidates.
ObservabilitySeparate access and retention for each tenant; use metadata-only tracing by default and minimize sensitive values.

A provider prompt-cache hit requires matching supplied input content; it does not retrieve private prefixes that were absent from the request. Application-layer answer caches instead may skip retrieval completely, so a query-similarity match is not sufficient to return an answer. Reauthorize data on cache hits and enforce access at the backend.

Exam Trap: Data minimization, retention, training use, residency, encryption and access control are different requirements. An approved model alone does not approve its every feature or every connected data store.

Loading diagram...
Ingress PII Tokenization and Ephemeral Vault Rehydration Flow
Test Your Knowledge

A retail bank deploys an internal Claude-powered claims assistant. Engineers propose adding a system prompt instruction telling Claude to replace any 9-digit SSN with [REDACTED] before summarizing the claim, arguing this eliminates the need for an ingress DLP proxy. Why does this design fail an enterprise privacy review?

A

Prompt-based redaction increases output token latency by more than 40% compared to regex scanners

B

Raw SSNs still cross the network boundary and reach external model-serving infrastructure before the model executes the redaction instruction

C

Claude's tokenizer splits 9-digit numbers unpredictably, making [REDACTED] output invalid JSON

D

System prompt instructions cannot disable commercial model training opt-out policies

Test Your Knowledge

A healthcare analytics startup migrates from standard commercial API endpoints to a Zero Data Retention (ZDR) configuration for its synchronous /v1/messages workload, then immediately routes patient intake PDFs through the asynchronous Batch API and vendor-hosted file storage without checking coverage. What architectural risk did the team overlook?

A

ZDR automatically disables AES-256 encryption in transit to reduce server-side latency

B

ZDR increases token pricing by 3x on synchronous inference endpoints

C

ZDR turns off customer-managed KMS encryption keys inside the customer's own vector database

D

Batch and Files API are not ZDR- or HIPAA-eligible on the Claude API; check the applicable arrangement and choose covered features before sending PHI

Test Your Knowledge

A multi-tenant B2B SaaS platform adds a Redis semantic response cache (cosine similarity threshold 0.96) in front of Claude to cut spend by 35%. Two weeks later, a junior contractor at Tenant Beta receives a cached response containing compensation policy exceptions authored for Tenant Alpha's HR Director. Which cache design flaw caused this incident?

A

The semantic cache matched query similarity without current tenant and entitlement scope or source reauthorization

B

The Redis vector index used post-filtering after top-k retrieval instead of HNSW quantization

C

Prompt caching was enabled on a shared system prompt prefix containing global JSON tool definitions

D

The cosine similarity threshold of 0.96 was too strict, causing cross-tenant hash collisions

Test Your Knowledge

A customer support agent uses Claude with tool calling to look up billing records and draft refunds. When engineers replace customer names and account numbers with static [REDACTED] tags at ingress, Claude repeatedly fails to invoke the get_account_ledger tool for the correct customer when two accounts appear in one email. Which ingress pattern resolves this without exposing raw PII to the model?

A

Pass raw account numbers inside a separate developer message marked non-cacheable

B

Disable ingress DLP for account numbers while keeping regex masking on credit card PANs

C

Use distinct typed surrogate identifiers with a separate protected mapping, resolving authorized fields only in trusted tool code

D

Store the raw PII mapping inside the shared vector store namespace so Claude can retrieve it via RAG

Sections you finish are checked off in the contents.