Region vs availability zone
Lesson 1 of 72 in AWS Interview Mastery. Free to read, no account needed.
Regions and Availability Zones
An AWS Region is a separate geographic area that holds a group of AWS data centers. Mumbai is one Region, with the code ap-south-1. When a customer in Mumbai places an order on Kiranakart, the grocery delivery app runs in ap-south-1, close to them. Inside each Region sit several Availability Zones (AZs): isolated data centers with their own power, cooling and networking. Knowing both levels tells you where an app runs and how it copes when something breaks.
Naming Regions and AZs
Names nest the same way the places do. Every AZ belongs to exactly one Region, and its name is the Region code plus a letter. The Region ap-south-1 holds ap-south-1a and ap-south-1b, two of its AZs. Seeing ap-south-1b tells you the Region straight away. The letter only identifies that AZ within the Region. It does not tell you where the building is, and AWS maps letters to physical AZs differently for each account.
Failure isolation in action
Failure isolation means a fault in one AZ should not take down resources in another AZ of the same Region. Picture Kiranakart's orders API. In the first design, the only server sits in ap-south-1a. In the second, there is one server in ap-south-1a and one in ap-south-1b. Suppose ap-south-1a loses power:
| Design | ap-south-1a loses power | Result for customers |
|---|---|---|
| One server in ap-south-1a | Server goes down | Orders stop |
| One server in each AZ | Server in 1a goes down | Orders still flow through ap-south-1b |
Choosing a Region
You pick a Region on purpose, and three factors usually decide it. User latency is the delay between a customer and the servers, so Mumbai customers are best served from ap-south-1. Data residency means laws or contracts may require customer data to stay in a certain country. Service availability matters because not every AWS service is offered in every Region. Before launching anything new, Kiranakart would check all three.
| Factor | Question to ask | Kiranakart example |
|---|---|---|
| User latency | How far are the users? | Mumbai customers, so ap-south-1 |
| Data residency | Must data stay in-country? | Customer data kept in India |
| Service availability | Is the service offered here? | Check before using a new service |
Region vs AZ placement
Some resources are created in one specific AZ. An EC2 server launched in ap-south-1a stays in ap-south-1a, so if that AZ fails, the server fails with it. Other resources are region-scoped: you create them in the Region, and you do not choose an AZ. Kiranakart's invoice bucket and orders table are both like this. A common design is to choose the Region first, then spread copies of AZ-scoped resources across several AZs.
| Resource | Where it is placed | What it means |
|---|---|---|
| EC2 server | One AZ, such as ap-south-1a | Fails with its AZ |
| S3 bucket kiranakart-invoices | Region ap-south-1 | No AZ to pick |
| DynamoDB table orders | Region ap-south-1 | No AZ to pick |
Practice questions
- 1.
Which of these is placed in one specific Availability Zone rather than in the Region as a whole?
- A.
The S3 bucket kiranakart-invoices
- B.
The DynamoDB table orders
- C.
An EC2 server launched in ap-south-1a
- D.
The ap-south-1 Region code
Show answer
Answer: C.An EC2 server launched in ap-south-1a
An EC2 server is AZ-scoped: it stays in the zone it was launched in and fails with that zone. The S3 bucket and the DynamoDB table are region-scoped, so no AZ is chosen for them. The ap-south-1 Region code is a name, not a resource placed anywhere.
- A.
- 2.
A colleague thinks ap-south-1 is one data center building. Which statement correctly describes ap-south-1 and its AZs?
- A.
ap-south-1 holds several AZs, each with its own power
- B.
ap-south-1 is one AZ, with a and b as backup copies
- C.
ap-south-1a and ap-south-1b are separate Regions in Mumbai
- D.
One building whose rooms are ap-south-1a and ap-south-1b
Show answer
Answer: A.ap-south-1 holds several AZs, each with its own power
A Region such as ap-south-1 contains several AZs, and each AZ is an isolated data center with its own power, cooling and networking. The option claiming one building with rooms misreads AZs as compartments of one site. The option calling a and b separate Regions reverses the nesting, since AZs sit inside a Region. The option calling ap-south-1 a single AZ confuses the Region level with the AZ level.
- A.
- 3.
Kiranakart puts all three orders servers in ap-south-1a, trusting its well-built data centers. If ap-south-1a loses power, what happens?
- A.
Orders fail over to ap-south-1b automatically within the Region
- B.
All three servers go down together, so orders stop
- C.
Only one server goes down, and two keep orders flowing
- D.
Orders keep flowing since the AZ has internal power backup
Show answer
Answer: B.All three servers go down together, so orders stop
Resources placed in one AZ fail with that AZ, so all three servers stop together when ap-south-1a loses power. The option claiming internal power backup assumes an AZ cannot fail, which the lesson does not support. The option of only one server failing assumes the servers fail independently, but they share the same AZ. The option of automatic failover to ap-south-1b is wrong because no copy exists there, and the Region choice does not move resources between AZs.
- A.
- 4.
A teammate says ap-south-1a and ap-south-1b are in different Regions. What is the bug?
- A.
Letters name Regions, so different letters mean different Regions
- B.
Both share Region code ap-south-1; the letter picks the AZ
- C.
Only the number in ap-south-1 matters; the letters are ignored
- D.
The letter marks a country, so the two sit in separate places
Show answer
Answer: B.Both share Region code ap-south-1; the letter picks the AZ
Both names begin with the Region code ap-south-1, and every AZ name is that code plus one letter. The trailing letter only tells AZs apart inside the same Region, so the reasoning is wrong. The option claiming letters name Regions is wrong because the Region is the code part, not the letter. The option about letters marking a country is wrong because the letter does not indicate location. The option saying only the number matters is wrong because the full code, including the letter that distinguishes the AZ, is part of the name.
- A.
- 5.
Kiranakart's search service runs on one EC2 server in ap-south-1a. The team needs search to keep answering if ap-south-1a fails. Which change meets this?
- A.
Resize the one server to a larger instance in ap-south-1a.
- B.
Add a second server copy, also placed in ap-south-1a.
- C.
Run one copy in ap-south-1a and another in ap-south-1b.
- D.
Keep one server; its Region already spreads it across AZs.
Show answer
Answer: C.Run one copy in ap-south-1a and another in ap-south-1b.
An EC2 server is AZ-scoped, so it stays in the AZ it was launched in and fails with that AZ. Running a copy in ap-south-1a and another in ap-south-1b means one AZ's failure leaves a server running. A larger instance in the same AZ still fails with that AZ. Keeping one server assumes a Region spreads a single AZ-scoped server, which it does not. A second copy in the same AZ shares the same failure point.
- A.
- 6.
In AWS, which best describes a Region such as ap-south-1?
- A.
A single Availability Zone identified by a letter suffix
- B.
A storage bucket holding all of a customer's invoices
- C.
One data center building that hosts a single application
- D.
A geographic area holding a group of data centers
Show answer
Answer: D.A geographic area holding a group of data centers
A Region is a separate geographic area that holds a group of data centers, so it is not one building. The option describing one data center building is wrong because a Region contains many data centers. The option describing a single Availability Zone is wrong because an AZ is a single isolated data center inside a Region, not the Region itself. The option describing a storage bucket is wrong because a bucket is a storage resource, not a geographic area.
- A.
- 7.
Kiranakart runs one orders server in ap-south-1a and one in ap-south-1b. Which event would stop orders from flowing?
- A.
Power loss in ap-south-1a alone
- B.
One server process crashing in ap-south-1a
- C.
Cooling failure in ap-south-1b alone
- D.
A fault that hits the entire ap-south-1 Region
Show answer
Answer: D.A fault that hits the entire ap-south-1 Region
A fault that hits the entire ap-south-1 Region reaches both AZs, so both orders servers go down. Spreading across AZs only isolates faults that stay inside one AZ. Power loss in ap-south-1a alone leaves the copy in ap-south-1b running, so orders keep flowing. Cooling failure in ap-south-1b alone leaves the copy in ap-south-1a running. One server process crashing in ap-south-1a removes only one copy, and the other server keeps taking orders.
- A.
- 8.
Kiranakart has orders servers in ap-south-1a and ap-south-1b. Which resource does ap-south-1b have separately from ap-south-1a?
- A.
The orders table in DynamoDB
- B.
Its own power supply
- C.
The ap-south-1 Region code
- D.
The same cooling plant as ap-south-1a
Show answer
Answer: B.Its own power supply
Each AZ has its own power, cooling and networking, so ap-south-1b's power supply is separate from ap-south-1a's. The ap-south-1 Region code is shared by both AZs because each AZ belongs to that Region. The orders table in DynamoDB is region-scoped, so it is not tied to either AZ. The same cooling plant as ap-south-1a contradicts the rule that AZs have their own cooling.
- A.
- 9.
Kiranakart's customers are in Mumbai and the team has already chosen ap-south-1. Why does the Region choice come before spreading EC2 orders servers across AZs?
- A.
Service availability is checked per AZ, not per Region
- B.
Latency falls as a Region gains more AZs
- C.
Data residency is enforced by each AZ's own cooling
- D.
AZ spread only adds fault tolerance inside the chosen Region
Show answer
Answer: D.AZ spread only adds fault tolerance inside the chosen Region
Choosing a Region sets user latency, data residency and service availability. Spreading AZ-scoped resources across AZs happens inside that Region and only adds fault tolerance, so it cannot change those Region-level factors. 'Service availability is checked per AZ' is wrong because availability is checked per Region. 'Data residency is enforced by each AZ's own cooling' is wrong because residency is set by the Region, and cooling is not a residency control. 'Latency falls as a Region gains more AZs' is wrong because latency depends on the distance between users and the Region, not its AZ count.
- A.
- 10.
A teammate names a Mumbai Availability Zone
kiranakart-1a. What is the bug in this name?- A.
The letter should come before the Region code
- B.
The name should spell out the city, Mumbai
- C.
The prefix should be the Region code ap-south-1
- D.
The suffix should be a number, not a letter
Show answer
Answer: C.The prefix should be the Region code ap-south-1
An AZ name is the Region code followed by a letter, so Mumbai's AZs are ap-south-1a, ap-south-1b and so on. A company name is not a valid prefix. Putting the letter first breaks the nesting, which is not the main error here. Spelling out the city is not part of AZ naming, which uses the Region code. A letter suffix is the correct form, so a number is wrong.
- A.
Lessons in How AWS Pieces Fit Together
- Region vs availability zone
- Vpc, subnet and route table
- Public vs private subnet
- Security group vs network acl
- Shared responsibility model
- Iam user vs role for workloads
- Aws organizations and service control policies
72 lessons across 9 topics. See the full course