VPC Fundamentals

Difficulty: Advanced

Question

What are the components needed for a private EC2 to access the internet?

Answer

A NAT Gateway in a public subnet, an Internet Gateway attached to the VPC, and a route in the private subnet's route table pointing to the NAT Gateway.

Concepts covered

VPC, Subnet, Route Table, Internet Gateway, NAT Gateway