Quick revision
The short answer
We find region-pinned dependencies with an inventory per service generated from evidence, traces, network flow logs and infrastructure code, covering runtime calls, scheduled jobs, data stores, secrets, outbound allowlists, certificates, DNS names and third parties, and classify each one as regional, global or pinned, with every pinned item an owned risk with a fix date. We prove independence continuously with synthetic transactions in the standby and regular network cut-offs from the primary, prevent new pins with platform templates and pipeline checks that create resources in both regions by default, and repeat full failover tests on a schedule, tracking failures as defects per service.
What to remember
In this answer, we saw that region-pinned dependencies hide in configuration, vendor settings and other teams' systems. We found them with an inventory generated from traces, flow logs and infrastructure code, classified them as regional, global or pinned with owners and dates, tested independence with synthetic transactions and network cut-offs, prevented new ones with templates, pipeline checks and leader-elected schedulers, and kept it honest with scheduled failovers.
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.
We find region-pinned dependencies with an inventory per service generated from evidence, traces, network flow logs and infrastructure code, covering runtime calls, scheduled jobs, data stores, secrets, outbound allowlists, certificates, DNS names and third parties, and classify each one as regional, global or pinned, with every pinned item an owned risk with a fix date. We prove independence continuously with synthetic transactions in the standby and regular network cut-offs from the primary, prevent new pins with platform templates and pipeline checks that create resources in both regions by default, and repeat full failover tests on a schedule, tracking failures as defects per service.
Why this question is asked
A failover test where 110 of 120 services moved cleanly sounds like a success, but customers only care about whether checkout works, and it did not for 40 minutes. The three causes, a singleton scheduler, a vendor allowlist and an unreplicated bucket, have one thing in common: each is a dependency on the first region that nobody wrote down. Interviewers ask this to see whether we can turn a list of surprises into a systematic process that scales to 120 services and stays true as they change. In this answer, we will define region-pinned dependencies, build an evidence-based inventory, classify and own the risks, test independence continuously, add platform guardrails, and keep the whole thing honest with scheduled failovers.
1What a Region-Pinned Dependency Is
A region-pinned dependency is anything a service needs that exists, or works, in only one region. The three found in the test are typical examples. The singleton scheduler was a job runner deployed only in region one, so nightly settlement jobs did not run after failover. The payment provider allowlisted only region one's egress IP addresses, the public addresses outbound traffic leaves from, so calls from region two were refused. The document bucket, holding invoices and receipts, was never replicated, so region two could not read it.
None of these show up in a service's own code review. They live in configuration, in other teams' systems and in vendor settings, which is why asking teams from memory finds only some of them.
2Build the Inventory From Evidence
The first step is a dependency inventory per service, generated from data rather than interviews. Distributed traces show which services and endpoints each service calls at runtime. Network flow logs show every outbound connection, including to third parties and to resources in the other region. Infrastructure code, such as Terraform, shows which buckets, queues, schedulers, certificates and DNS records exist and in which regions. Secret stores and certificate inventories show what credentials each service uses.
Joined together, these give one row per dependency per service. Notice that flow logs are particularly good at catching the allowlist kind: they show every vendor address the service talks to, which is the list we need to check with each vendor.
- Distributed tracesservice-to-service and endpoint calls
- Network flow logsoutbound connections, vendors, cross-region traffic
- Infrastructure codebuckets, queues, schedulers, DNS, certificates by region
- Secret and certificate storeswhich credentials exist in which region
- Inventory per serviceone row per dependency, classified and owned
5 layers, from the top down. Step through them one at a time.
Generate it from what systems actually do, not what people remember.
3Classify and Own Every Pinned Item
Each dependency is classified as regional (a copy exists in each region, like a replicated database), global (a service designed to work from any region, like a global DNS provider), or pinned (exists or works in one region only). Regional and global items are fine. Every pinned item becomes an explicit risk with an owner and a fix date.
This turns an invisible problem into a visible backlog. Leadership can see that, for example, 34 pinned items remain across 120 services, which teams own them, and how the number falls over time. The fix for each depends on its type: replicate the bucket, add the second region's addresses to the vendor allowlist, or make the scheduler run in either region.
| Dependency | Class | Fix |
|---|---|---|
| Orders PostgreSQL with cross-region replica | Regional | None |
| Global DNS provider | Global | None |
| Settlement scheduler in region 1 only | Pinned | Leader-elected scheduler in both regions |
| Payment provider allowlist, region 1 IPs | Pinned | Add region 2 egress IPs, test monthly |
| Documents bucket, not replicated | Pinned | Cross-region replication plus a read test |
4Test Region Independence Continuously
An inventory is a model, and models drift. So we test the real thing. Synthetic end-to-end transactions, scripted orders that go through browse, cart, checkout, payment and invoice, run against the standby region every few minutes. A vendor allowlist missing the standby's addresses fails the synthetic payment the same day it is introduced.
We also cut the standby off from the primary on purpose. With network rules that block traffic between the regions, we run the synthetic transactions again and watch for anything that calls back to region one. A service that silently reads a bucket or a config server in the primary will fail here, in a controlled test, instead of during a real outage.
5Guardrails So New Pins Do Not Appear
Finding pins once is not enough; every new feature can add one. So the platform makes the right thing the default. Infrastructure templates create buckets, queues and schedulers in both regions with replication turned on unless a team explicitly opts out with a reason. A pipeline check fails the build when a service lacks configuration, secrets or DNS entries for the second region.
Schedulers deserve their own pattern. Instead of a singleton deployed in one region, scheduled jobs run with leader election, for example ShedLock with a replicated store or a Kubernetes lease, in both regions, so whichever region is active runs the job exactly once. And vendor onboarding includes a checklist item: both regions' egress addresses are allowlisted and tested.
6Repeat Full Failovers on a Schedule
Finally, full failover tests run on a fixed schedule, for example every quarter, not only after an incident. Each test produces results per service: moved cleanly, degraded, or failed, with the cause. Failures are tracked as defects per service with owners, just like the pinned items.
The schedule matters because every release can add a pinned dependency. A test that passed last year says little about today. A regular cadence, combined with the continuous synthetic tests and cut-off tests in between, keeps the 120 services honest as they change.
7Follow-up questions
What do you do about a vendor that cannot accept traffic from a second region?
First, confirm the limit is real; many vendors can add addresses or offer a second endpoint if asked through the right contact. If not, we can route outbound vendor traffic from both regions through stable egress addresses that the vendor allowlists, for example a NAT or proxy layer with fixed IPs that can move between regions. If even that is impossible, the dependency is a known pinned risk: we document it, agree a degraded mode for the journey (for example, queue the requests and send them when the primary returns), and include it in the business's accepted risk list, while looking for an alternative vendor.
Who owns the inventory?
Each service team owns its rows, and a platform or reliability team owns the tooling that generates them and the reporting. Ownership by service keeps fixes with the people who can make them.
How often should the cut-off test run?
As often as it can run safely, ideally weekly against the standby, because it costs little once automated and catches drift early.
8Conclusion
In this answer, we saw that region-pinned dependencies hide in configuration, vendor settings and other teams' systems. We found them with an inventory generated from traces, flow logs and infrastructure code, classified them as regional, global or pinned with owners and dates, tested independence with synthetic transactions and network cut-offs, prevented new ones with templates, pipeline checks and leader-elected schedulers, and kept it honest with scheduled failovers.
Open with
The three failures, a singleton scheduler, a vendor allowlist and an unreplicated bucket, are all dependencies on region one that nobody wrote down, so asking 120 teams from memory will not find the rest.
Then, if they want more
I would build a dependency inventory per service from evidence: traces for runtime calls, network flow logs for outbound connections including vendors, infrastructure code for buckets, queues, schedulers, DNS and certificates, and the secret stores.
Then each dependency gets classified as regional, global or pinned, and every pinned item becomes an explicit risk with an owner and a fix date, so leadership can watch the number go down.
To prove independence, I would run synthetic end-to-end transactions in the standby region every few minutes, and regularly cut the standby off from the primary with network rules to catch anything that calls back.
To stop new pins, the platform should create buckets, queues and schedulers in both regions by default, pipelines should fail when a service lacks second-region configuration, and scheduled jobs should use leader election, like ShedLock or a Kubernetes lease, so they can run in either region. Vendor onboarding would include allowlisting both regions.
And I would repeat full failover tests on a fixed schedule and track failures as defects per service, because every new feature can add a pinned dependency.
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 "The causes were a singleton scheduler that only ran in the first region, a payment...": https://scrivio-interview-library.netlify.app/architecture/high-availability/40cb280bd3/