Skip to content
Visual explainer 2h to learn 4 steps

Regions, AZs, edge locations & shared responsibility

Explain how AWS infrastructure affects availability, latency and compliance.

By Invicly Tech, , in AWS Solutions Architect – Associate. About 12 minutes to read.

Topic 2 of 34

In short

AWS runs in Regions, each made of multiple isolated Availability Zones, plus hundreds of edge locations for CloudFront and Route 53. Spreading resources across AZs gives high availability, and Region choice drives latency, compliance and price. Under the shared responsibility model AWS secures the cloud and you secure what you put in it.

Think of it like this: A Region is a city, AZs are separate power-fed districts, and edge locations are corner shops near customers.

Explained simply

AWS has data centers all over the world, grouped into Regions. A Region is a geographic area, such as Frankfurt (eu-central-1) or Mumbai (ap-south-1). When you create a server or a database, you choose the Region it lives in, and your data stays there unless you copy it somewhere else.

Inside each Region are Availability Zones, or AZs. An AZ is one or more data centers with their own power, cooling and network. AZs in a Region are kilometers apart but joined by fast private fiber. If a fire or power cut hits one AZ, the others keep running. That is why good designs use at least two AZs.

Edge locations are smaller sites in many more cities. They do not run your servers. They cache web content for CloudFront, answer DNS queries for Route 53, and carry traffic for Global Accelerator, so users get answers from somewhere nearby.

Security is shared. AWS protects the buildings, hardware and the software that runs its services. You protect what you put on top: who can log in, your data, your firewall rules and, on EC2, the operating system. The more managed the service, the less is left for you.

Press Play on a diagram to walk through it one step at a time.

LayersAWS global infrastructure
  1. 1
    Global network

    Private AWS backbone linking all Regions and edge sites.

  2. 2
    Region

    Geographic area, e.g. eu-west-1; data stays unless you move it.

  3. 3
    Availability Zone

    One or more data centers with independent power and networking.

  4. 4
    Data center

    Physical facility; AZs are linked by low-latency fiber.

  5. 5
    Edge location

    Caches content and answers DNS close to users.

CompareShared responsibility
AWS: of the cloud
  • Physical data centers
  • Hardware and global network
  • Hypervisor and managed service infrastructure
  • Patching managed service platforms
You: in the cloud
  • IAM users, roles and policies
  • Data encryption and classification
  • Security groups and NACLs
  • Guest OS patching on EC2
FlowWhat happens when one AZ fails
  1. 1
    AZ goes dark

    Power or network loss in one zone.

  2. 2
    Load balancer

    Health checks fail; traffic goes to other AZs.

  3. 3
    Auto Scaling

    Launches replacement instances in healthy AZs.

  4. 4
    RDS Multi-AZ

    Standby is promoted; DNS points to it.

  5. 5
    App keeps serving

    Users may see a short blip, not an outage.

In depth

What an AZ really is

An AZ is not a single building. It is one or more discrete data centers with redundant power and networking. AZs in one Region are separated by a meaningful distance, up to about 100 km, so a flood or power failure is unlikely to hit two at once. They are still close enough for round trips of a few milliseconds, which makes synchronous replication practical. That is how RDS Multi-AZ keeps a standby copy in another AZ without slowing writes much.

AZ names like us-east-1a are mapped to physical AZs differently in each account, which spreads customers across zones. To line up AZs between accounts, use the AZ ID, such as use1-az1, which means the same physical zone everywhere.

Traffic between AZs is not free. In most Regions it costs about 0.01 USD per GB in each direction, which adds up for chatty services.

  • One AZ = one or more data centers
  • Up to about 100 km apart, a few ms latency
  • AZ names differ per account; AZ IDs do not
  • Cross-AZ traffic is billed per GB

Choosing a Region in four questions

Ask the questions in this order. First, compliance: does a law or contract say where the data must live? If so, that decides it. Second, latency: which Region is closest, in network terms, to most of your users? Third, service availability: new services and instance types often launch in a few Regions first, so check that everything you need exists there. Fourth, price: the same instance can cost noticeably more in Sao Paulo or Tokyo than in North Virginia.

Some Regions are opt-in. Regions launched after March 2019, such as Cape Town or Milan, are disabled by default and must be enabled in your account before you can use them.

A few things are tied to us-east-1 even if you never deploy there: CloudFront needs ACM certificates from us-east-1, and billing metrics live there.

FlowRegion selection order
  1. Step 1
    Compliance

    Data residency rules decide first.

  2. Step 2
    Latency

    Closest to most users.

  3. Step 3
    Services

    Every needed service and feature exists.

  4. Step 4
    Price

    Compare cost among the Regions left.

Zonal, regional and global services

Services live at different scopes, and that decides how you make them resilient. Zonal resources sit in one AZ: an EC2 instance, an EBS volume, a subnet, a NAT gateway. If that AZ fails, they fail with it, so you run copies in several AZs. Regional services spread themselves across AZs for you: S3, DynamoDB, SQS, Lambda and the VPC itself. Global services are not tied to one Region at all: IAM, Route 53, CloudFront and Organizations.

A good habit is static stability: run enough capacity so that losing one AZ still leaves you enough to serve peak traffic, without waiting for new instances to start. With two AZs that means 100 percent extra; with three AZs, 50 percent extra.

MapWhere services live
AWS service scope
  • Zonal
    • EC2 instance
    • EBS volume
    • Subnet
    • NAT gateway
  • Regional
    • S3 bucket
    • DynamoDB table
    • SQS queue
    • Lambda function
  • Global
    • IAM
    • Route 53
    • CloudFront
    • Organizations

Beyond Regions: Local Zones, Wavelength and Outposts

Sometimes even the nearest Region is too far. Local Zones place a small set of services, such as EC2 and EBS, in a large city, giving single-digit millisecond latency to users there. They are good for video editing, gaming or real-time trading tools. Wavelength Zones put AWS compute inside telecom 5G networks for mobile apps that need very low latency. Outposts are AWS racks installed in your own data center, for workloads that must stay on premises but should use the same APIs and tools.

Edge locations are different again: there are far more of them than Regions, and they run only edge services like CloudFront, Route 53, Global Accelerator and Shield. On the exam, "users in a specific city need very low latency" suggests Local Zones, while "must run in our own building" suggests Outposts.

Shared responsibility moves with the service

The split is not fixed. It slides depending on how managed the service is. On EC2 you patch the guest operating system, configure the firewall, install software and manage backups. On RDS, AWS patches the OS and database engine, while you still control who can connect, whether storage is encrypted, and how long backups are kept. On Lambda or S3 you mostly handle your code, your IAM permissions and your data.

Some controls are shared: AWS patches its infrastructure and you patch your guest OS and apps; AWS trains its staff and you train yours. Some are fully inherited from AWS, like physical security. Two things never move to AWS: your data and your identities. Misconfigured permissions and public buckets are always the customer's responsibility.

CompareWhat you still manage
EC2
  • Guest OS patches
  • Installed software
  • Security groups
  • Data and backups
  • IAM access
RDS
  • Network access rules
  • Encryption choice
  • Backup retention
  • Database users
  • IAM access
Lambda
  • Function code
  • Execution role
  • Dependencies
  • Data handled
  • IAM access

Learn it in 4 short steps

About 30m each. Track them with a timer in your plan.

  1. 1
    Explain Regions, AZs and edge locations~30m
  2. 2
    Choose a Region for latency and compliance~30m
  3. 3
    Design across multiple AZs~30m
  4. 4
    Apply the shared responsibility model~30m

Key points

  • Each Region has at least three AZs; design across two or more for high availability.
  • Pick a Region by compliance first, then latency to users, service availability and price.
  • Edge locations serve CloudFront, Route 53 and Global Accelerator, not EC2 instances.
  • The more managed the service, the more responsibility shifts to AWS.

Key terms

Tap a card to flip it. 0/5 known

Examples

Picking a Region for an Indian fintech

A payments startup must keep customer data in India and serve users across the country. Step 1, compliance: only Mumbai (ap-south-1) and Hyderabad (ap-south-2) qualify. Step 2, latency: both are in India, so both are fine for users. Step 3, services: Mumbai is older and usually has more services and instance types, so check that each service the design needs is listed there. Step 4: pick Mumbai as primary and keep backups in Hyderabad for disaster recovery, which still keeps the data in India. The commands below list the zones and their IDs.

bash
# Regions enabled for this account
aws ec2 describe-regions --query "Regions[].RegionName" --output text

# AZ names and their physical AZ IDs in Mumbai
aws ec2 describe-availability-zones --region ap-south-1 \
  --query "AvailabilityZones[].[ZoneName,ZoneId,State]" --output table

Sizing for the loss of one AZ

A web tier needs 6 instances to handle peak traffic. Step 1, two AZs: if one fails, the survivor must carry everything, so each AZ needs 6 instances, 12 in total (100 percent extra). Step 2, three AZs: losing one leaves two, so each AZ needs 3 instances, 9 in total (50 percent extra). Step 3: three AZs are cheaper for the same safety, which is why many production designs use three. Step 4: set the Auto Scaling group minimum to that number so the spare capacity is always running, not launched in a panic during an outage.

Quick reference

  • Region = geographic area; AZ = isolated data centers inside it; edge = caching and DNS near users
  • Pick a Region by compliance, then latency, then service availability, then price
  • AZ names are shuffled per account; use AZ IDs like use1-az1 to match across accounts
  • Cross-AZ data transfer costs about 0.01 USD per GB each way in most Regions
  • Zonal: EC2, EBS, subnet, NAT gateway. Regional: S3, DynamoDB, SQS. Global: IAM, Route 53
  • Regions launched after March 2019 are opt-in and must be enabled first
  • Static stability: 2 AZs need 100% spare capacity, 3 AZs need 50%
  • You always own your data and IAM, whatever the service

Common mistakes

  • Assuming a single AZ deployment is highly available; one AZ is one failure domain.
  • Believing AWS patches your EC2 guest OS; that is your job.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Two accounts both launch into us-east-1a. Are they guaranteed to be in the same physical AZ?

Question 2

2Which resource fails if its Availability Zone fails?

Question 3

3Video editors in Los Angeles need single-digit millisecond latency to EC2. The nearest Region is too far. What fits?

Question 4

4Who is responsible for encrypting data stored in an RDS database?

Question 5

5A tier needs 4 instances at peak and must survive one AZ failure. What is the minimum total across 3 AZs?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    List the Availability Zones in your lab Region, with both the zone name and the zone ID.

  2. Exercise 2medium

    A service needs 10 instances at peak. Work out the total instances and spare percentage needed to survive one AZ loss with 2, 3 and 4 AZs.

  3. Exercise 3hard

    A media company in Brazil has users in Brazil and Europe. Brazilian user data must stay in Brazil. Video files can be cached anywhere. Propose Regions and edge services.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

How many Regions and AZs does AWS have?
More than 30 Regions and over 100 AZs, and the numbers grow every year. The AWS global infrastructure page has the current list.
Is one AZ the same as one data center?
Not always. An AZ is one or more data centers that share a failure boundary, so treat the whole AZ as the unit that can fail.
Why is us-east-1 special?
It is the oldest and largest Region, new services often launch there first, and some global features depend on it, such as ACM certificates for CloudFront and billing metrics.
Does AWS move my data between Regions?
No. Data stays in the Region you chose unless you copy or replicate it yourself, or use a global service that you configured to do so.

Go deeper

ShareXLinkedInWhatsApp