AVAILABILITY ZONE A
☀ PUBLIC SUBNET
10.0.1.0/24🔒 PRIVATE SUBNET
10.0.11.0/24AVAILABILITY ZONE B
☀ PUBLIC SUBNET
10.0.2.0/24🔒 PRIVATE SUBNET
10.0.12.0/24VPC Internet Connection
🚀 How Traffic Flows
Example: A private EC2 instance needs to download software updates from the internet.
🧩 Core AWS VPC Components
Understand the important building blocks of AWS networking.
VPC & CIDR
Your logically isolated network inside AWS. Example: 10.0.0.0/16 defines the IP address range.
Subnets
Smaller IP ranges inside a VPC. Public and private subnets organize resources.
Route Tables
Control where network traffic goes. Public subnet routes to IGW. Private subnet routes to NAT Gateway.
Internet Gateway
Connects your VPC to the internet when routing and public addressing are configured.
NAT Gateway
Allows private subnet resources to access external IPv4 destinations without direct inbound access.
Security Groups & NACLs
Security Groups are stateful. Network ACLs are stateless. Both control network traffic.
☀ Public vs 🔒 Private Subnet
☀ Public Subnet
Its route table contains a route to an Internet Gateway. Resources need appropriate public addressing and security rules to communicate directly with the internet.
🔒 Private Subnet
Does not have a direct route to the Internet Gateway. Uses NAT Gateway for outbound IPv4 internet access or VPC endpoints for private AWS access.
🏗️ High Availability
Deploy workloads across multiple Availability Zones. Using one NAT Gateway per AZ improves availability and avoids cross-AZ NAT traffic.