VPC & Networking (Overview) What is a VPC? VPC (Virtual Private Cloud) is a private, isolated section of the AWS cloud where you can launch and manage your AWS resources (like EC2, RDS, etc.). It provides control over networking, including IP addressing, subnets, routing, and security. Think of it as your own virtual data center in AWS. Why VPC Matters VPC concepts are essential for networking-related AWS services. In-depth knowledge is required for advanced certifications such as: AWS Certified Solutions Architect – Associate AWS Certified SysOps Administrator – Associate For CCP, understanding high-level concepts and their purpose is sufficient. Key Components to Know (for CCP) Component Purpose / Function VPC The virtual private network environment in AWS. Subnets Divide a VPC into smaller networks; can be public (internet-accessible) or private. Internet Gateway (IGW) Allows communication between resources in a public subnet and the internet. NAT Gateway Enables outbound internet access for private subnets without exposing them publicly. Security Groups Act as stateful firewalls controlling inbound and outbound traffic at the instance level. Network ACLs (NACLs) Stateless firewalls controlling traffic at the subnet level. VPC Flow Logs Capture network traffic information for monitoring and troubleshooting. VPC Peering Connects two VPCs privately using AWS’s internal network. VPC Endpoints Enable private connectivity to AWS services (like S3, DynamoDB) without using the internet. Site-to-Site VPN Connects an on-premises network to a VPC over the internet securely. Direct Connect Establishes a dedicated physical connection between on-premises and AWS for low latency. Transit Gateway Central hub to connect multiple VPCs and on-premises networks efficiently. CCP Exam Relevance The VPC topic accounts for less than 1–2 questions on the exam. Focus on definitions, purposes, and relationships between components. Hands-on familiarity with the default VPC (created automatically by AWS) is helpful. Key Takeaways Understand what each component does and why it’s used. No need to configure or design a VPC for the CCP level. Exam tests conceptual clarity, not technical implementation. IP Addresses in AWS IPv4 Overview IPv4 (Internet Protocol version 4) provides around 4.3 billion unique addresses. Common format: 192.0.2.1 (four octets). Used for most existing networks and devices. Public IPv4 Public IPs are reachable over the internet. Assigned automatically when creating EC2 instances (if enabled). Behavior: Released when instance is stopped. A new public IP is assigned when instance is started again. Pricing: AWS charges $0.005/hour per public IPv4 address (including Elastic IPs). Free Tier: 750 hours of public IPv4 usage per month. Private IPv4 Used for internal communication within private networks (e.g., inside a VPC). Example range: 192.168.0.0/16. Not accessible from the internet. Remains the same for an EC2 instance’s entire lifetime, even after stop/start. Elastic IP (EIP) A static public IPv4 address that remains the same even if an instance is stopped and restarted. Useful for consistent IP mapping (e.g., DNS records). Charged if allocated but not associated with a running instance. IPv6 Overview IPv6 (Internet Protocol version 6) is the newer protocol with 3.4 × 10³⁸ addresses (virtually unlimited). Example format: 2600:1f18:abcd:1234::1. All IPv6 addresses are public (no private range). Free to use in AWS (no hourly charge). IPv4 vs IPv6 (Quick Comparison) Feature IPv4 IPv6 Address Space 4.3 billion 3.4 × 10³⁸ Format 4 decimal octets (e.g., 192.168.0.1) Hexadecimal blocks (e.g., 2600:1f18::1) Private Range Yes No Internet Reachability Optional Always Public AWS Cost $0.005/hour Free Example Usage Legacy systems, internal networking New apps, scalable internet exposure Exam Tip Know the difference between public, private, and elastic IPs. Remember: IPv6 = free + public-only + huge address space. For CCP, focus on behavior and cost, not configuration details. VPC (Virtual Private Cloud) Overview Definition VPC (Virtual Private Cloud) is a private, isolated network in AWS used to deploy cloud resources like EC2 instances, databases, etc. Each VPC is region-specific. If you use multiple AWS Regions, you have separate VPCs in each region. VPC Structure A VPC contains subnets, which are partitions of the VPC network. Each subnet is associated with one Availability Zone (AZ). CIDR Range (Classless Inter-Domain Routing) defines the IP address range of a VPC. Example: 10.0.0.0/16. ...