Interview Prep/Networking/VPC & Cloud Network Design

Gateway endpoint versus interface endpoint: when do you use which?

IntermediateScenarioVPC & Cloud Network Design
Answer

Situation read → Both keep traffic off the internet but work very differently.

What I'd do →

  1. Gateway endpoints exist only for S3 and DynamoDB and work as route table entries (free)
  2. Interface endpoints are ENIs with private IPs in your subnets powered by PrivateLink and cost hourly plus per GB
  3. Interface endpoints are reachable from on-prem over VPN or Direct Connect, gateway endpoints are not
  4. Enable private DNS so ssm.eu-west-1.amazonaws.com resolves to the ENI IPs
  5. Secure with a security group allowing 443 from the VPC CIDR

Why → The gateway type is a routing construct, the interface type is a network interface, which is why only the latter extends to on-prem.

Interview tip → Mention S3 interface endpoints exist too, for on-prem access to S3 without public IPs.

All Networking questions Roadmap: Networking for DevOps

More on VPC & Cloud Network Design