Sub topic 1
How AWS Is Laid Out: Regions, AZs, and the Edge
Prerequisites
Assume you understand basic cloud ideas, virtual servers, storage, networks, and IP addresses. You should also be comfortable running commands in a terminal.
AWS global infrastructure
AWS divides its infrastructure into Regions, Availability Zones (AZs), and edge locations. These layers control where workloads run, how they fail, and how close they are to users.
An edge location is a point of presence near users. Services such as Amazon CloudFront use edge locations to cache content and reduce network latency. Edge locations are not places where you normally choose to launch an EC2 instance.
Regions: isolated geographic areas
An AWS Region is a separate geographic area, such as us-east-1 or eu-west-1. Each Region is designed to be independent from other Regions. A regional outage can therefore affect one Region without necessarily affecting another.
Choose a Region by considering:
- Latency: Choose a nearby Region for faster responses.
- Data residency: Some organizations must keep data in a particular country or legal area.
- Compliance: Regulations and certifications vary by Region.
- Service availability: New or specialized services may not exist everywhere.
- Price: Rates, taxes, and data-transfer charges can differ.
You select a Region when creating many AWS resources. The AWS console usually shows only resources in the currently selected Region.
Availability Zones: isolated locations within a Region
An Availability Zone is one or more separate data centers inside a Region. AZs have independent power, cooling, and networking. They are connected with high-bandwidth, low-latency links, but a failure can still affect one AZ.
A Region normally contains multiple AZs. Deploying copies of an application in at least two AZs helps it continue operating when one AZ fails.
Global, regional, and zonal resources
Resource scope tells you where a resource exists and what can use it.
- Global: Available across Regions. Examples include CloudFront distributions and Route 53 hosted zones.
- Regional: Exists in one Region. Examples include a VPC and most S3 buckets.
- Zonal: Exists in one AZ. Examples include an EC2 instance, EBS volume, and subnet.
Exercise
Where should you place two application servers if the design must tolerate one AZ failure?
Show answer
Place one server in each of two different Availability Zones in the same Region.