Skill 2.2.4

Implementing designs to mitigate single points of failure

Key Concepts

Common single points of failure and fixes: one EC2 instance (Auto Scaling group across AZs behind a load balancer); one NAT gateway (one per AZ with per-AZ route tables); a single-AZ database (RDS Multi-AZ or Aurora); one VPN or Direct Connect link (redundant connections in different locations); a self-managed bastion or appliance (managed services, GWLB with multiple appliances).

Even a single instance gains self-healing in an Auto Scaling group with minimum, maximum and desired set to 1: it is replaced automatically if it fails. Elastic IPs or DNS records let a replacement take over the same address.

Design for failure: retries with exponential backoff and jitter, timeouts, circuit breakers, idempotent consumers, queues to absorb downstream outages, and static stability (keep enough capacity in the remaining AZs to handle the load if one AZ is lost).