By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
An HR technology vendor shipped an assistant that summarised employee relations cases. It worked in Ohio. Then the company opened a works council in Germany, and a hospital group in Texas asked to use the same assistant for patient complaints.
The German customer asked where the prompts are stored. The Texas customer asked whether the vendor would sign a business associate agreement, the contract that binds a vendor handling health data. A federal agency asked whether the service sat inside its authorization boundary. The engineering team gave one answer: the data is encrypted. That answer satisfied none of the three.
Each regime forces a different set of decisions. You do not need to memorise law. You need to know which decisions each regime puts in front of an architect, and which evidence someone will demand later.
The useful summary is a decision list, not a legal summary. The General Data Protection Regulation (GDPR) governs personal data in the European Union and similar jurisdictions. The Health Insurance Portability and Accountability Act (HIPAA) governs protected health information in the United States. FedRAMP, the Federal Risk and Authorization Management Program, assesses cloud services sold to United States federal agencies.
| Regime | Decisions it forces | What that means in design | Evidence you keep |
|---|---|---|---|
| GDPR | Lawful basis, purpose, minimum data, retention, rights, transfers | Region of inference and storage, redaction before prompt, deletion that reaches indexes and logs, subject-access route | Processing record, deletion proof, transfer mechanism, retention schedule |
| HIPAA | Business associate agreement, minimum necessary, access, audit | Only covered systems touch the data, per-role access, audit log of every read, de-identification before prompts | Signed agreement, access review, audit trail, disclosure log |
| FedRAMP | Authorization boundary, impact level, continuous monitoring | Which components may receive data, which region serves the call, inherited controls, incident reporting path | Boundary diagram, control mapping, monitoring reports, incident record |
Read the third column as design work and the fourth as audit work. Teams usually do the design work and forget the audit work, then discover at assessment time that a control they built cannot be proven.
Residency asks where data is stored and processed. It appears in three places teams forget: the inference call, the logs, and the retrieval index.
A design that sends prompts to one region and writes logs to another has two residency answers, and the stricter one governs. Audit every hop that touches content: the model endpoint, the observability pipeline, the cache, the vector store, the backup.
The trade-off is latency and cost. Serving a European customer from a European region may cost more and feel slower than routing everything to one large cluster. That cost is usually cheaper than the alternative: a customer who cannot sign.
Minimum necessary means collect and expose only what the task needs. For an architect, that becomes three concrete moves: redact fields before the prompt, request only the document sections the task uses, and scope tool credentials to the rows the task needs.
Retention is harder, because deletion has to reach every copy. A prompt written to a log, an embedding in a vector store, a cached response, a sample copied into a test set. Ask one question in design review: if a data subject asked for erasure tomorrow, which systems would we have to touch, and can we name them?
A FedRAMP-style authorization starts with a boundary: the list of components and services that process federal data. Anything inside the boundary must be assessed. Anything outside must be excluded by design.
That changes architecture. A managed service outside the boundary cannot receive the data, so the design needs an in-boundary substitute, a new region, or a different flow. Decide that before procurement, not during assessment.
Audit evidence is the fourth column of the table. For every control, someone will ask for the artifact: the signed agreement, the access review, the retention schedule, the log showing who read what. If you cannot name the artifact, you cannot claim the control.
Take the HR case assistant and produce one page with four columns: regime, decision it forces, your design choice, and the evidence you will keep. Fill at least two rows for each of GDPR, HIPAA and FedRAMP.
Then highlight the row your team would struggle to evidence today. That row is your next design task, not your next policy document. If you cannot fill a row at all, the correct action is to ask counsel, not to guess.
Key takeaways
Start from the decision a regime forces, not from its text. Each one decides where data lives, who reads it, how long you keep it, and what you must prove.
Residency applies to inference, logs, indexes and backups. The strictest answer in the chain governs.
Minimum necessary and retention are code paths with named systems, not policy statements.
An authorization boundary is an architecture decision: components outside it cannot receive the data.
For every control, name the artifact. No evidence, no control.
This is not legal advice. Confirm every obligation with counsel before you rely on it.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.