What is the difference between an AWS Region and an Availability Zone (AZ), and how do you use them to design a highly available application?
Answer
An AWS Region is a separate geographic area, such as Mumbai (ap-south-1) or Hyderabad (ap-south-2), that is fully isolated from other Regions. An Availability Zone (AZ) is one or more physically separate data centers inside a Region, each with its own power, cooling and networking, linked to the other AZs by low-latency private fiber. You spread an application across multiple AZs for high availability, and across multiple Regions for disaster recovery or to serve users on other continents.
How Regions and AZs fit together
Every Region has at least three AZs. Mumbai and Hyderabad both have three.
AZs in a Region are kept meaningfully far apart (AWS says within about 100 km) so a flood, fire or power failure in one does not take out another, but close enough for single-digit millisecond latency between them.
AZ names like ap-south-1a are mapped randomly per account to spread load. Use AZ IDs (for example aps1-az1) when you need to coordinate the same physical zone across accounts.
Beyond AZs there are edge extensions: Local Zones (compute closer to a city, such as Delhi and Kolkata), Wavelength Zones inside telecom networks, and edge locations used by CloudFront and Route 53.
Which resources live where
Knowing the scope of a service is half the interview answer:
An EBS volume in ap-south-1a cannot be attached to an instance in ap-south-1b. A subnet belongs to exactly one AZ. This is why "deploy across two AZs" really means "create subnets in two AZs and run instances in both".
Designing for availability
Multi-AZ (the default for production): an Application Load Balancer across subnets in 2 or 3 AZs, an Auto Scaling group spread over the same subnets, and RDS in Multi-AZ mode. Losing one AZ costs capacity, not uptime.
Multi-Region (for disaster recovery or global users): replicate data with S3 Cross-Region Replication, DynamoDB global tables or Aurora Global Database, and fail over with Route 53. This costs far more and adds consistency problems, so do it only when the business needs it.
Over-provision slightly so the surviving AZs can absorb traffic when one fails.
Choosing a Region
Compliance and data residency. Indian payment data falls under RBI storage rules, so a company like Razorpay keeps it in Indian Regions.
Latency to your users. Serving Bengaluru users from us-east-1 adds a couple of hundred milliseconds per round trip.
Service availability. New services and instance types often launch in us-east-1 first.
Price. The same instance type costs different amounts in different Regions.
Common mistakes
Running a "highly available" setup where every instance sits in one subnet, which means one AZ.
Forgetting that cross-AZ data transfer is billed, so chatty microservices spread across AZs can add a noticeable line on the bill.
Treating Multi-AZ as a backup. It protects against infrastructure failure, not against someone running DROP TABLE, which replicates instantly to the standby.
From global infrastructure to a single subnet. Each layer is contained in the one above it, and failure isolation gets stronger as you move up.
AWS global infrastructure: Over 30 Regions plus hundreds of edge locations.
Region (e.g. ap-south-1 Mumbai): Isolated geographic area with its own control plane.
Availability Zone (e.g. aps1-az1): One or more data centers with independent power and network.
Subnet: A slice of a VPC that lives in exactly one AZ.
EC2 instance or EBS volume: AZ-scoped resources that fail with their AZ.
Code examples
List AZs and their IDs in the Mumbai Region
# AZ names are account-specific; ZoneId is the same physical zone for everyone
aws ec2 describe-availability-zones \
--region ap-south-1 \
--query "AvailabilityZones[].{Name:ZoneName,Id:ZoneId,State:State}" \
--output table
Use the ZoneId when you must line up resources in the same physical AZ across accounts, for example with a shared VPC or PrivateLink.
Auto Scaling group spread over two AZs
# subnet-0aaa1111 is in ap-south-1a, subnet-0bbb2222 in ap-south-1b
aws autoscaling create-auto-scaling-group \
--auto-scaling-group-name web-asg \
--launch-template LaunchTemplateName=web-lt,Version='$Latest' \
--min-size 2 --max-size 6 --desired-capacity 2 \
--vpc-zone-identifier "subnet-0aaa1111,subnet-0bbb2222" \
--target-group-arns arn:aws:elasticloadbalancing:ap-south-1:123456789012:targetgroup/web/abc123
The --vpc-zone-identifier takes subnet IDs, here one in ap-south-1a and one in ap-south-1b. Auto Scaling balances instances across those AZs and rebalances after an AZ recovers.
Key points
Region = isolated geographic area; AZ = one or more isolated data centers inside a Region.
Every Region has at least 3 AZs connected by low-latency private links.
EC2, EBS and subnets are AZ-scoped; S3, DynamoDB and Lambda are Regional; IAM and Route 53 are global.
Multi-AZ gives high availability; Multi-Region gives disaster recovery and lower global latency at higher cost.
Pick a Region by compliance first, then latency, service availability and price.
Common follow-up questions
How would you design an application to survive the loss of an entire Region?
Why is cross-AZ data transfer charged, and how do you reduce it?
What is the difference between an AZ name and an AZ ID?
What are Local Zones and when would you use one?
Interview tips
Name a real Region like ap-south-1 and its AZ count; it shows hands-on familiarity.
Always connect the definition to a design: ALB plus Auto Scaling across two or three AZs.
Mention that Multi-AZ is not a backup strategy; interviewers like candidates who separate availability from recoverability.
Concepts covered
AWS Region, Availability Zone, Multi-AZ deployment, Data residency, Local Zones