🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Backup, Geo-Redundancy & Disaster Recovery

Azure Data EngineeringBackup & Recovery⭐ Premium

Advertisement

Backup, Geo-Redundancy & Disaster Recovery

Business continuity with backup strategies, geo-redundancy, and disaster recovery for data engineering

DR Architecture

Backup Configuration

# Point-in-time restore for Synapse
# Azure CLI command
# az synapse sql pool restore \
#   --name SQLPool01 \
#   --workspace-name syn-prod-workspace \
#   --resource-group rg-dataengineering-prod \
#   --restore-point "$(date -d '2 hours ago' +%Y-%m-%dT%H:%M:%S)"

# Cosmos DB continuous backup
import requests
token = credential.get_token("https://management.azure.com/.default")

# Enable continuous backup
response = requests.patch(
    f"https://management.azure.com/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.DocumentDB/databaseAccounts/{account}",
    headers={"Authorization": f"Bearer {token.token}", "Content-Type": "application/json"},
    json={
        "properties": {
            "backupPolicy": {
                "type": "Continuous",
                "continuousModeProperties": {
                    "tier": "Continuous7Days"
                }
            }
        }
    }
)

Geo-Redundancy Configuration

resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
  name: 'stdatalake001'
  location: location
  sku: {
    name: 'Standard_RAGRS'  // Read-Access Geo-Redundant
  }
  kind: 'StorageV2'
  properties: {
    isHnsEnabled: true
    replication: {
      geoReplication: {
        enabled: true
        destinationAccountName: 'stdatalake001-geo'
        destinationRegion: 'westus2'
      }
    }
  }
}

â„šī¸

Pro Tip: Use RA-GRS for ADLS Gen2 to provide read access during regional outages. Use Cosmos DB multi-region writes for automatic failover with zero data loss.

Interview Questions

Q1: Explain the difference between RPO and RTO. A: RPO (Recovery Point Objective) is the maximum acceptable data loss (e.g., 15 minutes). RTO (Recovery Time Objective) is the maximum acceptable downtime (e.g., 1 hour). Both drive DR strategy design.

Q2: How do you test disaster recovery in Azure? A: 1) Simulate regional outage, 2) Initiate failover to secondary region, 3) Verify data integrity, 4) Test application functionality, 5) Measure actual RPO/RTO vs targets, 6) Document findings and improve.

Q3: What is the cost impact of geo-redundancy? A: Geo-redundancy doubles storage costs (primary + secondary). However, the cost of downtime (lost revenue, reputation) often far exceeds the additional storage cost. Use RA-GRS for critical data.

🔒

Premium Content

Backup, Geo-Redundancy & Disaster Recovery

You've previewed the first section. Unlock this full lesson and 900+ advanced tutorials with a Premium plan.

đŸŽ¯End-to-end Projects
đŸ’ŧInterview Prep
📜Certificates
🤝Community Access

Already a member? Log in

Advertisement