VPC Route Table (RTB)
Governs Layer-3 IP routing logic within a VPC, directing packets to the local network, Internet Gateways, NAT Gateways, VPC peering connections, Gateway Endpoints, or Transit Gateways using longest prefix match.
AWS Container Placement
VPC
Summary
Contains a set of rules (called routes) that determine where network traffic from your subnet or gateway is directed.
When to Use (SAA-C03)
Always create separate Route Tables for Public Subnets vs Private Subnets; never route a Private DB Subnet to an IGW!
Allowed Ingress Connections & Ports
| Source Service | Protocol | Port | Architectural Rationale |
|---|---|---|---|
| SUBNET | ALL | All | Packets originating from compute/services within an associated subnet performing route lookup |
| IGW | ALL | All | VPC Ingress Routing lookup for incoming edge traffic |
Allowed Egress Targets & Ports
| Target Service | Protocol | Port | Data Flow Rationale |
|---|---|---|---|
| IGW | ALL | All | Default internet route (0.0.0.0/0) pointing to Internet Gateway |
| NAT | ALL | All | Private outbound route (0.0.0.0/0) pointing to NAT Gateway |
| S3-ENDPOINT | HTTPS | 443 | AWS Service Prefix List route (pl-63a5400a) pointing to Gateway VPC Endpoint |
| TRANSIT-GATEWAY | ALL | All | Inter-VPC or hybrid corporate network route |
| VPC-PEERING | ALL | All | Peer VPC CIDR route |
Key Configuration Parameters & AWS Best Practices
| Parameter | Format / Example | Purpose & Rationale |
|---|---|---|
| VPC ID (vpcId) (Required) | vpc-0a1b2c3d4e5f67890 | The VPC identifier in which the Route Table is created. Why: All route tables are strictly scoped to a single parent VPC and govern routing for its associated subnets. |
| Route Entries (rtbRules) (Required) | [{ destination: "0.0.0.0/0", targetNodeId: "igw-01" }] | List of routing rules containing destination CIDR blocks or AWS Prefix Lists and corresponding next-hop targets. Why: Without explicit routes, subnets can only communicate locally with other resources in the same VPC CIDR block. |
| Main Route Table (isMainRouteTable) | false | Designates this table as the default fallback route table for all subnets without an explicit route table association. Why: Ensures newly created subnets automatically inherit designated baseline routing rules. |
| Subnet Associations (associatedSubnetIds) | Array of subnet-xxxxxxxx IDs | Explicit list of subnet IDs associated with this route table. Why: Links subnets to this routing policy, overriding the VPC main route table. |
| Route Propagation (routePropagationEnabled) | false | Enables automatic route propagation from Virtual Private Gateways (Direct Connect or Site-to-Site VPN) or Transit Gateway attachments. Why: Eliminates manual route updates when on-premises BGP routers announce new IP prefixes. |
Practice Labs Using VPC Route Table
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 VPC Route Table live inside an AWS VPC architecture?
Valid container placement: VPC. Governs Layer-3 IP routing logic within a VPC, directing packets to the local network, Internet Gateways, NAT Gateways, VPC peering connections, Gateway Endpoints, or Transit Gateways using longest prefix match.
When should I use VPC Route Table on the AWS SAA-C03 exam?
Always create separate Route Tables for Public Subnets vs Private Subnets; never route a Private DB Subnet to an IGW!
Can I simulate VPC Route Table packet routing without an AWS account?
Yes. CloudTracer simulates VPC Route Table along with 53 AWS services directly in your browser and exports production Terraform HCL.