Networking Concepts
A cloud administrator launches a web server in a public subnet of a virtual private cloud. The server has a public IP address but cannot be reached from the internet. Which component must be attached to the VPC and referenced in the subnet's route table?
Show the answer
Correct answerD. Internet gateway
AWhy not this: It is a private dedicated link to a data center and does not provide internet reachability.
BWhy not this: It encrypts traffic to a remote network over the internet but does not publish a server to the public.
CWhy not this: It only supports outbound-initiated traffic for private hosts, so inbound requests would still fail.
DWhy this is right: It provides the route that allows two-way traffic between public-addressed instances and the internet.
An internet gateway is attached to the VPC and gives instances with public addresses two-way internet access through a route to it. A NAT gateway only lets private instances initiate outbound connections and does not accept unsolicited inbound traffic.