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.
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.
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
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
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.
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.
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.
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.
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.
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
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
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
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.
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.
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
"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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.
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.
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.
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.
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.
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.
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.
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.
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