Explain it simpler
AWS services like S3 normally live at public addresses on the internet. Private servers can reach them through a NAT gateway, but that is like driving out onto the public highway and paying a toll each time. VPC endpoints build a private side road from your network straight to the service, so traffic never leaves AWS. There are two kinds. A gateway endpoint is a free entry in your road map that works only for S3 and DynamoDB. An interface endpoint puts a small network card with a private address in your subnet that stands in for almost any AWS service, and it costs a little per hour. Endpoint policies act like a sign on the side road saying which destinations are allowed, for example only your company's buckets.
The monthly cost review at Cedar Valley Analytics is going badly. Line one on the bill is NAT gateway data processing, and it is bigger than the EC2 fleet itself. Elena, the data platform lead, explains that the nightly jobs pull terabytes from S3, and every byte flows from private subnets through the NAT gateway. The security team piles on: they want proof that the data buckets can only be reached from inside the company network, and the jobs also need Secrets Manager and SQS without touching the internet. Someone suggests just opening a public subnet. Elena thinks there is a cleaner way that is both cheaper and more private. What is it?
Most AWS services, such as S3, DynamoDB, SQS and Secrets Manager, are reached through public service endpoints. A private instance can reach them through a NAT gateway, but then the traffic leaves your VPC's private address space, needs an internet path, and you pay NAT data processing charges. VPC endpoints let resources in your VPC reach AWS services privately, without an internet gateway, NAT device or public IP addresses, and the traffic stays on the AWS network. Many security and cost questions on the exam turn on choosing the right kind of endpoint, so the distinctions below are worth learning precisely.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.