Chapter 3 · Part 1: Cloud and AWS Foundations
AWS Global Infrastructure: Regions, Availability Zones, and the Network That Joins Them
Goal: understand exactly where "the cloud" lives. You will see what is inside an AWS data center, what an Availability Zone (AZ) is, how AZs are wired to each other, what a Region is, how Regions are connected across the planet, and how to choose and design around them. After this chapter you should never need another explainer on the topic.
Reading time: about 60 minutes. Lab time: 25 minutes (needs an AWS account, which Chapter 4 creates; the lab costs nothing).
How to read this chapter: read in order. Every idea has an analogy first, then the technical facts, then a picture. Go Deeper boxes are optional.
Version note: AWS keeps adding Regions, so numbers change. This chapter was checked against AWS documentation in December 2026. At that time AWS reported about 39 Regions and over 120 Availability Zones, with more announced. Always confirm on the official Global Infrastructure page.
What You Will Be Able to Do After This Chapter#
- Draw the hierarchy of data center, Availability Zone, Region, edge location and global network from memory.
- Explain how far apart AZs are, why, and how they are connected (and why that allows multi-AZ databases).
- Explain how Regions are connected, and what happens to your data when it moves between Regions.
- Read a name like
ap-south-1aand an AZ ID likeaps1-az1, and explain why they are different things. - Choose a Region using five factors: compliance, latency, service availability, price and sustainability.
- Say whether any service is global, Regional or AZ-scoped, and what that means for design.
- Say what survives an instance, rack, AZ or Region failure, and what each protection costs.
- Say for any term (data center, AZ, Region, edge location, Local Zone, VPC, EC2 instance) whether it is physical or virtual, and where it lives.
- Draw how two Regions (Mumbai and Hyderabad) with three AZs each, edge locations and users are wired together, and say how data is copied and kept available across them.
- Describe the shared responsibility model with concrete examples.
The Big Picture: A Country With Cities and Neighborhoods#
Think of AWS as a country.
| In the country | In AWS | Key idea |
|---|---|---|
| A building with power and security | Data center | Where servers physically live |
| A neighborhood that has its own power substation, water and roads, so a problem there does not stop the rest of the city | Availability Zone (AZ) | One or more data centers that fail independently of other AZs |
| A city made of several neighborhoods, close enough to commute between in minutes | Region | A geographic area with at least three AZs, fully isolated from other Regions |
| The highway system joining cities, owned by the same company | AWS global network (backbone) | Private fiber between AZs, Regions and edge locations |
| Local shops that stock popular goods near customers | Edge locations | Small sites that cache content close to users |
THE AWS GLOBAL INFRASTRUCTURE
+----------------------------- REGION: Mumbai (ap-south-1) -----------------------------+
| |
| +--------- AZ aps1-az1 --------+ +--------- AZ aps1-az2 --------+ +-- AZ aps1-az3 --+
| | [data center] [data center] | | [data center] | | [data center] |
| | own power, cooling, network | | own power, cooling, network | | own power ... |
| +-------------+-----------------+ +---------------+---------------+ +--------+--------+
| | dedicated, redundant metro fiber (low latency) | |
| +-------------------------+------------------------------+---------+
+-------------------------------------------|-----------------------------------------+
|
AWS GLOBAL BACKBONE | private fiber, terrestrial and undersea
|
+--------------------------------------+---------------------------------+
| | |
REGION: Frankfurt REGION: N. Virginia EDGE LOCATIONS
(eu-central-1) (us-east-1) (hundreds of small sites near users)The whole chapter in 60 seconds: AWS runs Regions (about 39 geographic areas). Each Region has at least three Availability Zones. An AZ is one or more data centers with independent power, cooling and networking, placed kilometers apart (all within about 100 km of each other) and joined by dedicated, redundant, low-latency fiber with single-digit-millisecond round trips. Because of that speed, data can be copied between AZs synchronously. Regions are isolated from each other for safety and sovereignty: your data stays in the Region you choose unless you move it. Regions are linked by the AWS global backbone (private fiber, including undersea cables), so inter-Region traffic does not use the public internet. You choose a Region by compliance, latency, available services, price and sustainability, and you design for failure by spreading across AZs, and across Regions when the business needs it.
Jargon Buster#
| Term | Plain meaning |
|---|---|
| Region | A named geographic area where AWS runs several data centers grouped into AZs (for example Mumbai, ap-south-1). |
| Availability Zone (AZ) | One or more discrete data centers in a Region, with separate power, cooling, networking and physical security. |
| AZ ID | A fixed code (like aps1-az1) that always means the same physical AZ, in every account. |
| Edge location | A small AWS site close to users that caches content and speeds up connections (used by CloudFront, Route 53, Global Accelerator). |
| Backbone | AWS's own private global fiber network that links AZs, Regions and edge locations. |
| Synchronous replication | A write is confirmed only after it is stored in two places. Needs low latency, so it works between AZs. |
| Asynchronous replication | A write is confirmed first and copied later. Works over long distances, but the copy can lag behind. |
| Latency | The delay for a round trip, in milliseconds (ms). |
| Blast radius | How much is affected when something fails. |
| Data residency / sovereignty | Rules saying where data must be stored, and who may operate or access the systems that hold it. |
| Partition | A fully separate group of Regions with its own accounts (standard AWS, AWS China, AWS GovCloud (US), AWS European Sovereign Cloud). |
| Control plane / data plane | Control plane: the functions that create and change resources. Data plane: the running resources doing the work. |
3.1 The Hierarchy in One Picture#
Learn the order from smallest to largest, because the rest of the course keeps referring to it.
| Level | What it is | Count (approx., late 2026) | You choose it when you... |
|---|---|---|---|
| Server and rack | One computer, and the cabinet that holds dozens of them | Millions | Never directly. AWS places your instance for you |
| Data center | A building with tens of thousands of servers, power, cooling and security | Not published precisely | Never directly. You cannot pick or visit one |
| Availability Zone | One or more data centers acting as one failure domain | 120 plus | Pick a subnet or an instance location (ap-south-1a) |
| Region | A cluster of at least three AZs in one geographic area | About 39 | Pick it in the console corner, CLI profile or SDK setting |
| Edge location | A small site near users for caching and fast connections | Hundreds, in 100 plus cities | Not selected. CloudFront and similar services use them automatically |
| Global network | The private fiber joining everything above | One | Never directly. Your traffic uses it automatically |
You will often hear "AWS has 39 Regions". Treat any number you read, including in this book, as a snapshot. The exact count is on aws.amazon.com/about-aws/global-infrastructure. What does not change is the design: Regions made of at least three AZs.
Physical or virtual? Can you touch it?#
This is the question beginners rarely get answered. Some of these words are real buildings and cables. Others are software-made illusions that exist only inside the cloud's control plane. Keep this table nearby for the whole course.
| Term | Physical or virtual? | What it really is | Could a person visit it? |
|---|---|---|---|
| Data center | Physical | A building with racks, power, cooling and guards | Only authorized AWS staff. Locations are not published |
| Availability Zone | Physical, grouped by a label | One or more real data centers treated as a single failure domain. The "AZ" is the grouping and the independence promise, not a separate kind of hardware | No |
| Region | Physical, grouped by a label | A set of at least three AZs in one geographic area, plus the services running across them | No |
| Edge location | Physical | A small real facility with routers and cache servers, usually inside a shared network hub | No |
| Local Zone | Physical | AWS-run hardware in a real city building, acting as a small extension of a parent Region | No |
| Outposts rack | Physical, in YOUR building | An AWS-built rack that sits in your own data center, run by AWS remotely | Yes, it is in your premises |
| Global backbone | Physical cables, virtual routing | Real fiber on land and under the sea, with software deciding the paths | No |
| EC2 instance | Virtual | A slice of CPU and memory on one real server | No. It can move to other hardware when stopped and started |
| EBS volume | Virtual | A logical disk stored across real storage servers in one AZ | No |
| S3 bucket | Virtual | A named container. The objects sit on real disks in several AZs | No |
| VPC | Virtual | Your private network, defined by routing rules on real network gear, isolated from other customers | No |
| Subnet, security group, route table | Virtual | Rules and address ranges. A subnet is tied to exactly one AZ | No |
The one-line rule: buildings, racks, cables, edge sites and Local Zones are physical. Everything you create with a click or an API call (instances, volumes, buckets, VPCs, subnets) is virtual, carved out of the physical parts. You rent the illusion. AWS owns the reality.
3.2 Inside a Data Center#
You will never visit one, but knowing what is inside tells you why AWS can promise what it does.
| Part | What it does | Why it matters to you |
|---|---|---|
| Racks of servers | Standard cabinets with servers, many designed by AWS itself | Custom hardware is cheaper and more efficient, so prices drop |
| Power | Multiple utility feeds, uninterruptible power supplies (batteries), and on-site generators | A power cut in the city does not switch off your server |
| Cooling | Air and sometimes liquid cooling systems with redundancy | Servers stay in a safe temperature range |
| Network | Switches and routers, many AWS-designed, with redundant fiber links out of the building | No single cable cut isolates the building |
| Fire protection | Detection and suppression systems | A fire is contained |
| Physical security | Perimeter fencing, guards, video surveillance, multi-factor access, and strict logs of who enters | Locations are not publicized, and very few AWS staff can enter |
| Secure disposal | Storage devices are wiped and destroyed under strict procedures | Your deleted data does not leave the building on a disk |
See it: from the street to your server#
Here is one data center, simplified. Follow the three "paths" that keep servers alive: power, cooling and network.
ONE DATA CENTER (a real, windowless building, often the size of several football fields)
POWER PATH COOLING PATH NETWORK PATH
Utility feed A --+ Chillers / outside air Fiber route 1 --+
Utility feed B --+ push cold air or liquid Fiber route 2 --+
Diesel generators+ | (different streets)
| | |
transformers | meet-me room
| | (routers: the "exit door")
UPS batteries | |
(bridge the gap v v
until generators start) +-----------------------------------------------------+
| | DATA HALL |
+------------------->| cold aisle [RACK][RACK][RACK][RACK][RACK] ... |
| hot aisle [RACK][RACK][RACK][RACK][RACK] ... |
| thousands of servers, storage and network switches |
+-----------------------------------------------------+
Fences, guards, cameras, badges and two-factor entry surround the whole site.Now zoom in. This is one rack, and one server inside it, and where "your" virtual things come from.
ONE RACK (a tall cabinet) ONE SERVER (a flat box in the rack)
+----------------------+ +-------------------------------------------+
| top-of-rack switch | <- links the | CPUs + memory <- your EC2 instance gets |
| (network) | rack to | a slice of these |
+----------------------+ the DC | Nitro cards <- handle networking, |
| compute server | network | storage, security |
| compute server | | local SSDs <- "instance store" |
| compute server | | (gone when stopped) |
| ... dozens ... | | network ports <- to the rack switch |
+----------------------+ +-------------------------------------------+
| storage servers | <- EBS volumes and S3 objects live on many of these,
| (lots of disks) | copied to several servers so one dead disk loses nothing
+----------------------+
| power shelf |
+----------------------+| Real hardware you will never see | The virtual thing you rent from it |
|---|---|
| CPUs and memory in a compute server | An EC2 instance (a slice, isolated from other customers' slices) |
| Disks across many storage servers | An EBS volume or S3 objects |
| Switches, routers and cables | Your VPC, subnets and security groups (rules applied by the Nitro cards and network gear) |
| Servers in a rack in AZ-1 | An instance placed in subnet ap-south-1a |
The Nitro System: why your virtual server is safe and fast#
In Chapter 2 you learned that a hypervisor slices one machine into many VMs. On older systems, the hypervisor itself used some of the machine's CPU, and a bug in it could be dangerous. AWS built the Nitro System: dedicated cards and chips that take over networking, storage and security tasks from the main CPU, plus a very small hypervisor. Three results matter to you:
- Performance: nearly all the CPU and memory go to your workload, not to the cloud's housekeeping.
- Security: the design has no mechanism for AWS staff to log in to the host or read the memory of your instance.
- Speed of innovation: new instance types and fast networking arrive without redesigning the whole stack.
Go DeeperWhy AWS builds custom chips and servers
At AWS scale, small savings multiply. AWS designs its own servers (stripped of features it does not need), its own network switches, its own Nitro cards, and its own processors such as Graviton (general computing), Trainium and Inferentia (machine learning). The business effect is that Graviton-based instances often offer better price-performance than comparable x86 ones, a tip you will use in the cost chapters. The architectural effect is that the same custom hardware exists in every Region, which makes behavior consistent worldwide.
3.3 Availability Zones: Independent Failure Domains#
Analogy: a city's neighborhoods. Each has its own power substation, water supply and roads. A burst pipe in one neighborhood does not leave the others without water, yet they are close enough that you can reach another in minutes.
An Availability Zone is one or more discrete data centers, each with redundant power, networking and connectivity, in a Region. The key words are discrete and independent.
The design rules AWS follows#
| Rule | What it means | Why |
|---|---|---|
| Every Region has at least three AZs | You can spread across three failure domains | Three lets you survive losing one and keep a majority (important for clusters that need a quorum) |
| AZs are physically separate | Separated by a meaningful distance, many kilometers apart | A flood, fire, storm or power failure should not hit two AZs at once |
| AZs are still close | All within about 100 km (60 miles) of each other | Close enough for low-latency links and synchronous copying of data |
| Independent infrastructure | Own power feeds, generators, cooling, network entry points and security | No shared single point of failure |
| Designed to fail independently | Different flood plains and utility grids where possible | Correlated failures are the real enemy |
The distance is a careful compromise. Too close (the same street) and one disaster hits both. Too far (hundreds of km) and the round-trip delay is too long for databases to write to two places before confirming. About tens of kilometers apart, up to 100, hits the sweet spot.
ONE REGION (a metropolitan area, roughly within a 100 km circle)
[ AZ-a ] [ AZ-b ] [ AZ-c ]
+--------------+ +--------------+ +--------------+
| data center | | data center | | data center |
| own power |<== metro fiber ==>| own power |<= metro fiber =>| own power |
| own cooling | (redundant) | own cooling | (redundant) | own cooling |
| own network | | own network | | own network |
+------+-------+ +------+-------+ +------+-------+
| | |
fiber to the internet fiber to the internet fiber to the internet
and to other Regions and to other Regions and to other RegionsWhat an AZ means for your application#
- An AZ is the unit of failure you design around. If you run only in one AZ and that AZ has a problem, your application is down.
- Running the same app in two or three AZs (for example, web servers in all three AZs behind a load balancer) keeps it up when one AZ fails. This is called a Multi-AZ design.
- Many AWS services do the multi-AZ work for you: S3 and DynamoDB store data across at least three AZs automatically, and RDS Multi-AZ keeps a synchronized standby in another AZ.
"An AZ is one data center." Not always. An AZ is one or more data centers. The promise is about independence between AZs, not about the number of buildings inside each.
3.4 How Availability Zones Are Connected#
This is the part most courses skip. Here is the full story.
The link between AZs#
All AZs in a Region are joined by fully redundant, dedicated metro fiber, which means private cables laid across the metropolitan area, owned or leased exclusively by AWS, not shared with the public internet. Between any two AZs there are multiple independent paths, so a cut cable does not break the link. The network provides high bandwidth and low latency, and AWS encrypts traffic between AZs.
| Property | What AWS provides | What it lets you do |
|---|---|---|
| Dedicated fiber | A private metro network, not the public internet | Predictable performance and security |
| Redundant paths | Several separate routes between each pair of AZs | A single cable cut cannot isolate an AZ |
| High bandwidth | Very large capacity between AZs | Move large amounts of data in a Multi-AZ design |
| Low latency | Single-digit millisecond round trips by design (often around 1 to 2 ms) | Synchronous replication between AZs |
| Encryption | Traffic between AZs is encrypted | Safer by default |
Why single-digit milliseconds is a big deal#
Light in fiber travels at about 200,000 km per second, which is roughly 1 millisecond of round trip for every 100 km, before adding time for switches and cable bends. So AZs tens of kilometers apart can have a round trip of just a few milliseconds.
Now see what that makes possible. A Multi-AZ database (such as Amazon RDS Multi-AZ or Aurora) writes each change to two AZs and only then tells your application "saved". If the first AZ burns down one second later, no committed data is lost. If the AZs were 3,000 km apart, every write would wait about 30 ms or more for the second copy, which would make the application feel slow. That is why AZs are close, and why Region-to-Region copies are usually asynchronous.
Application writes an order TIME ---->
|
|--> primary DB in AZ-a : write stored (0 ms)
|--> standby DB in AZ-b : write stored (~2 ms, metro fiber) <-- synchronous
|<-- "order saved" confirmed to the app (~3 ms in total)
If AZ-a is lost now, AZ-b already holds every committed order.| Path | Typical round-trip time | Replication style |
|---|---|---|
| Two processes on the same server | Microseconds | Not applicable |
| Two servers in the same AZ | Well under 1 ms | Synchronous is easy |
| Two servers in different AZs, same Region | About 1 to 2 ms, designed for single digit | Synchronous is practical |
| Two Regions on the same continent | Tens of milliseconds | Usually asynchronous |
| Two Regions on different continents | 100 to 250 milliseconds | Asynchronous |
The numbers are typical ranges, not promises. You will measure real values in the lab.
Crossing an AZ is not free. Traffic between instances in different AZs of the same Region is typically charged at about $0.01 per GB in each direction. Traffic inside one AZ over private IP addresses is free. A chatty application spread across three AZs can generate a surprising bill. Check current prices on the EC2 pricing page and design with this in mind (Chapter 5).
Go DeeperWhy can't AWS just put all three AZs in one building?
Because the whole point is independent failure. Consider the real causes of data center outages: power failure, cooling failure, fiber cuts, fire, flood, a faulty software push, even a vehicle hitting a utility pole. A shared building shares every one of those. Separate buildings on separate power grids and separate fiber routes fail separately, so the chance that two fail at the same moment is the product of two small chances.
That is also why AWS says an AZ should not share a single point of failure with another AZ, including shared power lines or a shared fiber trench. Real incidents still occur, which is why serious designs also have monitoring, health checks and tested failover, not just "I used two AZs".
3.5 AZ Names vs. AZ IDs: A Classic Surprise#
When you launch a server you pick a name like ap-south-1a. You would think ap-south-1a is the same physical place for everyone. Often it is not.
Why? If everyone picked the first letter (a) by habit, a would be overloaded and c would sit empty. To spread the load, AWS has historically mapped the letters to physical AZs differently for each account. In account A, us-east-1a may be the physical zone with ID use1-az1. In account B, us-east-1a may be use1-az4. The mapping depends on the Region, and on how old the account and Region are, so never assume.
| AZ name | AZ ID | |
|---|---|---|
| Example | ap-south-1a | aps1-az1 |
| Means the same physical place in every account? | Not guaranteed | Yes, always |
| Use it for | Normal day-to-day work inside one account | Coordinating between accounts, shared subnets, and cross-account networking and data transfer cost reasoning |
Same physical zone, different names in different accounts:
ACCOUNT A ACCOUNT B
us-east-1a ---> use1-az6 <--- us-east-1c
us-east-1b ---> use1-az1 <--- us-east-1a
The AZ ID (use1-az6) is the truth. The letter is only a label in your account.The cross-account trap. Two teams in two accounts each put a subnet "in us-east-1a" and then wonder why their traffic is charged as cross-AZ, or why a shared resource sits in a different zone than expected. Compare AZ IDs, not names. You can see yours with aws ec2 describe-availability-zones (see the lab).
3.6 Regions: Isolated by Design#
A Region is a physical area of the world where AWS has a cluster of at least three AZs. Each Region is independent and isolated from every other Region. Isolation is a feature, for three reasons:
| Reason | What isolation gives you |
|---|---|
| Fault containment | A serious problem in one Region does not spread to the others |
| Data sovereignty | Your data stays in the Region you chose. AWS does not move it to another Region on its own. You decide if and when data crosses a Region boundary |
| Predictable behavior | Each Region has its own endpoints, its own service instances and its own capacity |
How to read a Region name#
ap - south - 1
| | |
| | +-- a counter (1st Region in that area)
| +--------- direction (south, north, west, east, central, northeast, ...)
+--------------- geography (us, eu, ap = Asia Pacific, sa, af, me, ca, il, mx)
Region ap-south-1 = Mumbai, India
AZ name ap-south-1a = the Region name + a letter
AZ ID aps1-az1 = fixed ID for one physical zone| Region code | Location | Notes |
|---|---|---|
us-east-1 | N. Virginia, USA | The oldest and biggest. Many global services have their control plane here, and new features often arrive here first |
us-west-2 | Oregon, USA | A popular second US Region |
eu-west-1 | Ireland | A popular European Region |
eu-central-1 | Frankfurt, Germany | Common for EU data residency |
ap-south-1 | Mumbai, India | Closest to users in India. The default for this course's labs |
ap-southeast-1 | Singapore | Hub for South-East Asia |
ap-northeast-1 | Tokyo, Japan | Hub for Japan and North Asia |
sa-east-1 | Sao Paulo, Brazil | South America |
Opt-in Regions#
Regions launched after March 20, 2019 are disabled by default in your account. They are called opt-in Regions (examples: Hong Kong ap-east-1, Cape Town af-south-1, Bahrain me-south-1, Hyderabad ap-south-2, Zurich eu-central-2, Tel Aviv il-central-1). You must enable each one in Account settings before use, and your identity (IAM users and roles) is only replicated into it once you do. Older Regions such as Mumbai and Frankfurt are on by default.
Separate partitions: AWS has more than one "world"#
| Partition | Who it is for | Key difference |
|---|---|---|
Standard AWS (aws) | Almost everyone | Normal accounts and Regions |
AWS China (aws-cn) | Workloads serving mainland China | Separate accounts, operated with local partners under Chinese law. Your normal AWS account does not work there |
AWS GovCloud (US) (aws-us-gov) | US government and regulated customers | Operated by US persons, with extra compliance. Separate accounts |
AWS European Sovereign Cloud (aws-eusc) | European organizations with strict sovereignty needs | Became available in January 2026, first Region in Brandenburg, Germany (eusc-de-east-1). Independent operations and its own accounts |
Resources in one partition cannot talk to another partition's resources through normal AWS-internal links. They behave like separate clouds with the same shape.
Region = data boundary. Anything you store in eu-central-1 stays in eu-central-1 unless you configure replication, backups or exports to another Region. For compliance questions, "where does the data live?" is answered by the Region you picked. Chapter 8 shows how to enforce this with guardrails (service control policies) so nobody can accidentally use another Region.
3.7 How Regions Are Connected: The AWS Global Backbone#
If Regions are isolated, how do they talk to each other? Over the AWS global network, also called the backbone. It is one of the largest private networks in the world.
What the backbone is#
- A privately operated fiber network that connects AZs, Regions and edge locations, laid across land and under the oceans using terrestrial and trans-oceanic cables.
- Built from very high-speed links (documented as multiple parallel 400 Gigabit Ethernet fibers), with redundant paths so that a cable cut or a failure does not stop traffic.
- Connected to tens of thousands of other networks (internet providers) at many points, for traffic that really must reach the public internet.
AWS GLOBAL BACKBONE (private fiber, redundant)
+----------+ terrestrial +----------+ undersea cable +-----------+
| Region |<================>| Region |<=====================>| Region |
| us-east-1| | eu-west-1| | ap-south-1|
+----+-----+ +----+-----+ +-----+-----+
| | |
edge locations edge locations edge locations
| | |
users (public internet only for the "last mile")What this means for your traffic#
| Traffic path | Uses | Notes |
|---|---|---|
| AZ to AZ in one Region | Metro fiber inside the Region | Encrypted, low latency |
| Region to Region, between your own AWS resources | The AWS backbone | Stays on the AWS network and does not cross the public internet. It is encrypted, and you pay inter-Region data transfer |
| User to AWS | Public internet, then the backbone | Using an edge location (CloudFront or Global Accelerator) shortens the public-internet part, because the user enters the AWS network at a nearby site |
| Your data center to AWS | Internet VPN, or AWS Direct Connect (a private line) | Direct Connect gives stable latency and bandwidth (Chapter 12) |
Physics sets the speed limit#
No technology beats the speed of light in glass. A good rule: about 1 ms of round trip per 100 km of fiber, at the very best. Real cables bend around mountains and seabeds, so actual numbers are higher. Typical round trips (approximate, measure your own):
| Between | Distance (straight line) | Typical round trip |
|---|---|---|
| Two AZs in one Region | Tens of km | About 1 to 2 ms |
| Mumbai and Singapore | About 3,900 km | About 55 to 70 ms |
| N. Virginia and Oregon | About 3,900 km | About 60 to 75 ms |
| N. Virginia and Ireland | About 5,500 km | About 70 to 85 ms |
| Mumbai and Frankfurt | About 6,600 km | About 110 to 130 ms |
| N. Virginia and Sydney | About 15,800 km | About 190 to 230 ms |
This table explains most Region decisions. A user in Mumbai talking to an app in Virginia pays roughly 200 ms for every round trip. Loading a page that needs ten sequential calls takes two seconds before any work happens. Putting the app in Mumbai cuts it to a few milliseconds.
"Regions are connected, so data is shared between them." No. The network connects Regions, but your data does not move by itself. An S3 bucket in Mumbai is not visible from Frankfurt unless you enable replication or copy the objects. Isolation of data and connection of networks are different things.
Go DeeperGlobal services still have a home Region
A few services look global but are built from a Region underneath. For the standard AWS partition, the control plane of services such as IAM, AWS Organizations and Route 53 runs in us-east-1, even though the data plane (the part answering your requests, such as DNS lookups or IAM permission checks) runs in every Region. Practical lessons:
- When
us-east-1has a control-plane problem, you may be unable to create or change IAM roles or DNS records, while existing ones keep working. - Good resilient designs rely on the data plane during incidents (existing roles, existing DNS records, pre-created failover routing) and do not depend on creating new resources while recovering.
- Certificates for CloudFront must be requested in
us-east-1. This is why the deploy workflow of this very website requests its certificate there.
3.8 The Full Map: Mumbai and Hyderabad, End to End#
Time to put everything on one page. We use two real Indian Regions: Mumbai (ap-south-1), which is on by default, and Hyderabad (ap-south-2), which is an opt-in Region. Both have three AZs. They are roughly 600 km apart, which is too far to be one Region (AZs stay within about 100 km) and exactly why Hyderabad is a different Region and a natural disaster-recovery partner for Mumbai that keeps data inside India.
USERS (Hyderabad, Bengaluru, Delhi, Chennai, ...)
|
| public internet: only the "last mile"
v
+--------- EDGE LOCATIONS (real sites in many cities) --------+
| Delhi Chennai Bengaluru Mumbai Hyderabad ... |
| cache + DNS + attack shield |
+-------------------------------------------------------------+
|
| AWS backbone (private fiber, redundant)
+-------------------------+-------------------------+
v v
+--------------- REGION: MUMBAI --------------+ +------------- REGION: HYDERABAD -------------+
| ap-south-1 (on by default) | | ap-south-2 (opt-in: enable first) |
| | | |
| aps1-az1 aps1-az2 aps1-az3 | | aps2-az1 aps2-az2 aps2-az3 |
| +--------+ +--------+ +--------+ | | +--------+ +--------+ +--------+ |
| | DC DC | | DC | | DC | | | | DC DC | | DC | | DC | |
| +---+----+ +---+----+ +---+----+ | | +---+----+ +---+----+ +---+----+ |
| | | | | | | | | |
| +<=========>+<=========>+ | | +<=========>+<=========>+ |
| +<=====================>+ | | +<=====================>+ |
| metro fiber: every AZ to every AZ | | metro fiber: every AZ to every AZ |
| | | |
| VPC: one subnet in each AZ | | VPC: one subnet in each AZ |
+---------------------------------------------+ +---------------------------------------------+
| |
+===================================================+
AWS backbone: cross-Region link, about 600 km apart
roughly 10 to 25 ms round trip (an estimate: measure it)How to read the map#
| Line on the map | What it is | Speed and style |
|---|---|---|
AZ to AZ inside a Region (the <=====> lines inside each Region box) | Dedicated, redundant metro fiber. Every AZ can reach every AZ | About 1 to 2 ms. Fits synchronous copying |
| Region to Region (the bottom line) | The AWS backbone, private fiber, encrypted | Tens of ms here, hundreds of ms across oceans. Fits asynchronous copying |
| Edge to Region (the vertical line from the edge boxes) | The AWS backbone | Short and private, so a user enters the AWS network near home |
| User to edge (top) | The public internet via ISPs | The only public part, kept as short as possible |
Follow one request and one write#
- A customer in Hyderabad opens the StackCafe menu. DNS (Route 53, at an edge location) answers. CloudFront at the nearest edge location serves the cached menu images in a few milliseconds. No Region is touched.
- The customer places an order. The request travels edge to Mumbai over the backbone and reaches the load balancer, which spreads it over servers in three Mumbai AZs.
- The order is saved. The database writes to its primary in AZ-1 and to a standby in AZ-2 over the metro fiber, then confirms. Nothing is lost if AZ-1 fails right after.
- A copy is sent to Hyderabad. A moment later (seconds), a replica in Hyderabad receives the change. If Mumbai disappears, Hyderabad holds a nearly current copy.
Replication and high availability in plain words#
Almost every resilience feature on AWS is the same three ideas.
- Keep copies in more than one place. One copy is a single point of failure.
- Choose how closely the copies must agree.
- Synchronous (between AZs): confirm only after both copies have it. No loss, small delay of a few ms.
- Asynchronous (between Regions): confirm first, copy a moment later. Fast for the user, but the far copy can lag by seconds, so a sudden disaster might lose the last few seconds.
- Fail over. When a copy is unhealthy, send traffic to a healthy one. Health checks and a load balancer or DNS do this. Without a tested switch-over, a copy is only a backup.
New order written
|
v
[ Mumbai AZ-1: primary DB ] --synchronous, ~2 ms--> [ Mumbai AZ-2: standby ] --> "saved" confirmed here
| (high availability: AZ-level protection)
+---- asynchronous, seconds ----> [ Hyderabad: replica ]
(disaster recovery: Region-level protection)| Service | Copies inside the Region (automatic?) | Copy to another Region |
|---|---|---|
| Amazon S3 | Stored across at least three AZs for most storage classes. Automatic | Optional Cross-Region Replication, asynchronous |
| Amazon DynamoDB | Spread across three AZs. Automatic | Optional global tables, asynchronous |
| Amazon RDS | Single-AZ by default. Turn on Multi-AZ for a synchronous standby in another AZ | Optional cross-Region read replica, asynchronous |
| Amazon Aurora | Six copies of the data across three AZs. Automatic | Optional Aurora Global Database, typically a lag of about a second or less |
| Amazon EBS volume | Copied inside one AZ only. Not Multi-AZ | Snapshots can be copied to another Region |
| Amazon EC2 instance | No copy at all. You run more instances in other AZs | You build it, or use AMI copies and Auto Scaling in the other Region |
StackCafe pattern: web servers and a Multi-AZ database in Mumbai (survives an AZ failure), plus an S3 replica and a database read replica in Hyderabad (survives losing all of Mumbai, with data staying in India). Chapter 42 turns this into a full disaster-recovery plan with RTO and RPO.
"Replication is a backup." It is not. If someone deletes a table or a bug corrupts data, replication copies the damage to the other copy within seconds. You need both: replication for availability, and versioned or point-in-time backups for recovery from mistakes.
Enable Hyderabad first. Because ap-south-2 is an opt-in Region, it will not appear in your console until you enable it under Account settings. This is one more reason to decide your Regions early.
3.9 Choosing a Region#
Region choice is one of the first and least reversible decisions in a design. Moving later means copying data and rebuilding. Use these five factors, in this order.
| # | Factor | Question to ask | Example |
|---|---|---|---|
| 1 | Compliance and data residency | Does law or contract say where the data must live? This overrides everything else | German health data must stay in the EU: choose Frankfurt, not Virginia |
| 2 | Latency to users | Where are most users and other systems? | Indian customers: Mumbai. Mixed global users: add CloudFront in front |
| 3 | Available services and features | Are all the services I need offered in that Region? | A brand-new feature may exist in us-east-1 first. Check the Regional services list |
| 4 | Price | The same service costs different amounts per Region | Some Regions are noticeably cheaper than others, so compare for big workloads |
| 5 | Sustainability and other factors | Carbon footprint, nearby DR Region, team time zones | Prefer Regions with a lower grid carbon intensity if everything else is equal |
START
|
v
Does a law or contract fix the country/area? --yes--> Pick Regions inside that area. Done.
| no
v
Where are most of the users? ---> candidate Regions close to them (lowest latency)
|
v
Do all the services I need exist there? --no--> next closest Region
| yes
v
Compare price and carbon of the candidates ---> choose, then pick a second Region for DRStackCafe decision: its first customers are in Bangalore and Chennai. Latency favors Mumbai (ap-south-1). Indian data protection rules and the founders' own preference say keep data in India, which Mumbai also satisfies. When Maya opens in Europe in version 7, she adds eu-central-1 for European customers, because European data rules push that data to stay in the EU. The first design choice made the second one natural.
Tip for this course: every lab uses ap-south-1 (Mumbai) unless a chapter says otherwise. If you live elsewhere, pick your nearest default-enabled Region and use it for everything. Mixing Regions in labs is the number one reason people say "my resource disappeared". It is just in another Region.
3.10 Global, Regional, and AZ-Scoped Services#
Every AWS resource lives at one of three scopes. Knowing the scope tells you what a failure takes out and what you must copy yourself.
| Scope | Meaning | Examples | If something fails |
|---|---|---|---|
| Global | One resource, usable everywhere. (Still has a home Region for its control plane.) | IAM, AWS Organizations, Route 53, CloudFront, AWS WAF (global scope), Global Accelerator | Rarely affected by a single Region issue for day-to-day use |
| Regional | Lives in one Region and is automatically spread over its AZs | VPC, S3 buckets, DynamoDB tables, Lambda functions, SQS queues, SNS topics, ELB load balancers, RDS Multi-AZ, EFS | Survives an AZ failure. Does not survive a whole-Region failure unless you replicate |
| AZ-scoped | Lives in one specific AZ | An EC2 instance, an EBS volume, a subnet, an RDS single-AZ instance, a NAT gateway | Lost or unavailable if that AZ fails, unless you built redundancy in another AZ |
GLOBAL IAM | Route 53 | CloudFront | Organizations
|
REGION VPC | S3 | DynamoDB | Lambda | SQS | SNS | ELB | EFS | API Gateway | CloudWatch
|
AZ subnet | EC2 instance | EBS volume | NAT gateway | single-AZ databaseThe "my server vanished" trap. You launch an EC2 server in Mumbai, switch the console to Frankfurt, and it is gone. Nothing is wrong: resources are Regional, and the console shows one Region at a time. Check the Region selector first, always.
The "Multi-AZ is automatic" trap. S3 and DynamoDB spread across AZs for you. An EC2 instance does not. If you launch one instance, it sits in one AZ. To survive an AZ failure you must launch instances in several AZs yourself, usually through an Auto Scaling group (Chapter 16).
3.11 The Edge: Getting Closer to the User#
Regions are in a few dozen places. Your users are everywhere. The edge of the AWS network brings services closer to them.
| Edge option | What it is | Use it for | Example |
|---|---|---|---|
| Edge locations (Points of Presence) | Hundreds of small AWS sites in 100 plus cities worldwide | Caching content (CloudFront), DNS answers (Route 53), accelerated connections (Global Accelerator), DDoS protection | A user in Lagos receives your images from a nearby edge site, not from Mumbai |
| Regional edge caches | A larger middle cache layer between edge locations and your origin | Keeping less-popular content close, and reducing load on the origin | Automatic with CloudFront |
| AWS Local Zones | An extension of a Region placed in a metro area, with compute, storage and a few services | Single-digit-millisecond latency for a city: media production, gaming, real-time apps | A studio in Los Angeles editing video with servers a few milliseconds away |
| AWS Wavelength | AWS compute embedded inside a telecom provider's 5G network | Ultra-low-latency mobile apps | Augmented reality on a phone |
| AWS Outposts | AWS-built racks installed in your data center, managed by AWS | Data that must stay on site, or equipment that needs local answers | A factory needing millisecond control loops, with data staying in the building |
| AWS Snow family | Rugged portable devices | Moving large data offline, or computing in remote places | A ship or a mine with no stable internet |
distance from user -> far near
Region ---- Local Zone ---- Wavelength ---- Edge location ---- Outposts (in YOUR building)
full set metro city inside 5G cache + DNS your own site
of services subset few services content only subset, run by AWSInside an edge location: physical, small, and purpose-built#
An edge location is real hardware, but much smaller than a data center. Think of a few racks in a shared network hub (often an internet exchange or carrier building) in a big city. It does not run your servers or databases. It does only the jobs that benefit from being near people.
INSIDE ONE EDGE LOCATION (a few racks, in a city's network hub)
+-----------------------------------------------------------+
| routers + switches <- connect to local ISPs and to the |
| AWS backbone (this is the key job) |
| cache servers <- CloudFront keeps copies of popular |
| files, pictures, video segments |
| DNS servers <- Route 53 answers lookups here |
| security servers <- absorb attacks near the source |
| (Shield, WAF with CloudFront) |
| |
| NOT here: your EC2 instances, your databases, your data |
+-----------------------------------------------------------+How an edge location connects to ISPs, Regions and AZs#
- Toward users: the edge connects to local internet providers (ISPs) and to internet exchanges, so users reach it over a short public-internet path.
- Toward AWS: it connects to the AWS backbone, which carries traffic to the Region. From there the request goes to your origin, such as an S3 bucket or a load balancer.
- Edge locations are not "in" an AZ, and they do not link to individual AZs. They link to the Region. Inside the Region, the origin service (S3, ALB, and so on) already spreads over AZs.
User in Hyderabad
| ISP (short public path)
v
EDGE LOCATION nearby ---- has the file? ----yes----> answer in a few ms. Region never contacted.
|
no (cache miss)
v
REGIONAL EDGE CACHE (a bigger shared cache) ---- has it? ----yes----> answer
|
no
v AWS backbone (private fiber)
REGION (Mumbai) -> origin (S3 bucket or Application Load Balancer) -> data in AZs
|
v the file travels back and is KEPT at the edge for the next user| Edge location | Local Zone | Outposts | |
|---|---|---|---|
| Physical? | Yes, small facility | Yes, AWS hardware in a city | Yes, AWS rack in your building |
| Can I run my EC2 or database there? | No, only caching, DNS, security, acceleration | Yes, a subset of services | Yes, a subset of services |
| Connected to the Region by | AWS backbone | AWS private high-bandwidth links to its parent Region | A "service link" you provide: a VPN, or Direct Connect, to its parent Region |
| Who runs it? | AWS | AWS | AWS manages it. You provide space, power and network |
A "Point of Presence" is just an edge location (plus some regional edge caches). When CloudFront serves a cached picture from a site near the user, your Region is never contacted. This is the cheapest and fastest way to speed up a global audience, and Chapter 13 teaches it fully.
3.12 What Survives What: Designing for Failure#
"Highly available" means nothing until you say against which failure. Here are the failure sizes, from small to large, and what protects you from each.
| Failure | How often it happens | What survives it | Typical protection |
|---|---|---|---|
| One server or disk dies | Routine | Two or more instances behind a load balancer, or an Auto Scaling group, or RDS with a standby | Cheap and simple |
| A rack or host fails | Occasional | Instances on different hosts (spread placement) | Spread placement groups, multiple instances |
| An entire AZ fails | Rare | Resources running in at least two AZs, with enough spare capacity in each | Multi-AZ design (default for production) |
| An entire Region fails or is cut off | Very rare | A second Region with data copies and a way to switch traffic | Multi-Region design (only when the business justifies it) |
| A human mistake or attack deletes data | More common than any disaster | Versioning, backups, separate accounts, Object Lock | Backups and access control, not just replication |
Single AZ Multi-AZ Multi-Region
server dies DOWN survives survives
AZ fails DOWN survives survives
Region fails DOWN DOWN survives
relative cost 1x about 1.5-2x about 2-3x and more complexity
typical use dev and test production critical systems, strict RTO and RPOWhat resilience costs#
| Design | Extra cost comes from | Watch out for |
|---|---|---|
| Multi-AZ | Duplicate servers or a standby database, plus cross-AZ data transfer at about $0.01 per GB each way | Chatty services calling each other across AZs. Keep traffic in the same AZ where possible, with load balancers and cell designs |
| Multi-Region | A second full environment, inter-Region data transfer, replicated storage, and a lot of engineering and testing | Untested failover is not a plan. Practice it (Chapter 42) |
Default recommendation: design every production workload across at least two AZs (three if it needs a quorum, as with some clustered databases). Go to multi-Region only when a business requirement (RTO, RPO, legal, or global latency) demands it, and only after the Multi-AZ design is solid. Most outages are fixed by good Multi-AZ design plus backups. Few need a second Region.
Data transfer cheat rules (prices vary, check the pricing page): data into AWS from the internet is free. Data between AZs costs a little in each direction. Data between Regions costs more (often around $0.02 per GB). Data out to the internet costs the most (often around $0.09 per GB, after a free monthly allowance). Keep traffic local and cache at the edge.
3.13 The Shared Responsibility Model#
Analogy: a shared apartment building. The owner looks after the building: the roof, the lifts, the main entrance, the locks on the front door. You look after your own flat: your door key, who you let in, and what you keep inside. If someone walks in because you left your door open, the owner is not to blame.
AWS describes this as "security of the cloud" versus "security in the cloud".
| AWS is responsible for | You are responsible for |
|---|---|
| Security OF the cloud The data centers, hardware, host software, virtualization, and the global network, plus the software that runs managed services | Security IN the cloud What you build and put on top, depending on the services you choose |
It changes with the service#
This ties straight back to Chapter 2's ladder. The higher up the ladder, the more AWS handles.
| Task | EC2 (IaaS) | RDS (managed) | S3 (serverless storage) | Lambda (serverless compute) |
|---|---|---|---|---|
| Physical data center security | AWS | AWS | AWS | AWS |
| Hardware and hypervisor | AWS | AWS | AWS | AWS |
| Guest operating system patching | You | AWS | AWS | AWS |
| Database engine patching | You (if you installed one) | AWS | Not applicable | Not applicable |
| Application code and its vulnerabilities | You | You (your queries and schema) | Not applicable | You (your function) |
| Firewall rules (security groups, network access) | You | You | Bucket access settings: You | Who may invoke it: You |
| Identity and access (IAM) | You | You | You | You |
| Your data and its classification | You | You | You | You |
| Encryption choices (on or off, which key) | You | You (AWS provides the feature) | You (on by default today, key choice is yours) | You |
The most-failed question in Cloud Practitioner exams: "Who patches the guest operating system on an EC2 instance?" You do. "Who patches the database engine on RDS?" AWS does (you choose the maintenance window). "Who decides who can read an S3 bucket?" You do, always.
Real breaches are almost always on the customer side. Open S3 buckets, leaked access keys, overly broad IAM permissions, unpatched servers. AWS's side of the fence is very strong. Spend your effort on yours: Chapters 6 to 9 and Part 10.
Architect Decisions: Region, AZ, and Edge Choices#
| If the requirement says... | Decide | Why |
|---|---|---|
| "Data must stay in India" | Use only ap-south-1 or ap-south-2. Block other Regions with an SCP (Chapter 8) | Compliance first, enforced by guardrail |
| "The app must survive a data center loss" | Multi-AZ: at least two AZs for every layer | Fixes the most likely large failure at a modest cost |
| "We need to recover if the whole Region is gone" | Multi-Region with a chosen DR strategy (backup and restore, pilot light, warm standby, active-active) | Decide with RTO and RPO and the cost they justify |
| "Users worldwide, mostly static content" | One Region plus CloudFront | Edge caching gives most of the speed at a small cost |
| "Users worldwide, dynamic and write-heavy" | Multi-Region with Global Accelerator or latency routing, global data store | Needed when the distance itself is the problem |
| "A factory floor system needs under 10 ms and on-site data" | AWS Outposts or a Local Zone | Bring AWS to the user |
| "The feature I need is not in my Region yet" | Use it from another Region only if law and latency allow, otherwise wait or choose a different design | Cross-Region calls add latency and egress cost |
Traps: Mistakes That Cost Marks and Money#
"Each Region has exactly three AZs." Every Region has at least three. Some have more. Older documents mention Regions with two, so confirm for the Region you use with aws ec2 describe-availability-zones.
"Using two AZs means my app is highly available." Only if every layer is spread across them, there is spare capacity in the surviving AZ to carry the whole load, and failover is tested. Two web servers in different AZs but one database in a single AZ is still a single point of failure.
"Cross-Region backup equals disaster recovery." A backup copy in another Region lets you rebuild, slowly. DR means you can run there within the RTO you promised. They are different strategies at different prices (Chapter 42).
"AZ names are the same for every account." They are not guaranteed to be. Use AZ IDs when accounts must agree.
3.14 Hands-on Lab: Map the Regions and AZs of Your Own Account, Then Measure the World#
Time: 25 minutes. Cost: $0 (only read-only commands and a few tiny web requests). Prerequisite: an AWS account (create it in Chapter 4, then come back), and AWS CloudShell, which is a free terminal in your browser, already logged in.
Step 1. Open CloudShell and see which Region you are in#
In the AWS console, click the CloudShell icon (a terminal symbol at the top) and wait for the prompt. Note the Region name shown at the top right of the console. Then run:
aws configure list | grep region
echo $AWS_REGIONStep 2. List every Region and see which ones are opt-in#
aws ec2 describe-regions --all-regions \
--query "Regions[].[RegionName,OptInStatus]" --output tableLook at the OptInStatus column. opt-in-not-required means on by default. not-opted-in means disabled for your account. opted-in means you enabled it.
Step 3. List the AZs of Mumbai, with their AZ IDs#
aws ec2 describe-availability-zones --region ap-south-1 \
--query "AvailabilityZones[].[ZoneName,ZoneId,ZoneType,State]" --output tableWrite down which ZoneId belongs to ap-south-1a, 1b and 1c. If you have a friend with another account, compare your lists. You may find that their 1a has a different ID.
Step 4. Count the AZs in three other Regions#
for r in us-east-1 eu-central-1 ap-southeast-1; do
n=$(aws ec2 describe-availability-zones --region $r \
--query "length(AvailabilityZones)" --output text)
echo "$r has $n Availability Zones"
doneStep 5. Measure the distance with the stopwatch#
Every Region has a public DynamoDB "ping" address. The time to connect is about one network round trip, which makes it a simple latency probe.
for r in ap-south-1 ap-southeast-1 eu-central-1 eu-west-1 us-east-1 us-west-2 ap-southeast-2 sa-east-1; do
t=$(curl -s -o /dev/null -w "%{time_connect}" https://dynamodb.$r.amazonaws.com/ping)
echo "$r connect time: ${t}s"
doneMultiply each connect time by 1,000 to get milliseconds. Write the list from nearest to farthest and compare with the distance table in section 3.7. CloudShell runs in the Region you opened it in, so open it in Mumbai for the "India" view, then repeat in another Region to see how the ranking changes.
What you should see
The Region you are standing in answers in a few milliseconds (a few ms to tens of ms because it includes the internet path to the public endpoint). Neighboring Regions answer in tens of ms. Far Regions such as Sao Paulo or Sydney, from Mumbai, answer in the hundreds of ms. The ranking follows geography. If something looks odd (for example a far Region faster than a near one), run the loop again, because single measurements are noisy.
For Step 3 in Mumbai you should see three AZs (aps1-az1, aps1-az2, aps1-az3), possibly shuffled against the letters. In Step 4 you should see numbers of at least 3 for each Region.
Step 6 (thinking exercise). Choose Regions for three cases#
- A hospital in Germany storing patient records.
- A mobile game with players in Brazil, Japan and the US that needs a fast, global leaderboard.
- StackCafe's website for customers in Bangalore.
Show answer
1. eu-central-1 (Frankfurt), plus eu-west-1 or another EU Region as a DR copy, because compliance keeps data in the EU. 2. Several Regions near players (for example sa-east-1, ap-northeast-1, us-east-1), with Global Accelerator or latency-based DNS and a global data store such as DynamoDB global tables. 3. ap-south-1 (Mumbai), with CloudFront in front for static content.
Cleanup: nothing to delete. Only read-only commands were used. CloudShell closes itself when idle.
Cheat Sheet#
| Concept | Remember |
|---|---|
| Region | A geographic area. At least 3 AZs. Isolated from other Regions. About 39 today |
| AZ | One or more data centers. Independent power, cooling and network. Within about 100 km of each other. Single-digit ms apart |
| AZ connection | Dedicated, redundant metro fiber, high bandwidth, encrypted. Enables synchronous replication |
| Region connection | AWS global backbone: private fiber, terrestrial and undersea. Encrypted. Not the public internet |
| Data placement | Data stays in the Region you pick. You must copy it elsewhere on purpose |
| AZ ID | Same in every account. AZ names (the letters) may differ |
| Global services | IAM, Route 53, CloudFront, Organizations |
| Regional services | VPC, S3, DynamoDB, Lambda, SQS, SNS, ELB |
| AZ-scoped | EC2 instances, EBS volumes, subnets, NAT gateways |
| Edge | Edge locations, Local Zones, Wavelength, Outposts, Snow |
| Responsibility | AWS: security OF the cloud. You: security IN the cloud |
HIERARCHY data center < Availability Zone (1+ data centers) < Region (3+ AZs) < partition < the whole AWS network
AZ DISTANCE tens of km apart, all within ~100 km, ~1-2 ms round trip -> synchronous replication works
REGION LINK AWS backbone, ~1 ms per 100 km at best; Mumbai-Frankfurt ~120 ms; Virginia-Sydney ~200 ms
PICK A REGION 1 compliance > 2 latency > 3 services available > 4 price > 5 sustainability
SURVIVES Single-AZ: server loss only | Multi-AZ: AZ loss | Multi-Region: Region loss
DATA TRANSFER in from internet FREE | same-AZ private FREE | cross-AZ ~$0.01/GB each way | cross-Region ~$0.02/GB | out to internet ~$0.09/GB
ALWAYS use AZ IDs between accounts | check the Region selector first | MFA | least privilegeQuick Recap#
- The hierarchy is data center, Availability Zone, Region, partition, plus the edge and the global network.
- An AZ is one or more data centers with independent power, cooling and networking. A Region has at least three AZs, all within about 100 km, joined by dedicated, redundant, encrypted, low-latency metro fiber.
- That low latency (single-digit ms) is what lets databases copy data synchronously between AZs.
- Regions are isolated. They are linked by the AWS global backbone, which keeps inter-Region traffic off the public internet. Your data never moves between Regions unless you set it up.
- AZ names can differ per account. AZ IDs do not.
- Choose a Region by compliance, latency, services, price and sustainability.
- Services are global, Regional or AZ-scoped. EC2 instances and EBS volumes are AZ-scoped, so you spread them yourself.
- Design Multi-AZ by default. Add Multi-Region only when RTO, RPO, law or global latency demand it.
- Shared responsibility: AWS secures the cloud. You secure what you put in it.
Practice Section A: Certification-Style Scenarios (10)#
Click Show answer to reveal each answer. Try before you open it. Aim for 9 or more.
Q1. What is an AWS Availability Zone?
A. A single server rack
B. One or more discrete data centers with redundant power, networking and connectivity in a Region
C. A group of Regions
D. A CloudFront cache location
Show answer
B. An AZ is one or more data centers acting as an independent failure domain inside a Region.
Q2. A company needs its application to keep running if one data center location fails. Which design achieves this with the least extra complexity?
A. Deploy in a single AZ with larger instances
B. Deploy across multiple Availability Zones in one Region
C. Deploy in two accounts in the same AZ
D. Use a bigger EBS volume
Show answer
B. A Multi-AZ design survives an AZ failure. A single AZ cannot, however large its instances are.
Q3. A law requires customer data to remain in Germany. What should the architect do first?
A. Choose the cheapest Region
B. Choose the Region closest to all users
C. Choose a Region in Germany and prevent use of other Regions
D. Use CloudFront only
Show answer
C. Compliance and data residency come first. Choose Frankfurt (eu-central-1) and block other Regions with guardrails.
Q4. Which statement about how AWS Availability Zones in one Region are connected is correct?
A. They communicate only over the public internet
B. They are linked by dedicated, redundant, low-latency metro fiber
C. They are linked by satellite
D. They are not connected, and applications must replicate through S3
Show answer
B. AZs in a Region are interconnected with high-bandwidth, low-latency, redundant dedicated fiber, and the traffic is encrypted.
Q5. Why can synchronous replication between AZs be practical, while synchronous replication between distant Regions usually is not?
A. AZs have more disk space
B. AZs are close enough for single-digit millisecond latency, while distant Regions add tens or hundreds of milliseconds to every write
C. Regions use a different database engine
D. Cross-Region traffic is never encrypted
Show answer
B. Every synchronous write must wait for the second copy. At about 1 to 2 ms that is fine. At 100 ms or more it makes the application slow.
Q6. Which of the following is a global AWS service rather than a Regional or AZ-scoped one?
A. Amazon EC2 instance
B. Amazon EBS volume
C. AWS Identity and Access Management (IAM)
D. Amazon VPC subnet
Show answer
C. IAM is global. EC2 instances, EBS volumes and subnets live in a specific AZ, and a VPC is Regional.
Q7. An engineer launches an EC2 instance, then cannot find it after switching the console to another Region. What is the most likely reason?
A. The instance was deleted by AWS
B. EC2 resources are Regional, and the console shows one Region at a time
C. IAM is broken
D. The instance moves between Regions automatically
Show answer
B. Resources belong to the Region where they were created. Switch back to see the instance.
Q8. A company wants to deliver cached website content with low latency to users around the world. Which AWS infrastructure component supports this?
A. Edge locations
B. A larger EC2 instance in one AZ
C. A second VPC
D. An EBS snapshot
Show answer
A. Edge locations (used by Amazon CloudFront) cache content close to users.
Q9. Under the shared responsibility model, which task is the customer's responsibility for an Amazon EC2 instance?
A. Physical security of the data center
B. Replacing failed host hardware
C. Patching the guest operating system
D. Maintaining the hypervisor
Show answer
C. For EC2 the customer patches and secures the guest OS and everything above. AWS handles the data center, hardware and hypervisor.
Q10. Two AWS accounts each have a subnet in us-east-1a, yet the teams see cross-AZ data transfer charges between them. What is the best explanation and fix?
A. AZ letters can map to different physical AZs per account. Compare AZ IDs and align subnets to the same AZ ID
B. Data transfer within an AZ is always charged
C. The accounts are in different Regions
D. Subnets cannot be in the same AZ
Show answer
A. The name-to-physical mapping can differ per account. The AZ ID (for example use1-az1) identifies the real zone.
Practice Section B: Interview and Solution Design Questions (10)#
There is no single multiple-choice answer. Say your answer out loud first, then open the model answer. Interviewers care about clear reasoning and trade-offs.
I1. Explain the difference between a Region and an Availability Zone in one minute.
Show model answer
A Region is a geographic area, for example Mumbai, and it is isolated from every other Region for fault containment and data sovereignty. Inside it are at least three Availability Zones. An AZ is one or more data centers with its own power, cooling and network. AZs are tens of kilometers apart, within about 100 km, joined by dedicated redundant fiber with single-digit millisecond latency. So an AZ is the unit I spread across for high availability, and a Region is the unit I choose for compliance, latency and, if needed, disaster recovery.
I2. How are AZs connected, and why does that matter to a database designer?
Show model answer
They are connected by fully redundant, dedicated, encrypted metro fiber with high bandwidth and very low latency. Because round trips between AZs are around a millisecond or two, a database can write to two AZs synchronously before it confirms a commit, which is how RDS Multi-AZ and Aurora keep committed data safe if an AZ is lost, without making writes slow. Across Regions that would add tens or hundreds of milliseconds, so cross-Region replication is normally asynchronous, with a possible lag.
I3. How are Regions connected? Is customer data automatically replicated between them?
Show model answer
They are connected by the AWS global backbone, a private, redundant, high-capacity fiber network with terrestrial and undersea cables. Traffic between a customer's own resources in two Regions stays on that network and is encrypted. No data is replicated automatically. Regions are isolated by design, and the customer chooses whether to replicate, back up or export data to another Region, which keeps data sovereignty under the customer's control.
I4. Walk me through how you would choose a Region for a new application.
Show model answer
I start with compliance and data residency, because they are fixed constraints. Then I look at where users and dependent systems are to minimize latency. I check that every service I need is available in the candidate Region. I compare prices, because they differ by Region, and consider sustainability. Finally I pick a second Region for disaster recovery if the business needs it. For a startup serving Indian customers I would choose Mumbai and put CloudFront in front for static content.
I5. A stakeholder says "We use two AZs, so we are highly available." What would you check before agreeing?
Show model answer
Whether every layer is spread across both AZs (web, application, database, and also things like NAT gateways and caches). Whether the surviving AZ has the capacity to carry the full load if the other fails, which means headroom or auto scaling. Whether health checks and failover are configured and have actually been tested. And whether there are any hidden single points of failure such as one AZ-scoped dependency or a shared control-plane dependency. Two AZs is the start, not the proof.
I6. When would you recommend a multi-Region design, and when would you advise against it?
Show model answer
I recommend it when the business requires surviving a full Region failure with a strict RTO and RPO, when law requires data in several geographies, or when global users need low latency for dynamic content. I advise against it as a default, because it roughly doubles infrastructure, adds data-transfer costs, introduces consistency problems and demands regular failover practice. For most workloads a well-built Multi-AZ design with tested backups meets the requirement at much lower cost and risk.
I7. What is the difference between an AZ name and an AZ ID, and when does it matter?
Show model answer
The name, such as ap-south-1a, is a label that can map to a different physical AZ in different accounts, to spread load. The ID, such as aps1-az1, always identifies the same physical zone. It matters when two accounts share resources or networks: for example, to place subnets in the same physical AZ and avoid cross-AZ data charges and latency, I compare the IDs, not the letters.
I8. A user in Mumbai complains that your app, hosted in us-east-1, feels slow. Diagnose and propose options.
Show model answer
Distance is the likely cause. Mumbai to Virginia is around 200 ms round trip, and a page that makes several sequential calls multiplies that. Options in order of effort: put CloudFront in front to cache static and cacheable content at a nearby edge location, use fewer sequential calls, and move the application and data to ap-south-1 if the users are mainly in India, which also helps data residency. For dynamic global traffic I would consider Global Accelerator or a multi-Region design.
I9. Explain the shared responsibility model with one example for EC2 and one for S3.
Show model answer
AWS is responsible for security of the cloud: facilities, hardware, hypervisor and the software of managed services. The customer is responsible for security in the cloud. For EC2, AWS secures the data center and host, while I patch the guest operating system, configure the security groups and manage the application and data. For S3, AWS runs the storage system and its durability, while I decide who can access each bucket, whether Block Public Access is on, and how data is encrypted.
I10. Your CFO is surprised by a bill with large "data transfer" lines. What architectural causes would you investigate?
Show model answer
Chatty traffic between AZs (about $0.01 per GB each way), inter-Region replication or calls, NAT gateway data processing for traffic that could use VPC endpoints, and internet egress that a CDN could cache. I would use Cost Explorer filtered by usage type to find the biggest line, then fix the cause: keep traffic within one AZ where possible, add S3 and DynamoDB gateway endpoints, serve static content through CloudFront, and review replication that nobody uses.
Next up: Chapter 4. Your Safe AWS Playground (create the account the right way, lock down the root user with MFA, set a budget alert before you build anything, meet the console, CloudShell and the AWS CLI, and learn to clean up so you never get a surprise bill).