Virtual Private Cloud (VPC) (VPC)
Foundational infrastructure envelope enclosing all subnets, gateways, compute, databases, and network policies within an AWS Region.
AWS Container Placement
Regional / Global Managed Scope (Outside VPC Subnets)
Summary
Logically isolated virtual network providing dedicated IP boundaries, subnets, and routing control.
When to Use (SAA-C03)
Use as the foundational container for every private or public workload; avoid overlapping CIDRs (e.g., two 10.0.0.0/16 VPCs) if peering or connecting via Transit Gateway.
Allowed Ingress Connections & Ports
| Source Service | Protocol | Port | Architectural Rationale |
|---|---|---|---|
| IGW | IP | All Ports | Bidirectional public internet gateway |
| TRANSIT-GATEWAY | BGP/Static | All | Hub-and-spoke interconnect with corporate network |
| VPN | IPsec | 500, 4500 (UDP) | Site-to-site encrypted on-premise tunnel |
| VPC-PEERING | Direct Route | All | Private peering connection to another VPC |
Allowed Egress Targets & Ports
| Target Service | Protocol | Port | Data Flow Rationale |
|---|---|---|---|
| IGW | IP | All | Internet bound traffic from public subnets |
| S3-ENDPOINT | HTTPS | 443 | VPC Gateway Endpoint to Amazon S3 |
| TRANSIT-GATEWAY | IP | All | Routing to shared services and other enterprise VPCs |
Key Configuration Parameters & AWS Best Practices
| Parameter | Format / Example | Purpose & Rationale |
|---|---|---|
| IPv4 CIDR Block (cidrBlock) (Required) | 10.0.0.0/16 (65,536 total IPs) | The primary private IP address segment allocated to this virtual network. Why: AWS IP routing requires a non-overlapping contiguous CIDR block from RFC 1918 (10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16). |
| Enable DNS Hostnames (Required) | true | Assigns public and private DNS hostnames to instances with public or private IP addresses. Why: Required for services like Application Load Balancers, RDS endpoints, and EC2 public DNS resolution. |
| Enable DNS Support (Required) | true | Enables the Amazon Route 53 Resolver (AmazonProvidedDNS at VPC CIDR + 2, e.g. 10.0.0.2). Why: Required for internal VPC name resolution and private hosted zones. |
| VPC Flow Logs | CloudWatch Logs / S3 Bucket | Captures IP traffic metadata (source, dest, port, protocol, action) passing through network interfaces. Why: Crucial for network troubleshooting, intrusion detection, and SOC 2 / FedRAMP auditing. |
| Instance Tenancy | default | Ensures instances run on shared hardware or single-tenant dedicated hardware. Why: Dedicated tenancy is required by specific regulatory licensing agreements. |
Practice Labs Using Virtual Private Cloud (VPC)
Missing Internet Gateway Route
Attach or route default outbound traffic 0.0.0.0/0 to the Internet Gateway in the public route table.…
CLF-02Locked-Out Security Group Ingress
Add an inbound rule allowing TCP port 80 from 0.0.0.0/0 to the web instance Security Group.…
CLF-03Public Database Exposure Vulnerability
Move or configure RDS to be in a private subnet, disable public accessibility, and restrict ingress exclusivel…
CLF-04Single Point of Failure (Single-AZ)
Add a secondary subnet in us-east-1b and front instances with an Application Load Balancer across both Availab…
CLF-06Tight Coupling in Transaction Processing
Decouple the architecture by placing an Amazon SQS queue between the producer and consumer.…
SAA-01FinTech Payment Ledger: $6,750 NAT Gateway S3 Cost Surge
Add an S3 prefix-list destination route in the private route table targeting the S3 Gateway Endpoint.…
Frequently Asked Questions
Where does Virtual Private Cloud (VPC) live inside an AWS VPC architecture?
Valid container placement: Regional / Global Managed Scope (Outside VPC Subnets). Foundational infrastructure envelope enclosing all subnets, gateways, compute, databases, and network policies within an AWS Region.
When should I use Virtual Private Cloud (VPC) on the AWS SAA-C03 exam?
Use as the foundational container for every private or public workload; avoid overlapping CIDRs (e.g., two 10.0.0.0/16 VPCs) if peering or connecting via Transit Gateway.
Can I simulate Virtual Private Cloud (VPC) packet routing without an AWS account?
Yes. CloudTracer simulates Virtual Private Cloud (VPC) along with 53 AWS services directly in your browser and exports production Terraform HCL.