When learning AWS networking, one of the most important concepts to understand is the difference between: Public Subnet Private Subnet At first these terms may sound confusing. But once you understand how internet access works inside a VPC, the concept becomes very simple. In this article, we will understand: What a subnet is What public and private subnets are How internet access works in AWS What a Load Balancer does How routing works Real-world architecture examples What is a Subnet? A subnet is a smaller network created inside a VPC. When we create a VPC, AWS gives us a large IP address range called a CIDR Block . Example: 192.168.0.0/16 Instead of using the entire IP block, we divide it into smaller sections called Subnets . This helps organize resources properly and improves security. We mainly have two types of subnets: Public Subnet Private Subnet Why Do We Need Different Subnets?…