Surviving an Availability Zone Failure on AWS

Make an order service survive the loss of a whole Availability Zone on AWS, and prove it: capacity that needs no repair, no single-zone dependency, per-zone alarms that catch a zone that is slow but still healthy, evacuation with zonal shift and zonal autoshift, a database failover with no lost or duplicate orders, and fault drills with AWS FIS run under load against a service-level objective.

Site Reliability Engineer. Advanced.

What you will build and explain

  • Explain how AWS isolates Availability Zones, why zone names differ between accounts, and why per-zone telemetry uses AZ IDs.
  • Size a fleet to be statically stable: it serves the design load after losing a zone without launching anything.
  • Find and remove hidden single-zone dependencies such as one NAT gateway, a database writer or configuration fetched at start-up.
  • Detect a failing zone, including a gray failure that passes health checks, with per-zone outlier alarms and composite alarms.
  • Evacuate a zone with zonal shift, run zonal autoshift with practice runs, and bring the zone back safely.
  • Keep clients correct through an Aurora writer failover with timeouts, retries with jitter and idempotency keys.
  • Design AWS FIS experiments with tagged targets, stop conditions and bounded duration, and measure their impact on an SLO.
  • Run a game day and write a post-incident review from the evidence.

Before you begin

  • Use a terminal and Git, and run Terraform's init, plan, apply and destroy with variables and outputs.
  • Explain an AWS Region, an Availability Zone, a VPC, a subnet, a route table, a security group, an EC2 instance and an IAM role.
  • Read a short HTTP handler in a C-family language, write SQL SELECT and INSERT statements, and explain HTTP status codes and latency percentiles.
  • Have an AWS account you may create billable resources in, with the permissions listed in the setup lesson.

Who this is for

For engineers who run services on AWS with Terraform, can explain a VPC, a subnet, a security group, an EC2 instance and an IAM role, read a short HTTP handler in a C-like language and write basic SQL, and want to make a service survive the loss of an Availability Zone and prove it: static stability, no single-zone dependency, per-zone outlier alarms, zonal shift and autoshift, an Aurora failover without lost or duplicate orders, and fault drills with AWS FIS judged against an SLO.

Curriculum

Learning topics (15)
  1. Understand the brief and prepare your account and tools

    The brief is short: Ambrel's order service must keep taking orders when one of its three Availability Zones fails, and you must prove that it does with faults you inject yourself, under load, measured against a service-level objective (SLO). This lesson sets out what you need to know already, what the project will teach, and every tool, account and permission you need, with a check for each. The commands themselves are in the runbook's Before you start section, which the firs

  2. Follow the service across three zones, from request to recovery

    Ambrel's order service runs in one AWS Region, spread over three Availability Zones (AZs). An AZ is one or more data centres with their own power, cooling and network, a few kilometres from the others and joined to them by low-latency links. AWS keeps zones apart so that a fire, a power cut or a bad change in one does not reach the others. That isolation only helps a service whose every tier, and every dependency of every tier, is spread the same way, and which can lose a thi

  3. Understand what an Availability Zone isolates and why AZ IDs matter

    Ambrel's team said the service was "multi-AZ" because its instances ran in three zones. One impaired zone still took checkouts down. By the end of this lesson you can say what a zone actually protects you from, why that protection only reaches the parts of a system that are spread the same way, and why everything in this project names zones by AZ ID rather than by the familiar AZ name.

  4. Size a fleet that loses a zone without repairing anything

    When one of Ambrel's zones was impaired, Auto Scaling replaced its failing instances by launching new ones into the same broken zone, where they never became healthy. The other two zones, each carrying half as much again as usual, ran out of CPU and began failing too. The fleet was sized for an ordinary day; its plan for a bad day was to scale. This lesson explains why that plan fails, and how to size and hold a fleet so that losing a zone needs no repair.

  5. Find and remove the dependencies that live in one zone

    Ambrel's instances ran in three zones, but the VPC's one NAT gateway sat in the zone that failed. The instances in the healthy zones kept running, yet every connection they opened to the internet or to an AWS service's public address went through a gateway that no longer answered. This lesson shows how to list what a service needs, find where each dependency lives, and then spread it or, better, stop needing it.

  6. Design health checks that fail the right way, and know what they miss

    When Ambrel lost a zone, health checks kept passing on instances whose database connections had hung. The tempting fix is a health check that queries the database. This lesson shows why that would make things worse, what the lab checks instead, and which failures no health check can see, so that you can predict what the load balancer does when checks fail in one zone or in all.

  7. See one zone at a time and detect the one that stands out

    Ambrel's on-call engineer watched one Region-wide error graph and needed 25 minutes to blame a single zone. A Region-wide error rate of 12 % can mean every zone is a little ill or one zone is very ill, and the cures are opposite: leave that zone, or keep every zone and find a shared cause. This lesson explains the alarms that tell the two apart, and why they take about five minutes.

  8. Evacuate a zone with zonal shift and prove autoshift with practice runs

    The alarm says aps1-az3 is impaired, and Ambrel's traffic has to leave it. In the original incident the only tools were changes to the infrastructure itself: edit the load balancer's and the Auto Scaling group's subnets to leave the zone out, and remember to put them back. Those are control-plane changes, made under pressure during the very failure that makes control planes unreliable. This lesson teaches the alternative: an expiring instruction that moves traffic away from o

  9. Ride out an Aurora writer failover without losing or duplicating an order

    A customer taps "Place order". The order service sends COMMIT to the database, and the writer dies before it replies. Did the order happen? The service cannot tell, and neither can the phone, which retries. In Ambrel's incident that retry created a second order, while pooled connections kept leading to a writer that was gone. This lesson shows how the service survives a failover: which errors it retries, how it waits, when it throws connections away, and the key that makes a

  10. Break a zone on purpose with FIS, within limits you set

    Every earlier lesson is a claim until a zone fails while orders arrive, and Ambrel will not wait for the next incident: the lab breaks a zone on purpose. A tool that can stop instances, cut subnets and fail over a database can also stop the wrong instance, carry on after the service has had enough, or leave a fault behind. By the end of this lesson you can read one of the lab's experiment templates and say what it breaks, where, for how long, with whose permissions, and what

  11. Run drills under load, judge them against the SLO and write the review

    After the incident, Ambrel's review could say checkouts failed "for most of" 40 minutes, but not how many, in which zone, or whether retries made it worse: the only record was one Region-wide graph. A drill must leave better evidence. By the end of this lesson you can judge a drill against numbers fixed before it ran, read the evidence azctl writes, and turn it into a review that changes something.

  12. Build, deploy, drill and release the lab

    This runbook takes you from the unpacked source pack to a running lab in your own AWS account, through five fault drills, and to a new release. Removing everything is in the clean-up runbook; keep it open from the moment you deploy. Every command block says where it runs. Commands marked billable create or use paid resources; commands marked local do not touch AWS.

  13. Diagnose zonal failures from the evidence

    When something goes wrong in a system built to survive a zone, the first instinct is to act: shift a zone, restart the instances, fail the database back. Each of those is the right move for one cause and harmful for another. A zonal shift helps when one zone is ill and removes a third of the capacity when every zone is; restarting instances clears stuck connections and adds a wave of new ones to a database that is already struggling. This lesson is about the few minutes befor

  14. Explain zonal resilience decisions in an interview

    "Our service runs in three Availability Zones" is the sentence Ambrel's team used before one impaired zone took checkouts down. An interviewer who hears it will ask the next question: what happens to a request when a zone is slow rather than down, who notices, how long it takes, what moves the traffic, and what the database clients do meanwhile. This lesson prepares you to answer those questions from the decisions in this project, with their costs, rather than from a list of

  15. Remove the lab and check nothing is left

    Everything the lab creates belongs to one Terraform state in the pack's infra/ folder and carries the tag Project=aws-zonal-failure-readiness. Nothing is shared with other workloads, so the whole lab goes in one terraform destroy. Run this runbook when you finish, when you stop for the day, or as soon as something is broken and you would rather start again: destroying a half-built lab works the same way.

Practical build steps (11)
  1. Prepare your tools, sign-in, Region and inputs

    Start with a terminal and an AWS sandbox account; finish with every tool at a supported version, a working sign-in, three AZ IDs written down in the right order, and an infra/terraform.tfvars that holds them and your address. Nothing is created in AWS yet.

  2. Build the artifacts and run the local checks

    Start with prepared inputs; finish with six artifacts in dist/ and a clean make check. Everything runs in pinned containers on your computer, and nothing touches AWS.

  3. Deploy the lab and check that every zone answers

    Start with checked artifacts; finish with about 125 resources in your account, two healthy instances in every zone and requests answered by all three zones. From the moment the apply starts, the lab costs money every hour; the clean-up runbook removes it at any point, even half-built.

  4. Hold a zonal shift and prove the fleet is statically stable

    Start with a healthy lab; finish with your first evidence folder. The drill shifts one zone away for ten minutes under the design load and measures whether the other two zones carry it without launching anything. It uses no FIS action, so it is the cheapest drill and a safe first one.

  5. Interrupt a zone's power under load

    Start with a healthy lab; finish with an evidence folder for the hardest drill. FIS stops the zone's instances, makes launches there fail, cuts its network for two minutes and starts an autoshift, while the load generator keeps placing orders. The zone you choose holds the Aurora reader, so reads in the healthy zones lose their reader too.

  6. Fail over the Aurora writer while orders are created

    Start with a healthy lab; finish with an evidence folder that includes an audit of every acknowledged order. Aurora promotes the reader while the load generator is creating orders, each with its own idempotency key.

  7. Inject a gray failure and evacuate the zone

    Start with a healthy lab; finish with an evidence folder for the drill the rest of the design exists to handle. The zone's instances become slow and lossy, their health checks keep passing, and only the comparison with the other zones gives the zone away. The drill then evacuates it the way an on-call engineer would.

  8. Run an autoshift practice run (optional)

    Start with a healthy lab; finish with ARC's own verdict on a practice run. ARC shifts the load balancer and the group away from one zone for 30 minutes and records whether the SLO guard stayed quiet. Zonal autoshift requires practice runs, about once a week, so this is the test AWS itself runs on your behalf.

  9. Release a new build with an instance refresh (optional)

    Start with a healthy lab and a small change to the service; finish with all six instances replaced by the new build, with no zone below two healthy instances at any time. The apply uploads the new binary under a new key and writes a new launch template version; the instance refresh replaces the instances.

  10. Destroy the lab and check that nothing is left

    Start with the lab in any state, complete or half-built; finish with nothing of the lab left in your account and your computer tidied. One make destroy removes everything Terraform created; the checks then prove it, because the tag search alone lags behind deletions.

  11. Read the evidence and write the post-incident review

    Start with your evidence folders; finish with one written review. The lab does not need to exist: everything you need is in the summaries and their per-minute tables.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

Creates billable resources in your own AWS account: roughly 1 to 1.6 USD per hour in Asia Pacific (Mumbai) while the lab runs (EC2 instances, an Application Load Balancer, Aurora Serverless v2, whose capacity rises with load, VPC interface endpoints and public IPv4 addresses), plus about 0.10 USD per AWS FIS action-minute during drills; a first full pass with all five drills is about 10 to 12 USD. Prices were checked on 2026-11-11 and change; a budget alert does not cap spending. Destroy the lab when you finish.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. The tools, modules and packages downloaded when building or running, such as Terraform, the Terraform AWS provider, Go modules and k6, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy