Your security reviewer asks a deceptively short question: “Where does the customer’s data go when someone clicks Ask AI?” If your answer is “to the model provider’s API,” you have not answered it. Data residency for LLM apps covers every place customer content is stored or processed along the path: the model call, the embedding call, the vector index, the cache, the log pipeline, the trace vendor, the evaluation sandbox, and the support staff who can see all of it.
This is an engineering guide, not legal advice. Your counsel decides which rules apply. What engineers can do is produce an accurate data map, choose provider options that match the requirement, and verify that traffic really stays where you say it does.
Residency, sovereignty, and retention are three different asks
Procurement documents blur these terms, so separate them before you shop.
- Residency is where data is stored at rest. “Data stays in the EU” is usually a storage claim.
- Processing location is where inference runs. Storage can be regional while a request is processed elsewhere unless the provider says otherwise.
- Access and sovereignty concern who can read the data, under which jurisdiction, including vendor support staff and sub-processors.
- Retention is how long anything persists. Zero retention reduces residency exposure because there is less at rest to locate.
A contract that guarantees EU storage but permits global processing is not the same as one that guarantees EU processing. Ask for each separately.
Draw the data map first
List every component that touches customer text, and for each one record the region, the vendor, and what is stored. The surprises are almost always outside the model call.
| Component | What it may hold | Question to answer |
|---|---|---|
| LLM inference API | Prompts and completions | Is processing regional? Is anything stored for abuse monitoring, and where? |
| Embedding API | Document chunks, queries | Same region as the LLM call? Or a different vendor entirely? |
| Vector database | Vectors plus payload text and metadata | Which cloud region hosts the index and its backups? |
| Object storage and caches | Raw files, prompt caches, rendered answers | Are replicas or CDN edges crossing borders? |
| Logging and tracing vendor | Full prompts, retrieved chunks, tool arguments | Where are traces stored and who at the vendor can access them? |
| Eval and judge calls | Copies of production samples | Do evaluation jobs run in a different region or account? |
| Human review tools | Transcripts shown to reviewers | Where are reviewers located and what do they download? |
Traces deserve special attention. Observability exists to capture exactly the prompt and context text your policy protects, so a US-hosted tracing SaaS can quietly defeat an EU-only model deployment. The fields worth redacting before they reach logs are covered in PII redaction before prompts and the observability stack for LLM apps.
What the major platforms offer, in their own words
Options change quickly, so treat this as a map of concepts and verify current details in each provider’s documentation.
OpenAI API
OpenAI documents data residency as a project-level setting: eligible organizations choose a region when creating a project, and the setting cannot be changed afterwards (OpenAI data residency guide). For supported endpoints and models, customer content is stored at rest in the selected region, and inference runs there if the region supports regional processing. You call a regional hostname such as eu.api.openai.com with that project’s key. Three details matter for design: system data such as account and usage metadata is outside the guarantee; the support table shows that some regions offer regional storage without regional processing (at the time of writing, Canada, Singapore, South Korea, and the United Kingdom are listed that way, while the US and Europe support both); and, per the docs, data residency endpoints carry a 10 percent price uplift for models released on or after March 5, 2026. Eligibility requires working with sales, so start that conversation early.
Azure and Microsoft Foundry
Microsoft frames the choice through deployment types. Per its documentation, the deployment type determines whether data is processed globally, within a data zone such as the US or EU, or within a specific Azure geography (Foundry deployment types). Global deployments may process data in any region, while data zone and regional types narrow it. The practical rule: never accept the default deployment type without reading what it permits.
Amazon Bedrock
Bedrock separates in-Region inference, geographic cross-Region inference that keeps processing within a defined geography, and global cross-Region inference. AWS describes the geographic option as designed for organizations with data residency requirements (Bedrock geographic cross-Region inference). If you pick a global inference profile for capacity reasons, you may be trading away the residency story.
Self-hosted and open-weight models
Running an open-weight model in your own cloud account in the required region gives the cleanest control, at the cost of operating inference yourself. See the vLLM serving guide for what that entails. Many teams use a hybrid: self-host for regulated tenants, managed APIs for everything else, with routing decided per tenant.
Architecture patterns that keep data where it belongs
- Regional stacks per tenant group. Duplicate the pipeline (gateway, index, model project, log sink) per region and route tenants by a residency attribute set at onboarding. Heavier to run, easiest to explain to auditors.
- Residency-aware gateway. One front door that picks the provider endpoint and key from tenant metadata. Our MCP gateway patterns article shows the same routing idea for tools.
- Pin the index to the model region. Embeddings and vector payloads often contain verbatim customer text. Host them in the same region as inference, and compare options using the vector database comparison for RAG.
- Redact at the border. When some data must cross regions, strip direct identifiers first and keep a re-identification map inside the home region.
- Disable silent failover. A capacity fallback that reroutes EU traffic to a US endpoint during an outage is a residency incident waiting to happen. Fail closed or fail over only within the region.
Vendor questions worth putting in writing
- Where is customer content stored at rest, including backups and replicas? Where is it processed?
- Does any request, response, or derived data (embeddings, caches, abuse-monitoring samples) leave the region? For how long?
- Which sub-processors can access customer content, in which countries, and how will we be notified of changes?
- What is excluded from the guarantee (system data, support access, fine-tuning jobs)?
- What happens during outages or capacity shortages: do requests ever spill to another region?
- Can we get a data processing agreement that names the regions, and audit evidence such as certifications or reports?
- How is deletion handled, and on what timeline does it reach backups?
Put answers in the contract or an order form, not just a sales call. Auditors and enterprise customers ask for documents.
Verify; do not just trust the diagram
Residency claims are testable. Before launch and after every infrastructure change:
- Confirm each client is configured with the regional hostname and the regional project key, with a startup check that fails when the host does not match the tenant’s region.
- Capture egress at the network layer from a staging cluster and list destination hosts. Anything unexpected, such as a telemetry endpoint or an analytics SDK, goes on the map.
- Send a tagged test record through the pipeline and search for it in each downstream store and log sink to see where it lands.
- Review SDK defaults. Some client libraries ship with telemetry or fallback endpoints that are enabled until you turn them off.
- Alert on region mismatches in traces: every span should carry the tenant region and the endpoint region, and a dashboard should show zero mismatches.
This is routine work for a platform team and belongs in the checklist from the LLMOps production guide. If an incident does cross a boundary, the runbook in incident response for LLM apps covers containment and notification steps.
A realistic example: an EU legal-tech assistant
Suppose a document-review product serves law firms in Germany and France. Requirements: contract text must stay in the EU, no US-hosted tracing, and a rollback path. The team creates an EU-region model project and calls the regional host, hosts the vector index in an EU cloud region, runs the embedding job in the same account, sends traces to a self-hosted collector in the EU, and strips client names before sampling transcripts for evaluation. Fallback provider keys exist but are scoped to EU endpoints only. The residual risk list names vendor support access and system metadata, both discussed with counsel. None of this is exotic. It is simply writing down every hop.
Data residency for LLM apps comes down to disciplined mapping and verification. Draw every hop, choose regional options that match the claim you need, remove silent fallbacks, and test the boundary instead of trusting a slide.
FAQ
What does data residency mean for an LLM application?
It means customer content, including prompts, completions, embeddings, caches, and logs, is stored and sometimes processed only in specified regions. Residency usually refers to storage at rest, so confirm processing location and access rules separately with each vendor.
Is data residency the same as zero data retention?
No. Zero retention means the provider does not keep your prompts or outputs after serving the request, which reduces what exists to be located. Residency controls where data lives while it is stored. Some compliance programs want both, and providers may offer them as separate options.
Do embeddings and vector databases count as customer data?
Often yes. Vector payloads usually contain verbatim chunks and metadata, and embeddings can sometimes leak information about source text. Host the index in the required region and treat the embedding API call as another place customer text is processed.
Can observability tools break my residency promise?
Yes. Traces and logs frequently capture full prompts, retrieved passages, and tool arguments. If the tracing vendor stores them in another region, your model deployment may be compliant while your telemetry is not. Redact before logging or self-host the collector in region.
How do I verify that traffic stays in region?
Use regional hostnames and keys with startup checks, capture egress from staging to list destination hosts, push a tagged test record through every component, and alert when traces show a mismatch between tenant region and endpoint region. Re-run after infrastructure changes.
Does choosing a regional endpoint solve compliance on its own?
No. It addresses one technical control. Compliance also depends on contracts, sub-processors, retention, access controls, and your legal basis for processing. Work with legal counsel to decide which requirements apply and document how each control meets them.
AI Generated Apps AI Code Learning Technology
