Scrivio Interview library
ScenarioAdvanced6 min read · updated 13 November 2026

A company tests its region-loss plan by restoring production into a second region from cross-region backup copies, treating the primary region as gone. The database copies are there, but the restore stalls for most of a day.

The team finds that the backups are encrypted with keys that exist only in the primary region, container images live in a single-region registry, and the infrastructure state files and runbooks are stored in the primary region. How do you redesign recovery so that everything it needs is available outside the failed region, and how do you prove it?

We treat everything recovery needs as part of the backup: encryption keys usable in the recovery region, replicated container images, infrastructure code and state, secrets, DNS and certificate access, and the runbooks themselves. These artefacts live in another region and ideally another account with independent access, and the recovery path must not depend on anything that is itself being recovered, such as an identity provider or CI system in the failed region. We prove it with isolated drills that block the primary region entirely and time every step, and check daily between drills that each backup copy exists, a sample decrypts, and images and state are replicated.

Why this question is asked

Copying database backups to a second region feels like the hard part of disaster recovery, and in this test it was done. Yet the restore stalled for most of a day, because the backups were only one of many things the restore needed, and the rest were all in the region that was supposed to be gone. Interviewers ask this question to see whether we think of recovery as a whole system with its own dependencies. In this answer, we will look at why each of the three failures blocks recovery, then redesign the recovery kit, isolate it in another account, remove circular dependencies, and prove it with drills and daily checks.

1Why Each Failure Blocks Recovery

The backups were encrypted, which is right, but with keys that exist only in the primary region's key management service. In a real region loss, the recovery region holds encrypted copies it cannot decrypt, so the data is effectively gone. Cross-region backup copying usually requires choosing or re-encrypting with a key in the destination region, and that step had been missed or misconfigured.

Container images lived in a single-region registry, so the recovery region had data but no application to run. And the infrastructure state files, which tools like Terraform use to know what exists, along with the runbooks describing the recovery steps, were stored in the primary region. So the team could not rebuild the infrastructure from code and could not even read the instructions. Each of these alone could stall recovery for hours.

2The Recovery Kit: Everything Recovery Needs

The fix is to change what we mean by a backup. A backup is not just the data; it is everything needed to turn the data back into a working service. We list that kit explicitly and make sure every item exists outside the primary region.

The recovery kit and where it must live
ItemHow it reaches the recovery region
Database backupsCross-region copies, re-encrypted with a recovery-region key
Encryption keysMulti-region keys or keys created in the recovery region
Container imagesRegistry replication to the recovery region
Infrastructure code and stateReplicated state backend; code in a mirrored repository
SecretsReplicated secret store, tested for access
DNS and certificatesAccess from the recovery account; certificates issuable there
RunbooksStored in the recovery account, readable offline
If recovery needs it, it is part of the backup.

Notice that the kit includes access, not just artefacts. Being able to change DNS records and issue or import certificates in the recovery region is as necessary as having the images, and those permissions are often tied to the primary region's identity setup.

3Another Region, Ideally Another Account

The recovery kit should live in another region and, ideally, another cloud account with restricted and independent access. A separate region protects against region loss. A separate account protects against a different disaster: an attacker or a faulty automation that gains control of the production account and deletes its backups too, which is a common step in ransomware attacks.

The recovery account has its own access controls, its backups are protected against deletion for a retention period (using features like object lock or backup vault locks, depending on the provider), and production credentials cannot modify it. Only a small group has break-glass access, which is the subject of the follow-up below.

4Remove Circular Dependencies From the Recovery Path

Recovery tooling often depends on systems that are themselves being recovered. If engineers log in through an identity provider that runs only in the failed region, they cannot log in. If deployments go through a CI system hosted in the failed region, nothing can be deployed. If the runbook says to fetch a secret from a vault that runs in the failed region, the step cannot be completed.

So we trace the recovery path and remove these loops. Break-glass identities that do not depend on the primary region's identity provider, a minimal deployment path that can run from the recovery account alone, and secrets available there directly. The rule is simple: nothing in the recovery path may depend on anything in the failed region.

Step throughA recovery path with no dependency on the failed region
  1. Break-glass accessrecovery account identities, independent of primary IdP
  2. Recovery runbooksstored and readable in the recovery account
  3. Infrastructure code and statereplicated; applied from the recovery account
  4. Images, keys and secretsreplicated and tested in the recovery region
  5. Data backupscross-region copies, decryptable in the recovery region

5 layers, from the top down. Step through them one at a time.

5Prove It With an Isolated Drill

The test in this scenario found the problems because it pretended the primary region was gone. The next drill should make that real: block access to the primary region with network rules and permission policies, so nothing in the recovery can quietly reach back. Then rebuild production from the recovery region alone and time every step against the RTO: access, infrastructure, data restore, deployments, DNS, verification.

Every step that fails or takes longer than planned becomes a defect with an owner. Drills like this are expensive, so most teams run them once or twice a year, which is why the next section matters.

6Check Continuously Between Drills

Between drills, automated checks run daily. For each backup in the recovery region, a job verifies that the copy exists and is recent, and that its key can decrypt a sample, for example by restoring a small table or decrypting a test object. Another job checks that every image deployed in production also exists in the recovery registry, and that infrastructure state and secrets are replicated.

Any gap raises an alert. This catches the slow drift that defeats recovery plans: a new service that pushes images to only one registry, a new database whose backups were never added to the copy policy, a key rotated in one region but not the other.

Java
# Daily recovery-readiness check (example output)
check backups.orders-db copy 2026-11-13T03:00Z present in recovery region OK
check backups.orders-db sample decrypt with recovery key OK
check images.checkout:4.12 present in recovery registry OK
check images.search:2.7 present in recovery registry MISSING -> alert
check terraform state replicated 14 min ago OK

7Follow-up questions

Who should hold break-glass access to the recovery account, and how is it tested?

A small named group, typically senior on-call engineers from the platform and security teams, with at least two people per time zone, using credentials that do not depend on the primary identity provider, such as hardware security keys registered directly in the recovery account. Use of break-glass access raises an alert to security every time. It is tested on a schedule, for example monthly, by a holder logging in and performing a harmless read action, and in each recovery drill, so we know the credentials work and the people know the steps.

Are multi-region keys a security risk?

They widen where a key can be used, so access policies must be just as strict in the second region. The alternative, a separate key in the recovery region used to re-encrypt copies, works too; what matters is that the recovery region can decrypt without the primary.

How long should drills take?

As long as the real recovery would, measured end to end. The goal is to see the true RTO, not to finish quickly.

8Conclusion

In this answer, we saw that backups are useless without everything else recovery needs: keys, images, infrastructure state, secrets, DNS and certificate access, and runbooks. We moved that kit to another region and account, removed circular dependencies on systems in the failed region, proved it with isolated drills that block the primary, and added daily checks that each copy exists and can be decrypted.

What to say in the interviewAbout 90 seconds aloud

Open with

The lesson is that a backup is not just the data; it is everything needed to turn the data back into a running service. So I would define a recovery kit: database backups, encryption keys that work in the recovery region, either multi-region keys or copies re-encrypted with a key there, container images through registry replication, infrastructure code and its state files, secrets, the ability to change DNS and issue certificates, and the runbooks themselves.

Then, if they want more

All of that lives in another region and ideally another account with independent, restricted access, so neither a region loss nor a compromised production account can remove it, with deletion protection on the backups. Then I would trace the recovery path for circular dependencies.

If engineers log in through an identity provider or deploy through a CI system that only runs in the failed region, recovery stalls, so we need break-glass identities and a minimal deployment path that work from the recovery account alone.

To prove it, I would run an isolated drill that blocks the primary region with network and permission rules, rebuild from the recovery region alone, and time every step against the RTO.

And between drills, daily automated checks confirm each backup copy exists in the recovery region, a sample decrypts with the recovery key, and images and state are replicated, alerting on any gap.

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 team finds that the backups are encrypted with keys that exist only in the primary...": https://scrivio-interview-library.netlify.app/architecture/high-availability/1501ef80d7/