Route Tables
Route Tables are used to define routes for the traffic within a VPC, allowing communication between subnets and determining how network traffic is directed between resources. Each subnet within a VPC must be associated with a route table, and the table can have multiple entries with varying rules controlling which traffic is allowed or denied to reach the specific destinations. Route Tables provide the ability to configure public and private routing, which dictates if instances within the subnet have access to the internet. When creating a VPC, a default route table is created, which can be modified or replaced with custom route tables based on specific needs.
Guide: Understanding Route Tables in Amazon VPC
What is Route Table in Amazon VPC?
A Route Table in Amazon VPC is a fundamental component which is used to determine where network traffic is directed, based on its destination IP address. Every subnet in a VPC must be associated with a route table; which controls the traffic for that subnet.
Importance of Route Tables in Amazon VPC
Route Tables plays a vital role in the management and control of network traffic flow. With Route tables, you can ensure that traffic is routed correctly to its intended destination. Incorrectly configured route tables can cause traffic loss, unnecessary cost and security issues.
How Route Tables work?
A route table contains a set of rules, called routes, which are used to determine where network traffic is directed. Each subnet in your VPC must be associated with a route table; the table controls the traffic for that subnet. Route tables contain a default route called the local route, which enables communication within the VPC.
Exam Tips: Answering Questions on Route Tables
When tackling exam questions on Route Tables, remember the following tips:
- Understand that every subnet in your VPC is associated with a route table.
- Understand the function of a local route in Amazon VPC.
- Make sure you're aware of the security implications of correctly configuring your route tables.
- Remember that modifications to route tables can cause traffic to be routed in non-intuitive ways - so understanding the impact of changes is key.
AWS Certified Solutions Architect - Route Tables Example Questions
Test your knowledge of Route Tables
Question 1
An organization launches temporary Amazon EC2 instances in a dedicated subnet for a batch job. The instances must download updates from the Internet but must not be reachable from the Internet. What route table configuration should the subnet use?
Question 2
A company set two instances in two subnets, Instance A in Subnet A, and Instance B in Subnet B. Instance A is connected to their headquarters via a VPN connection. They want all traffic between Instance B and the Headquarters to pass through Instance A for further inspection and monitoring. Which Route Table configuration is required?
Question 3
An EC2 instance hosts a public website in a VPC. The instance is in a public subnet, has an Elastic IP, and the subnet’s route table already includes a 0.0.0.0/0 route to an Internet Gateway. You need to allow only specific administrator source IP addresses to access the instance via SSH (TCP 22). What change, if any, is required to the subnet’s route table?