Skip to content

Beginner · What cloud computing is · topic 4 of 50 · 25 min

Regions, availability zones and edge locations

Explanation

A region is a geographic area with several data centres, such as AWS Asia Pacific (Mumbai). Inside a region, availability zones are separate data centres with their own power and cooling, linked by fast private networks, so one fire or flood does not take your app down. Edge locations cache content close to users. You choose a region for latency, law, available services and price.

Why location matters

Data travels through cables at a large but finite speed. A request from Chennai to a server in Mumbai and back takes a few tens of milliseconds; to the United States it takes a few hundred. That delay is called latency. Laws also care about location: some data must stay in the country. So every cloud lets you choose where your resources live.

Regions

A region is a separate geographic area where a provider runs data centres. Each region is independent: you create resources in a region, and they stay there unless you copy them elsewhere. Each provider has dozens of regions worldwide; check their global infrastructure pages for the current list.

ProviderIndian regions (code)City
AWSAsia Pacific (Mumbai) ap-south-1Mumbai
AWSAsia Pacific (Hyderabad) ap-south-2Hyderabad
AzureCentral IndiaPune
AzureSouth IndiaChennai
AzureWest IndiaMumbai
Google Cloudasia-south1Mumbai
Google Cloudasia-south2Delhi

Availability zones

An Availability Zone (AZ) is one or more data centres inside a region with its own independent power, cooling and networking. AZs in a region are kilometres apart, so a flood or power failure in one is unlikely to hit another, but close enough to be joined by fast, low-latency private links. Most AWS regions have three or more AZs, named like ap-south-1a, ap-south-1b and ap-south-1c. Google calls them zones (asia-south1-a, asia-south1-b, asia-south1-c), and Azure also uses availability zones in many regions.

The key design rule: run important apps in at least two AZs. If one zone fails, the other keeps serving users. This is called high availability, and module 10 covers it in depth.

Think of it like this: A region is a city; availability zones are separate hospitals in that city, each with its own generator and water supply, connected by fast roads. If one hospital loses power, patients go to another one across town, not to a different city.

Edge locations and local zones

An edge location, or point of presence (PoP), is a small site in many more cities than regions. It is used mainly by the content delivery network (CDN), a service that keeps copies (a cache) of images, videos and web pages near users. AWS CloudFront, Azure Front Door and Google Cloud CDN use them. A video served from an edge location in Bengaluru reaches a Bengaluru user much faster than one served from Mumbai.

Some providers also offer extensions of a region placed in a big city, for apps that need very low latency there. AWS calls them Local Zones, and has some in Indian cities such as Delhi and Kolkata (check the current list). You will not need them as a beginner, but recognise the name.

How to choose a region

  1. Compliance and data residency: does the law or a customer contract require the data to stay in India? If yes, only Indian regions qualify.
  2. Latency to users: pick the region nearest most of your users. For an all-India audience, Mumbai or Hyderabad is usually a good start.
  3. Service availability: newer services launch in some regions first. Check the provider's list of services by region.
  4. Price: the same server can cost a little more or less in different regions. Compare in the pricing calculator.

Apply them in this order: compliance first, because it is a hard yes or no; then filter by the services you need; then pick the lowest latency; use price to break a close tie.

Careful: Common mistakes: (1) Building in the default region the console shows (often US East) and later discovering Indian users wait longer and the data is outside India. Always check the region selector at the top of the console. (2) Putting every server in one AZ: one zone failure then takes the whole app down. (3) Assuming ap-south-1a in your account is the same physical zone as ap-south-1a in another account. AWS maps names differently per account; use AZ IDs (like aps1-az1) when two accounts must agree.
Tip: On the AWS console, many services are regional. If your server "disappeared", first check that you are looking at the right region.

Need help?

Stuck on a word or an idea? Search this course, or every course, and jump straight to the explanation or a worked question.

Try:

Watch the lesson

Regions, availability zones and edge locations · 1/6

Location matters

Where your cloud resources run matters for speed and for the law. Every provider lets you choose.

Prefer a video by a teacher? Find free videos on “AWS regions availability zones edge locations explained” on YouTube ↗

In real life: Choosing a region for a Hyderabad health-tech app

A health-tech startup in Hyderabad stores patient appointment data and wants it to stay in India because of the DPDP Act and hospital contracts. Most users are in Telangana and Andhra Pradesh. The team filters to Indian regions (compliance), checks that every service they need exists there, and measures latency: Hyderabad is fastest for their users, and Mumbai is a close second. They run the app in ap-south-2 across two AZs, keep backups copied to ap-south-1, and serve images through a CDN so users in other states also get fast pages.

Practice (0/3 done)

Task 1 · Code · Python

You measured the round-trip latency (in milliseconds) from your users to some regions, as a dict like {"ap-south-1": 28, "ap-southeast-1": 61}. Write fastest(latencies) that returns the name of the region with the lowest latency.

Task 2 · Code · Python

Write choose_region(regions, required, service). regions is a list of dicts with "name", "latency_ms", "compliance" (a list of labels such as "in-india") and "services" (a list). Return the name of the region with the lowest latency that has EVERY label in required AND offers service. If none qualifies, return None. (The labels and service lists in the tests are made up for practice.)

Task 3 · Question

Why should an important app run in at least two availability zones?

Quick quiz

Question 1

1.Which is the AWS region code for Asia Pacific (Hyderabad)?

Question 2

2.What is an Availability Zone?

Question 3

3.What are edge locations mainly used for?

Question 4

4.A contract says customer data must stay in India. What do you check FIRST when picking a region?

Question 5

5.Which Google Cloud region is in Delhi?

Read more (free)

Before this, learn

This topic builds on these. If something here feels new, open them first.

Open a question to see the answer and why. The first ones are this topic's own quiz, so try the quiz above before you peek.

Which is the AWS region code for Asia Pacific (Hyderabad)?

Answer: ap-south-2

Mumbai is ap-south-1 and Hyderabad is ap-south-2.

What is an Availability Zone?

Answer: One or more data centres in a region with independent power, cooling and networking

AZs are isolated data centres inside one region, joined by low-latency links.

What are edge locations mainly used for?

Answer: Caching content close to users through a CDN

Edge locations (points of presence) serve cached content near users.

A contract says customer data must stay in India. What do you check FIRST when picking a region?

Answer: Compliance: only Indian regions qualify

A legal or contract rule is a hard filter, so it comes before latency or price.

Which Google Cloud region is in Delhi?

Answer: asia-south2

asia-south1 is Mumbai and asia-south2 is Delhi.

A user requests a file that the nearest edge location does not have. What happens?Related

Answer: The edge fetches it from the origin, returns it and caches it

That is a cache miss: the edge gets the object from the origin and keeps a copy for later requests.

From DNS and CDN: Route 53 and CloudFront

Which Indian Azure region is in Pune?Related

Answer: Central India

Central India is in Pune, South India in Chennai and West India in Mumbai.

From How Azure is organised: tenants, subscriptions and resource groups

A web tier (99.9%) depends on an auth service (99.9%) and a database (99.95%). All three must work. What is the overall availability, roughly?Related

Answer: 99.75%

In series: 0.999 × 0.999 × 0.9995 ≈ 0.9975, about 99.75%, lower than any single part.

From Designing for high availability

Which redundancy keeps 3 copies across availability zones AND copies in a paired region?Related

Answer: GZRS

GZRS is ZRS in the primary region plus asynchronous copies in the secondary region.

From Azure compute and storage

Pass the quiz (60% or more) or mark this topic as done when you are ready.

Your progress is saved on this device only.

Next steps

  1. 1 more topic in “What cloud computing is” before its exam: The shared responsibility model.
  2. Module 1 exam: What cloud computing is · 13 questions · 20 min, without help. 5 topics of this module still to finish first.
  3. Then the next module, AWS account, IAM and billing. 50 topics left in the course before the final exam.

← Previous: Public, private, hybrid and multi-cloud