VPC and Subnets
A VPC is a regional network boundary; each subnet belongs to one Availability Zone and receives a route table.
How it works
An Amazon VPC is a logically isolated virtual network in an AWS Region. You assign address ranges to the VPC and divide them into subnets; each subnet resides in one Availability Zone and is associated with a route table. A public subnet has a direct route to an internet gateway, while a private subnet does not. Addresses, routes, and security controls together determine connectivity.
When to use it
Choose it when the requirement is isolate AWS resources into network ranges across Availability Zones.
Real-world example
A company deploys an application across two Availability Zones. It creates public subnets in each zone for an internet-facing load balancer and private subnets for application servers and databases. The team configures routes and security groups to allow only the necessary connections.
Common pitfall
A subnet cannot span multiple Availability Zones. To deploy resources across zones for higher availability, create a separate subnet in each zone; private subnets still need appropriate security controls.
Often confused with
Compare its service boundary with Internet Gateway and NAT Gateway; choose from the workload requirement.
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.