Skip to the page
Tecyfy

Azure interview question · hard

How can you implement disaster recovery for your Azure data platform, ensuring minimal data loss and downtime in case of an outage?

The short answerDecide the recovery time (RTO) and recovery point (RPO) each part of the platform needs, then give every layer (storage, databases, compute and pipelines) a matching copy in a second region and a tested, scripted way to switch to it.

The full answer

Decide the recovery time (RTO) and recovery point (RPO) each part of the platform needs, then give every layer (storage, databases, compute and pipelines) a matching copy in a second region and a tested, scripted way to switch to it.

1. Storage (ADLS Gen2)

  • Use geo-redundant storage (GRS or GZRS, or RA-GRS and RA-GZRS for read access to the secondary). Replication to the secondary region is asynchronous, so a few minutes of recent writes can be lost.
  • Customer-managed (unplanned) failover works for accounts with a hierarchical namespace; planned failover and object replication do not, so don't plan on those for ADLS Gen2.
  • For curated Delta tables, a controlled copy to a storage account in the second region (Databricks DEEP CLONE or a scheduled copy job) gives a consistent, query-ready copy and protects against accidental deletes, which geo-replication would copy too.
  • Turn on soft delete and versioning where supported.

2. Databases

  • Azure SQL Database: failover groups replicate to another region and give a listener endpoint that follows the failover, so applications don't change connection strings.
  • Synapse dedicated SQL pool: restore points every few hours (an eight-hour RPO) kept for seven days, and a daily geo-redundant backup that can be restored in another region; recovery time depends on size.
  • Cosmos DB: multi-region accounts with automatic failover.

3. Compute and processing

  • Azure Databricks: keep a secondary workspace in the paired region, deployed from the same code (Terraform or Databricks Asset Bundles for jobs, clusters and permissions), and replicate managed tables with Delta deep clone.
  • Data Factory: keep pipelines in Git so a factory can be redeployed in another region; Microsoft may fail a factory over to a paired region in a prolonged outage, but plan your own recovery rather than rely on it. Install self-hosted integration runtimes in both regions.

4. Networking and access

  • Mirror virtual networks, private endpoints, Key Vault secrets and DNS in the secondary region, and use Azure Front Door or Traffic Manager for user-facing endpoints.

5. Runbooks and tests

  • Script the failover order: storage, databases, then compute and pipelines, then point users and reports at the new endpoints.
  • Test regularly, record the real RTO and RPO, and plan failback (resynchronising data to the primary).

6. Balance cost against need Not everything needs hot standby. Raw data might only need geo-redundant storage, curated tables a daily clone, and the reporting database a failover group.

Last updated 16 October 2026

Asked next