AWS Interview DropAdvanced TierScenario+50 XP on read1saved

Your EC2 instances in a private subnet need to reach S3 and a third-party API, but must never be reachable from the internet. Design the networking.

Core Summary

Outbound-only access comes from a NAT Gateway in a public subnet, but S3 traffic should skip it entirely through a VPC endpoint, which is free and never leaves the AWS network. Nothing can reach in because there's no route for it to take, not because a rule is blocking it, and that distinction is usually the real follow-up question.

Hints

Hint 1: A NAT Gateway lives in the public subnet, not the private one

Hint 2: S3 traffic should never leave the AWS network

Hint 3: Security groups are stateful; NACLs are not

Reported in interviews at Amazon, Cloudflare