Skip to main content

Command Palette

Search for a command to run...

AWS VPC Cheat Sheet: Key Concepts for AWS Solutions Architect Associate Exam

Updated
β€’3 min read
AWS VPC Cheat Sheet: Key Concepts for AWS Solutions Architect Associate Exam

Amazon Virtual Private Cloud (VPC) is the foundation of networking in AWS. It allows you to define a logically isolated virtual network within AWS. Understanding VPC is crucial for the AWS Solutions Architect Associate exam.

πŸ“Œ 1. VPC Basics

  • VPC (Virtual Private Cloud) β†’ Your private network in AWS.

  • Subnets β†’ Logical division of a VPC into public & private subnets.

  • Route Tables β†’ Define how traffic is routed between subnets and external networks.

  • Internet Gateway (IGW) β†’ Allows public access to the internet.

  • NAT Gateway / NAT Instance β†’ Allows private subnets to access the internet without being directly exposed.

  • VPC Peering β†’ Connects two VPCs privately (no transitive peering).

  • Transit Gateway β†’ A central hub to connect multiple VPCs & on-prem networks.

πŸ“Œ 2. IP Addressing & Subnetting

  • CIDR (Classless Inter-Domain Routing) β†’ Defines the IP address range for a VPC (e.g., 10.0.0.0/16).

  • AWS reserves 5 IPs per subnet (first 4 and last 1 IP address .0, .1, .2, .3, .255).

    • .0: Network address

    • .1: Reserved by AWS for the VPC router

    • .2: Reserved by AWS for mapping to Amazon-provided DNS

    • .3: Reserved by AWS for future use

    • .255: Network broadcast address.

  • Public Subnet β†’ Has a route to the Internet Gateway (IGW).

  • Private Subnet β†’ No direct internet access, uses NAT Gateway/Instance.

  • Private IP β†’ assigned from the subnet range

  • Public IP β†’ assigned from the Amazon’s pool of Public IPs

  • Elastic IP (EIP) β†’ Static public IP address for NAT Gateway or EC2.

πŸ“Œ 3. Security & Access Control

  • Security Groups (SGs) β†’ Stateful firewall controlling inbound/outbound traffic at the instance level.

  • Network ACLs (NACLs) β†’ Stateless firewall controlling traffic at the subnet level.

  • VPC Flow Logs β†’ Captures IP traffic logs (useful for security monitoring).

  • AWS PrivateLink β†’ Securely connects VPC to AWS services without using the internet.

  • VPC Endpoints:

    • Interface Endpoint β†’ Uses AWS PrivateLink (for services like SQS, SNS, S3, DynamoDB).

    • Gateway Endpoint β†’ Route-based for S3 and DynamoDB only (free).

πŸ“Œ 4. High Availability & Connectivity

  • Multi-AZ Deployment β†’ Distribute subnets across multiple Availability Zones (AZs) for redundancy.

  • VPN (Virtual Private Network) β†’ Connects on-premises data centers to AWS securely.

  • Direct Connect (DX) β†’ Dedicated private connection between on-premises and AWS (better performance than VPN).

  • Transit Gateway β†’ A central hub for many-to-many VPC & on-prem connections.

πŸ“Œ 5. Best Practices & Exam Tips

βœ… Always place databases in private subnets to avoid direct internet exposure.

βœ… Use NAT Gateway instead of NAT Instance (fully managed, highly available).

βœ… Security Groups are stateful, while NACLs are stateless.

βœ… VPC Peering does not support transitive routing (use Transit Gateway instead).

βœ… S3 Gateway Endpoints are free, while Interface Endpoints incur charges.

βœ… Flow Logs help with network monitoring & troubleshooting.

βœ… Direct Connect is better than VPN for low latency & high bandwidth needs.

βœ… Use PrivateLink to connect securely to AWS services inside VPC.

πŸš€ Final Thoughts

Understanding AWS VPC is critical for designing secure, scalable, and high-performance architectures. Mastering subnets, security, and connectivity options will help you ace the AWS Solutions Architect Associate exam and build real-world AWS solutions.

More from this blog

T

Tech brains

20 posts