Understanding Failure Domains and Availability Zones
This lesson explains failure domains and how to remove single points of failure.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the failure domains in Azure.
- Distinguish zonal from zone-redundant services.
- Identify single points of failure in a design.
Failure domains
Resilient design begins by asking which failures a workload must survive. Azure has a series of nested failure domains. A server or rack failure affects a small number of machines. A datacenter failure affects everything in the building, and an availability zone is one or more physically separate datacenters with independent power, cooling and networking. A region is a set of datacenters deployed within a latency-defined perimeter, and regional failures are rare but serious.
Each mechanism protects a particular domain. Availability sets address racks, availability zones address datacenters, and multi-region designs address regions. A design should state the domain it addresses, and should go no further than the requirements demand.
Mechanism and failure domain
Zonal and zone-redundant
Azure uses two terms for zones, and the difference determines who does the work. A zonal resource is deployed to a single availability zone that the customer selects. If that zone fails, the resource fails, so the customer must deploy instances in other zones and arrange failover. A zone-redundant resource is replicated or distributed across zones by the service itself, and a zone failure is handled automatically.
Zone-redundant services are preferable when they meet the requirement, because Azure handles the failover. Zonal deployment is useful where latency between tiers matters, or where a service does not offer zone redundancy. Not all regions have availability zones, which is a design constraint in itself.
Zonal or zone-redundant?
Removing single points of failure
A workload is only as available as its weakest dependency. Redundant web servers do not help if all use one database in one zone, or if a shared DNS or identity dependency fails. A review of the design should trace each request through all components, and ask what happens if each one fails.
Health is an equally important part of high availability. A load balancer must be able to detect failed instances through health probes, and an application should expose a meaningful health endpoint. Resilience patterns inside the application, such as retries, circuit breakers and queue-based load levelling, also help workloads to survive transient faults that infrastructure cannot hide.
The following diagram shows a deployment that stopped when one availability zone failed, because one tier was not zone-redundant.

Summary of failure domains
The following table recaps which mechanism addresses which failure.
| Failure | Mechanism | Example |
|---|---|---|
| Host or rack | Fault domains | Availability set, or scale set across fault domains |
| Datacenter or zone | Availability zones | Zone-redundant SQL Database, ZRS storage |
| Region | Multi-region deployment | Front Door with a failover group |
| Software release | Staged deployment | Deployment slots, canary releases |
Availability targets and redundancy cost
A high availability design starts from a target and works back. If a workload requires 99.9% availability, a single zone-resilient deployment may be sufficient. If it requires 99.99%, each dependency must be at least that available, since the composite figure is limited by the weakest of them. Moving from three nines to four usually requires redundancy at every tier, and moving to five generally requires a multi-region active-active design, with a large increase in cost and complexity.
Some single points of failure are easy to miss. DNS, identity, a secrets store, a shared firewall and a deployment pipeline are all dependencies. If an application reads a secret from Key Vault at each request and cannot start without it, then Key Vault is part of its availability calculation. Designs therefore cache such values, and they test what happens when a dependency is slow, not only when it is absent, because a slow dependency can consume every thread in an application.
Composite availability
Resilience patterns in applications
Infrastructure redundancy cannot hide every fault, so applications contribute as well. Retries with exponential backoff handle brief errors, such as a database failover, by waiting a little longer after each attempt. A circuit breaker stops calling a failing dependency for a time, which prevents wasted effort and allows it to recover. Bulkheads isolate resources, so that one failing feature cannot use all the threads or connections. Queue-based load levelling absorbs sudden demand, as discussed in the messaging lesson.
Graceful degradation keeps part of a service running when a dependency fails. A shopping site could continue to sell products if its recommendation service is down, simply by hiding that panel. Identifying which functions are essential, and which can be switched off, is a business decision that has a large effect on the design.
Application resilience patterns
Identifying a single point of failure
An application runs on six virtual machines in a scale set spread across three zones, behind a zone-redundant load balancer. It uses a single SQL Server virtual machine in zone 1, with data on a locally redundant disk. Management asks why the application stopped when zone 1 failed. What is the problem, and what should be changed?
The compute tier was redundant, but the database was a zonal single point of failure, so losing zone 1 stopped the workload. The application is only as available as its weakest dependency.
The most effective change is to move to a zone-redundant Azure SQL Database. If SQL Server on a virtual machine must remain, an Always On availability group with replicas in different zones provides the same protection. Adding more web servers would not help, and backups would only allow recovery after the outage rather than continued operation.
Who handles failover for a zone-redundant service?
Show answer
The service. With a zonal resource, the customer must deploy to other zones and arrange failover.
Exam Tips
Remember for the exam
- Zonal: pinned to one zone you select. Zone-redundant: the service spreads across zones.
- Availability sets address racks; zones address datacenters; multi-region addresses regions.
- A workload is only as available as its weakest dependency.