Course map

Topic 175 / Core

Regions and availability zones

Chapter 11.1 · Cloud Fundamentals

What and why

A cloud provider's infrastructure spans many physical datacenters; a system that lands entirely in one building has that building as a single point of failure. Providers organize datacenters into regions — independent geographic areas, isolated from each other for fault and data-residency purposes — and, within a region, availability zones (AZs) — physically separate datacenters with independent power, cooling, and networking, close enough for low-latency synchronous replication. Builds on: → 174 (cloud computing fundamentals).

Diagram

Region A                                    Region B (far away,
┌─────────────────────────────────┐          higher-latency link)
│  AZ-a        AZ-b        AZ-c    │  ◄──────────────────────────►
│ [hosts]◄───►[hosts]◄───►[hosts]  │          ┌─────────────────┐
│  own power/network per AZ,       │          │  AZ-a   AZ-b    │
│  low-latency links between them  │          └─────────────────┘
└─────────────────────────────────┘

How it works

  1. A region is chosen for proximity to users and for regulatory/data-residency reasons — data may be required to stay within a jurisdiction.
  2. Each region contains multiple AZs — independent failure domains sharing nothing except the region's identity.
  3. Deploying across at least two to three AZs within a region is the default unit of availability: a load balancer (→ 92) spreads instances across AZs, and a database replicates synchronously or near-synchronously across them (→ 72).
  4. An AZ failure (power, network, a datacenter-level incident) takes down only that AZ's instances; traffic and replicas in the surviving AZs keep serving.
  5. Multi-region is a separate, costlier decision: cross-region links are high-latency, often requiring asynchronous replication (→ 72) and explicit conflict handling — reserved for disaster recovery (→ 195) or genuinely global latency requirements (data → 142, traffic → 196).
  6. "Highly available" by default in cloud design means multi-AZ, single-region — not multi-region, which is reserved for specific requirements.

Practical example

(numbers illustrative). A service runs 6 instances behind a load balancer, 2 per AZ across 3 AZs, with a database replicated synchronously to a standby in a second AZ. An AZ outage removes 2 of 6 instances — a 33% capacity loss absorbed by the remaining 4 — and triggers a database failover to the standby (→ 194); the service degrades but stays up. Without multi-AZ, the same outage looks like a full regional outage caused by one building's failure.

When to use it

  • Use multi-AZ as the default for any production service — usually the same cost as single-AZ with the provider's native tooling, just configured correctly.
  • Use multi-region when regulation requires data residency in multiple jurisdictions, latency to a genuinely global user base demands presence on multiple continents, or disaster recovery requires surviving a whole region's loss (→ 195).
  • Avoid multi-region as a default — the complexity (conflict resolution, cross-region consistency → 129, duplicated infrastructure cost) is rarely justified by "just in case."
  • Failure scenarios: deploying multi-AZ but with a shared dependency that isn't (a single NAT gateway, a database primary with no cross-AZ standby) — the AZ redundancy is theater if one hidden component isn't also redundant.
  • Simpler alternative: single-AZ, single-instance is sometimes fine for an internal tool with a known, bounded downtime tolerance — don't pay for AZ redundancy a workload doesn't need.

Practice

(decision kind, 15 min, paper exercise). Given a service with 4 instances all in one AZ and a single-AZ database, list every single point of failure an AZ outage would create, then redesign the placement across 3 AZs and state what changed about the database's failover behavior. Done when zero single-AZ dependencies remain.

Key takeaway

Availability zones are the default unit of production availability; regions are the unit of geography, residency, and disaster recovery, and crossing them costs real latency and complexity. Done when you can: place a service across AZs correctly and justify whether it needs a second region at all. Used next in → 176 (IAM spans regions/AZs uniformly), → 194 (the AZ-level failover mechanism), → 196 (multi-region traffic, the next step up).

References

None — this topic makes no external claims.

Source directory

Search the guide