Beginner · What cloud computing is · topic 4 of 50 · 25 min
Regions, availability zones and edge locations
Explanation
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.
| Provider | Indian regions (code) | City |
|---|---|---|
| AWS | Asia Pacific (Mumbai) ap-south-1 | Mumbai |
| AWS | Asia Pacific (Hyderabad) ap-south-2 | Hyderabad |
| Azure | Central India | Pune |
| Azure | South India | Chennai |
| Azure | West India | Mumbai |
| Google Cloud | asia-south1 | Mumbai |
| Google Cloud | asia-south2 | Delhi |
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.
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
- Compliance and data residency: does the law or a customer contract require the data to stay in India? If yes, only Indian regions qualify.
- Latency to users: pick the region nearest most of your users. For an all-India audience, Mumbai or Hyderabad is usually a good start.
- Service availability: newer services launch in some regions first. Check the provider's list of services by region.
- 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.
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
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)
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.
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.)
Why should an important app run in at least two availability zones?
Quick quiz
Read more (free)
Related help
Before this, learn
This topic builds on these. If something here feels new, open them first.
Related topics
- The shared responsibility modelWhat cloud computing is · same module
- IaaS, PaaS, SaaS and serverlessWhat cloud computing is · same module
- DNS and CDN: Route 53 and CloudFrontNetworking and databases: VPC and RDS
- How Azure is organised: tenants, subscriptions and resource groupsMicrosoft Azure essentials
- Designing for high availabilityHigh availability, scaling and disaster recovery
- Azure compute and storageMicrosoft Azure essentials
Questions people ask about this
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.
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.
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.
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 more topic in “What cloud computing is” before its exam: The shared responsibility model.
- Module 1 exam: What cloud computing is · 13 questions · 20 min, without help. 5 topics of this module still to finish first.
- Then the next module, AWS account, IAM and billing. 50 topics left in the course before the final exam.