teluzia.Cloud Engineer · Day 79
CHAPTER 12 · AWS ARCHITECTURE & CERTIFICATION READINESS

Resilient architectures

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

Resilience is keeping spare routes and practiced recovery plans, rather than assuming the primary bridge never closes. Spread components across independent Availability Zones when the workload requires continuity through a zone failure. Replication and load balancing need suitable topology, capacity, and health checks. Region-level outages require a different recovery design than a multi-zone deployment. Stateless application tiers can replace instances without losing authoritative business records. Sessions and uploads need suitable external storage. Databases require replication, backup, and restore strategies appropriate to consistency and recovery objectives; compute autoscaling alone cannot protect data.

Think of it this way

Resilience is keeping spare routes and practiced recovery plans, rather than assuming the primary bridge never closes.

TOPIC 01 / 03Step by step

Availability Zones and failure domains

Spread components across independent Availability Zones when the workload requires continuity through a zone failure. Replication and load balancing need suitable topology, capacity, and health checks. Region-level outages require a different recovery design than a multi-zone deployment. For example, two application instances in one zone do not tolerate that zone’s outage even though they tolerate one instance failure.

WORKED EXAMPLE
Two application instances in one zone do not tolerate that zone’s outage even though they tolerate one instance failure.

Two application instances run in one Availability Zone. One instance fails and the other continues, but a zone outage removes both. To meet a zone-failure requirement, distribute suitable components across zones and provide enough surviving capacity. Load balancing must detect unhealthy endpoints and send traffic only to remaining healthy capacity.

A failure domain is a set of components vulnerable to the same failure. An Availability Zone provides an AWS placement boundary with independent infrastructure characteristics. Redundancy duplicates necessary capability, not merely resource count. Check the data tier, routing, and dependencies too: distributing web instances does not help if every request requires one unavailable database. Multi-zone operation improves some failure tolerance but adds cost, cross-zone behavior, and application consistency considerations. It is not regional disaster recovery. State the protected failure explicitly so the design's evidence does not imply protection against larger failures it never addresses.

Why this matters

Two application instances in one zone do not tolerate that zone’s outage even though they tolerate one instance failure.

A common trap

Do not overlook this operational distinction: Region-level outages require a different recovery design than a multi-zone deployment.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Availability Zones and failure domains

Spread components across independent Availability Zones when the workload requires continuity through a zone failure. Replication and load balancing need suitable topology, capacity, and health checks. Region-level outages require a different recovery design than a multi-zone deployment. For example, two application instances in one zone do not tolerate that zone’s outage even though they tolerate one instance failure.

WORKED EXAMPLE
Two application instances in one zone do not tolerate that zone’s outage even though they tolerate one instance failure.

Two application instances run in one Availability Zone. One instance fails and the other continues, but a zone outage removes both. To meet a zone-failure requirement, distribute suitable components across zones and provide enough surviving capacity. Load balancing must detect unhealthy endpoints and send traffic only to remaining healthy capacity.

A failure domain is a set of components vulnerable to the same failure. An Availability Zone provides an AWS placement boundary with independent infrastructure characteristics. Redundancy duplicates necessary capability, not merely resource count. Check the data tier, routing, and dependencies too: distributing web instances does not help if every request requires one unavailable database. Multi-zone operation improves some failure tolerance but adds cost, cross-zone behavior, and application consistency considerations. It is not regional disaster recovery. State the protected failure explicitly so the design's evidence does not imply protection against larger failures it never addresses.

Why this matters

Two application instances in one zone do not tolerate that zone’s outage even though they tolerate one instance failure.

A common trap

Do not overlook this operational distinction: Region-level outages require a different recovery design than a multi-zone deployment.

Stateless compute and durable data

Stateless application tiers can replace instances without losing authoritative business records. Sessions and uploads need suitable external storage. Databases require replication, backup, and restore strategies appropriate to consistency and recovery objectives; compute autoscaling alone cannot protect data. For example, store user session state externally so a load balancer can route the next request to another healthy application instance.

WORKED EXAMPLE
Store user session state externally so a load balancer can route the next request to another healthy application instance.

A user signs in through application instance A. The next request reaches instance B after A is replaced. If login state lived only in A's memory, the user appears logged out or the workflow fails. Store shared authoritative session or business state in a suitable external service, then make application instances replaceable without erasing required data.

Stateless compute does not mean the entire system has no state. Durable storage preserves required data across process or instance replacement. Replication copies data to additional locations, with consistency and lag characteristics that depend on the service. Identify which writes must be acknowledged before reporting success. Temporary disk may be appropriate for regenerable caches, but not the only order ledger. Externalizing state adds a dependency and latency, so design timeouts and error handling. Backup and restore remain necessary because replicated systems can faithfully copy erroneous writes or deletions across every live replica.

Why this matters

Store user session state externally so a load balancer can route the next request to another healthy application instance.

A common trap

Do not overlook this operational distinction: Databases require replication, backup, and restore strategies appropriate to consistency and recovery objectives; compute autoscaling alone cannot protect data.

Recovery strategy tradeoffs

Backup and restore, pilot light, warm standby, and active-active approaches trade cost and operational complexity against recovery speed and data loss. Use RTO and RPO to select a strategy. Recovery procedures also need DNS, credentials, key access, and operational validation. For example, a warm standby has a reduced running environment ready to scale; backup-and-restore requires more recovery work before serving traffic.

WORKED EXAMPLE
A warm standby has a reduced running environment ready to scale; backup-and-restore requires more recovery work before serving traffic.

A regional outage forces recovery elsewhere. With backup and restore, the team builds capacity and restores data after the incident. With pilot light, essential replicated data and minimal components are already present. Warm standby keeps a smaller working environment ready to scale, while active-active serves traffic from multiple environments with more demanding consistency and routing design.

RTO measures restoration time. RPO measures allowable data loss. A recovery strategy organizes preexisting capacity, replicated data, and the work needed after failure. Compare measured procedures rather than assume a named strategy automatically meets a target. Credentials, key access, DNS, image availability, and quotas can dominate the timeline. Faster standby tends to cost more and demand ongoing testing. Active-active can reduce interruption but introduces operational and conflict-resolution complexity. Choose the least complex approach that demonstrably satisfies requirements, then rehearse its full business recovery path instead of testing only infrastructure creation.

Why this matters

A warm standby has a reduced running environment ready to scale; backup-and-restore requires more recovery work before serving traffic.

A common trap

Do not overlook this operational distinction: Recovery procedures also need DNS, credentials, key access, and operational validation.

KEEP THESE WITH YOU

Today’s takeaways

Availability Zones and failure domains: Spread components across independent Availability Zones when the workload requires continuity through a zone failure. Replication and load balancing need suitable topology, capacity, and health checks. Region-level outages require a different recovery design than a multi-zone deployment.

Stateless compute and durable data: Stateless application tiers can replace instances without losing authoritative business records. Sessions and uploads need suitable external storage. Databases require replication, backup, and restore strategies appropriate to consistency and recovery objectives; compute autoscaling alone cannot protect data.

Recovery strategy tradeoffs: Backup and restore, pilot light, warm standby, and active-active approaches trade cost and operational complexity against recovery speed and data loss. Use RTO and RPO to select a strategy. Recovery procedures also need DNS, credentials, key access, and operational validation.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed