Quick revision
The short answer
Now: we decide with product and legal whether to launch for non-EU customers only, delay EU customers, or launch EU customers with a restricted feature set, and we never move EU data into the US region to meet the date. The fix is an EU deployment with its own storage, a tenant directory that routes each tenant to its home region, and a check of every data flow (logs, backups, caches, exports, telemetry, search, ML, third-party processors, support tools). Earlier, the design template should have asked about data classification, residency, retention and access as standard non-functional questions, with legal and security as named reviewers, and residency should become a platform capability.
What to remember
In this answer, we handled a late residency requirement in two parts. Now, we made a business decision about the launch with product and legal, refusing to move EU data to the US, and designed an EU stack with tenant routing through a directory, then checked every data flow from logs and backups to support tools. For the future, we added data classification, residency, retention and access to every design template with legal and security as reviewers, and proposed residency as a platform capability.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Now: we decide with product and legal whether to launch for non-EU customers only, delay EU customers, or launch EU customers with a restricted feature set, and we never move EU data into the US region to meet the date. The fix is an EU deployment with its own storage, a tenant directory that routes each tenant to its home region, and a check of every data flow (logs, backups, caches, exports, telemetry, search, ML, third-party processors, support tools). Earlier, the design template should have asked about data classification, residency, retention and access as standard non-functional questions, with legal and security as named reviewers, and residency should become a platform capability.
Why this question is asked
Data residency, the rule that some data must be stored and processed in a particular jurisdiction, is one of those requirements that is cheap to design for on day one and painful to retrofit two weeks before launch. It also tends to arrive through contracts and legal review rather than through product briefs, which is why engineering teams miss it. Interviewers ask this to see how a senior engineer handles a late, non-negotiable requirement and what they change in the process afterwards. In this answer, we will decide what to do about the launch, design the regional fix, hunt for the data flows that usually leak across regions, and change requirements gathering so this is caught early next time.
1A Quick Recap: What Residency Rules Require
A residency requirement usually has two parts. Storage and processing: the customer's data, including copies, must live on and be computed by machines in the EU. Access: people outside the EU, such as a US-based support engineer, may not view it. The second part is easy to forget, because it is not about where servers are but about who can see data through tools.
Both parts apply to every copy of the data, not only the primary database. Backups, logs that include personal fields, caches, search indexes, analytics exports and data sent to a third-party processor all count. That is what makes a late retrofit hard.
2Decide About the Launch, Not Just the Code
Two weeks is not enough to build and verify a second region properly, so the first decision is a business one, made with product and legal. The options are: launch for non-EU customers only and bring EU customers later; delay the whole launch; or launch EU customers with a restricted feature set that does not store their personal data, if such a subset exists and legal agrees.
The option we must rule out explicitly is quietly onboarding EU customers in the US region 'temporarily'. That breaches contracts on day one, and once data has been copied into US backups and logs it is very hard to prove it has been removed. As a senior engineer, saying this clearly and early is part of the job, even when the date is under pressure.
3Deploy an EU Region and Route Tenants
The technical fix is to run the service in an EU region with its own storage, and to route each tenant to its home region. A tenant directory, a small, highly available global service, maps each tenant id to its home region. It holds no personal data, only the mapping. The edge or API gateway looks up the tenant on each request, often from a cached copy, and forwards it to that region's stack, which has its own database, cache, object storage and processing jobs.
7 messages in order. Play them, or step through them one at a time.
The directory stores only tenant-to-region mappings, so it can be global without holding personal data.
Notice that the US stack never sees the EU tenant's data, even in transit. If a tenant needs to move region later, the directory changes after a controlled migration of their data, not before.
4Check Every Data Flow, Not Just the Database
Moving the database is the easy part. The leaks are usually elsewhere, so we list every place the data goes and check each one. The table shows the common offenders and what to do about them.
| Flow | Typical leak | Fix |
|---|---|---|
| Application logs | Emails or names in log lines shipped to a US log cluster | EU log cluster, or redact before shipping |
| Backups and snapshots | Copied to a US bucket for disaster recovery | Back up to a second EU region |
| Caches and search | Global Redis or search index | Per-region clusters |
| Analytics exports | Nightly export to a central US warehouse | EU warehouse, or aggregates only |
| Telemetry and errors | Error tracker captures request bodies | EU instance, scrub personal fields |
| Third-party processors | Email or ML vendor processes in the US | EU-hosted vendor option, contract check |
| Support tools | US staff open the admin console | Region-aware access control, EU support rota |
Machine learning pipelines deserve special attention: training data is often pulled into one central place, and a model trained on EU personal data may itself be considered to contain that data. For support, we enforce access in the admin tool by the tenant's region and the staff member's location, and log every access so it can be audited.
5Catch It Earlier Next Time
The process failure is that nobody asked. Every design template should include data questions as standard non-functional requirements: what data is stored and how it is classified (personal, sensitive, payment), where it may be stored and processed, how long it is kept, and who may access it. Any design that stores customer data names legal and security as required reviewers, so contract terms like residency reach engineering during design, not two weeks before launch.
6Make Residency a Platform Capability
Finally, we should not make every team solve this again. A platform team can offer region-aware tenancy as a default: the tenant directory, region-pinned storage buckets and databases, per-region logging and backups, and an access layer for support tools that checks region. A new service that uses the platform gets residency by default and only has to declare its data classification. That turns a late surprise into a configuration choice.
7Follow-up questions
How would you prove to an auditor that EU data never left the EU?
With evidence from controls, not promises. We show infrastructure as code that pins storage, backups and logs to EU regions, cloud organisation policies that deny creating resources outside approved regions for EU accounts, network rules that block cross-region data transfer from the EU stack, access logs from support tools showing who viewed EU data and from where, and data-flow diagrams with vendor contracts for every processor. Regular automated checks that scan for EU tenant data outside EU resources add ongoing evidence.
Can the tenant directory itself be a residency problem?
Only if it stores personal data. Keeping it to opaque tenant ids and region codes avoids that, which is why it can safely be global and replicated.
What about a user who travels to the US and uses the product there?
Residency is about where data is stored and processed, so the request is routed to the EU stack regardless of where the user is. The contract may still have rules about access from abroad, which legal should clarify.
8Conclusion
In this answer, we handled a late residency requirement in two parts. Now, we made a business decision about the launch with product and legal, refusing to move EU data to the US, and designed an EU stack with tenant routing through a directory, then checked every data flow from logs and backups to support tools. For the future, we added data classification, residency, retention and access to every design template with legal and security as reviewers, and proposed residency as a platform capability.
Open with
First I would treat this as a business decision, with product and legal, about the launch: launch for non-EU customers only, delay EU customers, or launch them with a restricted feature set if legal agrees.
Then, if they want more
What I would rule out is putting EU data in the US region to hit the date, because that breaches the contract immediately and is very hard to undo once it is in backups and logs.
For the fix, I would deploy the service in an EU region with its own database, cache and storage, and add a tenant directory that maps each tenant to its home region, so the gateway routes every request to the right stack.
Then I would check every data flow, not just the database: logs, backups, caches, search indexes, analytics exports, error tracking, ML pipelines, third-party processors and support tools, and make sure US staff cannot open EU data.
To catch this earlier, every design template should ask about data classification, residency, retention and access, with legal and security as required reviewers for anything storing customer data. And longer term, I would make region-aware tenancy a platform capability so teams get residency by default. For an auditor, I would show region-pinning policies, infrastructure code, network rules and access logs.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "What do you do now, and how should requirements gathering have caught this earlier?": https://scrivio-interview-library.netlify.app/architecture/sd-fundamentals/29ca44a74e/