NETWORK & TRAFFIC VPC foundations

Internet Gateway (IGW)

Enables two-way IPv4 and IPv6 traffic between a VPC and the internet.

Official AWS Reference https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html ↗
SCOPE Regional
HIGH AVAILABILITY Multi-AZ Compatible
RESILIENCE Production Grade

// DECISION LOGIC MATRIX

✓

When to Choose

Resources have public IPv4 or IPv6 addresses and their route table points at the IGW.

✕

When to Avoid

Instances must be outbound-only. Use a NAT gateway.

// EXAM TRAPS & SIGNAL KEYWORDS

private subnets, outbound-only, bandwidth bottleneck

// OFFICIAL AWS REFERENCE

AWS https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html ↗

"An internet gateway is a horizontally scaled, redundant, highly available VPC component allowing communication between your VPC and the internet. It supports IPv4 and IPv6 and adds no availability risk or bandwidth constraint."

  • A subnet is public if its route table has a route to an internet gateway, private if it does not.
  • For IPv4 the IGW performs one-to-one NAT between the private address and the public or Elastic IP.
  • No charge for the internet gateway. EC2 data transfer charges still apply.

// INTERNET GATEWAY (IGW) TAKEAWAYS

01

Role: Enables two-way IPv4 and IPv6 traffic between a VPC and the internet.

02

Choose: Resources have public IPv4 or IPv6 addresses and their route table points at the IGW.

03

Avoid: Instances must be outbound-only. Use a NAT gateway.

04

Trap: Watch for exam signals like private subnets, outbound-only, bandwidth bottleneck.

05

Fact: A subnet is public if its route table has a route to an internet gateway, private if it does not.

06

Fact: For IPv4 the IGW performs one-to-one NAT between the private address and the public or Elastic IP.

07

Fact: No charge for the internet gateway. EC2 data transfer charges still apply.

// PRACTICE QUESTIONS

QUESTION #ditectrev_302
You have deployed a three-tier web application in a VPC with a CIDR block of 10.0.0.0/28. You initially deploy two web servers, two application servers, two database servers and one NAT instance for a total of seven EC2 instances. The web, application and database servers are deployed across two Availability Zones (AZs). You also deploy an ELB in front of the two web servers, and use Route 53 for DNS. Web traffic gradually increases in the first few days following the deployment, so you attempt to double the number of instances in each tier of the application to handle the new load. Unfortunately some of these new instances fail to launch. Which of the following could be the root cause? (Choose 2 answers)
Solve Question →
QUESTION #ditectrev_490
You are implementing a URL whitelisting system for a company that wants to restrict outbound HTTPS connections to specific domains from their EC2-hosted applications. You deploy a single EC2 instance running proxy software and configure it to accept traffic from all subnets and EC2 instances in the VPC. You configure the proxy to only pass through traffic to domains that you define in its whitelist configuration. You have a nightly maintenance window of 10 minutes where all instances fetch new software updates. Each update is about 200MB in size and there are 500 instances in the VPC that routinely fetch updates. After a few days you notice that some machines are failing to successfully download some, but not all of their updates within the maintenance window. The download URLs used for these updates are correctly listed in the proxy's whitelist configuration and you are able to access them manually using a web browser on the instances. What might be happening? (Choose 2 answers)
Solve Question →

Ready to test your Internet Gateway (IGW) knowledge?

2 practice questions cover Internet Gateway (IGW).

Start Practice →