Quick revision
The short answer
I start by pinning down the legal scope with counsel, because whether remote support access, backups, logs or model training count as processing decides everything else. Then I compare the real options, from a fully separate in-country deployment to a shared platform that keeps personal data in country and processes only anonymised data globally, against the market's revenue, time to market and running cost. Whatever we choose, we inventory every copy of personal data, redesign the global features that assume one data store, and build the capability so the next country is configuration rather than another project.
What to remember
In this answer, we treated in-country residency as a business and organisational decision as much as an architecture one. We started from a precise legal scope, compared separate deployments with a residency-aware shared platform by cost, time and parity, inventoried every copy of personal data including caches, logs, backups and vendors, redesigned support, analytics and models to work inside the boundary, and organised a platform capability so that the next market becomes configuration rather than another project.
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.
I start by pinning down the legal scope with counsel, because whether remote support access, backups, logs or model training count as processing decides everything else. Then I compare the real options, from a fully separate in-country deployment to a shared platform that keeps personal data in country and processes only anonymised data globally, against the market's revenue, time to market and running cost. Whatever we choose, we inventory every copy of personal data, redesign the global features that assume one data store, and build the capability so the next country is configuration rather than another project.
Background to this question
Data residency requirements look like an infrastructure task, put servers in the country, but they reach into almost every team: support, analytics, machine learning, security and on-call. Senior leaders are asked this question because the hard part is not the architecture diagram; it is deciding how much to invest, finding every hidden copy of personal data, and organising the work so it is done once. In this answer, we will go through how to frame the decision, the architecture options and what they cost, the inventory that prevents breaches, the redesign of global features, and the organisational changes, with an example of how the reasoning plays out.
1First, Pin Down What the Law Actually Requires
Residency laws differ in ways that change the architecture by an order of magnitude. Some require only that a copy of the data be stored in the country. Others require that data be both stored and processed only in the country, and the definition of processing may include a support agent abroad viewing a customer record, an on-call engineer running a query, or a model trained on the data.
So the first step is a session with legal counsel, with engineers in the room, that answers specific questions. Which fields count as personal data: names and ids, but also IP addresses and device ids? Does remote viewing from abroad count as processing? How are backups, logs, traces and disaster recovery copies treated? Can anonymised or aggregated data leave the country, and what counts as anonymised? Are there sector rules on top, such as financial regulators? The answers go into a short written scope that the whole programme refers to.
2The Architecture Options and What They Cost
At one end is a fully separate in-country deployment: its own region or provider, its own databases, its own operations, essentially a copy of the product. It is the simplest to prove compliant and the slowest and most expensive to run, and features drift because every release must be deployed and supported twice.
At the other end is a shared platform that is residency-aware: one codebase and control plane, with personal data for this market stored and processed in an in-country cell, and only anonymised or aggregated data flowing to global services. It costs more up front, because many services must learn where data lives, but the second and third countries then become much cheaper.
In between sit hybrids, such as a shared codebase deployed as a separate in-country stack with central tooling. The decision weighs the market's expected revenue, the deadline, and whether more such markets are likely. If this is the first of several, investing in the residency-aware platform usually pays back; if it is a one-off small market, a separate deployment may be the honest choice.
| Option | Time to market | Running cost | Feature parity |
|---|---|---|---|
| Separate in-country deployment | slow (full copy) | high: second stack to run | drifts over time |
| Hybrid: shared code, own stack | medium | medium-high | good if releases are joint |
| Residency-aware shared platform | slower first, fast after | lowest per market | same product everywhere |
| Do not enter (yet) | none | none | lost revenue |
3Inventory Every Copy of Personal Data
Residency breaches rarely come from the main database, which everyone remembers. They come from secondary copies: a cache cluster in another region, a search index fed from the event stream, application logs with email addresses shipped to a central logging service, distributed traces carrying request bodies, analytics exports, nightly backups replicated to a disaster recovery region, and third-party processors such as email, payments or support ticketing.
So before building, we inventory data flows. Each team lists every place their service writes or sends personal data, and we check the list against real traffic, for example by scanning log and event streams for patterns like emails and phone numbers. Every copy gets an owner and a decision: keep it in the country, anonymise it before it leaves, or stop creating it. Third-party processors need contracts and hosting that meet the same rule.
4Redesign the Features That Assume One Place
Support tooling is usually the first to break. If support agents abroad may not view in-country records, we need in-country support staff or a partner, and tooling that runs inside the boundary. Search and analytics move to federated or aggregated designs: in-country pipelines compute aggregates, and only the aggregates join the global dashboards.
Fraud and recommendation models are the subtle case. A model trained on all customers' personal data abroad may count as processing. Options include training a separate model in country, training globally only on anonymised features, or federated approaches where training runs in country and only model updates leave. Each has a quality cost that the product owners must accept knowingly.
5Organise the Work So the Next Country Is Configuration
The organisational change matters as much as the architecture. I would set up a small platform team that owns residency as a capability: a data-location registry that says which region each tenant's data lives in, libraries that route storage calls by that registry, policy checks in CI that flag new data flows leaving a region, and a standard set of in-country building blocks. Product teams then adopt the capability rather than each inventing their own.
I would also make the trade-offs explicit to leadership: one-off cost, yearly running cost, revenue, and what the capability saves when the next market asks. For example, if this market brings 4 million a year and the platform work costs 3 million once plus 1 million a year, it pays back in about a year, and the next country might cost a quarter as much. Framing it that way lets the business choose with eyes open.
- Legal scope with counselwhat counts as personal data and processing
- Inventory every copy of personal datadatabases, caches, logs, backups, vendors
- More residency markets likely?YesBuild residency-aware platformNoConsider separate deployment
- Redesign global featuressupport, search, analytics, models
- Business case and decisionrevenue vs one-off and running cost
- Platform team owns the capabilitynext country is configuration
6 steps in order. Play them, or step through them one at a time.
6Follow-up questions
How do you stop new data flows from breaking residency after launch?
Make it hard to do by accident: storage and messaging libraries route by the tenant's data location, CI checks flag new outbound integrations and logging of personal fields, and a periodic scan of logs and event streams looks for personal data where it should not be. Residency becomes part of design reviews like security.
What if the deadline is too short for the platform approach?
Then I would launch with a separate deployment for this market, with an explicit plan and budget to migrate it onto the residency-aware platform later, and say clearly to leadership that this creates a second stack to run until then.
Who should own residency long term?
A platform team owns the capability and the tooling, a data protection lead owns the interpretation of the rules, and each product team owns compliance of its own services. Shared ownership with no single owner is how residency quietly erodes.
7Conclusion
In this answer, we treated in-country residency as a business and organisational decision as much as an architecture one. We started from a precise legal scope, compared separate deployments with a residency-aware shared platform by cost, time and parity, inventoried every copy of personal data including caches, logs, backups and vendors, redesigned support, analytics and models to work inside the boundary, and organised a platform capability so that the next market becomes configuration rather than another project.
Open with
I'd start with the legal scope, because it changes the architecture by an order of magnitude. With counsel and engineers in the same room, I'd pin down which data counts as personal, whether support staff or on-call engineers viewing data from abroad counts as processing, and how backups, logs and model training are treated.
Then, if they want more
Then I'd lay out the real options: a fully separate in-country deployment, which is easy to prove compliant but expensive and drifts from the main product, or a residency-aware shared platform that keeps personal data in an in-country cell and lets only anonymised or aggregated data flow to global services, which costs more up front but makes later markets cheap.
I'd weigh that against the market's revenue and whether more such markets are coming. Whatever we pick, I'd run an inventory of every copy of personal data, because breaches usually come from secondary copies like caches, search indexes, logs, traces, backups and third-party processors.
Then the global features need redesigning: in-country support access, federated or aggregated analytics, and models trained or served inside the boundary.
Organisationally, I'd create a platform team that owns residency as a capability, with a data-location registry, routing libraries and CI checks, and present leadership with one-off cost, running cost and payback, so the next country is configuration rather than another project.
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 "As the senior technical leader, how do you decide how to enter this market, and what...": https://scrivio-interview-library.netlify.app/architecture/partitioning-and-replication/1a68cfd978/