Free tech learning for everyone, from basics to pro

Cloud ArchitectureCloud SecurityIntermediate

High availability and disaster recovery in the cloud

In short: High availability keeps a service running through common failures, usually by spreading it across availability zones. Disaster recovery restores service after a major event, often in another region. You pick a strategy from your recovery time and recovery point objectives, and you must test it.

Two related goals

High availability versus disaster recoveryHigh availabilityKeeps running through faultsMulti-AZ, load balancingAutomatic failoverSmall, common failuresDisaster recoveryRestores after a disasterBackups, second regionPlanned, tested failoverRare, large failures
Figure 1. High availability handles everyday failures; disaster recovery handles the rare event that takes out a whole site or region.

Both start with business requirements, expressed as two numbers:

  • Recovery time objective (RTO): how long the service may be down. "We must be back within 4 hours."
  • Recovery point objective (RPO): how much data you may lose, measured in time. "We can lose at most 15 minutes of orders."

Lower numbers cost more. Agree them with the business owner per workload, not one value for everything. For availability targets such as 99.9 percent and what they mean in minutes, see nines and SLAs.

High availability in practice

Within a region, use at least two availability zones:

  • Run instances or containers in an auto scaling group or scale set across zones, behind a load balancer with health checks.
  • Use managed databases with a synchronous standby in another zone, such as Amazon RDS Multi-AZ or Azure SQL zone-redundant configuration.
  • Choose zone-redundant storage and gateways; one NAT gateway in one zone is a hidden single point of failure.
  • Make application servers stateless so any instance can take any request.

Disaster recovery strategies

DR strategies by cost and speedBackup andrestorehours to daysPilot lightcore data liveWarm standbyscaled-down copyActive-activenear zero downtime
Figure 2. Moving right, recovery gets faster and data loss smaller, but cost and complexity rise.
StrategyWhat runs in the DR regionTypical RTO / RPO
Backup and restoreOnly backupsHours or more / last backup
Pilot lightReplicated data, core services off or minimalTens of minutes to hours / minutes
Warm standbyA scaled-down working copyMinutes / seconds to minutes
Multi-site active-activeFull capacity serving usersNear zero / near zero

Infrastructure as code helps every strategy, because you can rebuild networks and servers in a new region from templates instead of from memory.

Backups and testing

Replication is not a backup: if data is deleted or encrypted by ransomware, the damage replicates too. Follow the 3-2-1 idea (three copies, two media types, one off-site), and in cloud terms add:

  1. Use a backup service (AWS Backup, Azure Backup) with policies, not ad-hoc snapshots.
  2. Copy backups to another region and, ideally, another account with separate credentials.
  3. Make backups immutable with vault lock or Object Lock features.
  4. Encrypt backups and control who can restore or delete them.
  5. Test restores regularly and run full failover drills at least yearly; measure the real RTO and RPO.

Tip: a DR plan that has never been tested is a guess. Start with a tabletop walk-through, then a restore test, then a planned failover.

Practice

A shop can lose at most 5 minutes of orders and must be back within 30 minutes. Which DR strategy fits best?
Warm standby (or pilot light with fast scaling), with continuous database replication to meet the 5-minute RPO.
Why is database replication not enough on its own?
Deletions, corruption or ransomware encryption are replicated too; you also need point-in-time, immutable backups.
What is the difference between RTO and RPO?
RTO is the maximum acceptable downtime; RPO is the maximum acceptable data loss measured in time.

Key takeaways

  • HA survives common failures; DR recovers from major disasters.
  • Set RTO and RPO per workload with the business.
  • Use multiple zones, health checks and stateless servers for HA.
  • DR strategies range from backup and restore to active-active.
  • Keep immutable, cross-account backups and test restores.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.