Networking 5 min read
PrivateLink
What Problem It Solves
VPC Peering exposes an entire network to the other side — sometimes you only want to expose one specific service (e.g. a SaaS API) to consumers, without giving them any broader network access, and without the CIDR-overlap and route-table headaches of peering. AWS PrivateLink solves this: a service provider exposes an application behind a Network Load Balancer, and consumers reach it through a private VPC Interface Endpoint — an ENI with a private IP directly inside their own VPC.
Global | Regional | AZ Scope
- Interface Endpoints are AZ-specific ENIs — you typically create one per AZ you want to serve for high availability.
- PrivateLink connections are one-way: the consumer VPC can reach the service, but the service provider cannot initiate connections back into the consumer’s VPC — a key security property.
- No CIDR planning, route tables, or peering acceptance needed — the consumer just resolves a DNS name that points at their local endpoint ENI.
graph LR subgraph Consumer["Consumer VPC"] EP["Interface Endpoint (ENI)"] APP["Consumer App"] end subgraph Provider["Service Provider VPC"] NLB["Network Load Balancer"] SVC["Service"] end APP --> EP EP -->|"PrivateLink"| NLB NLB --> SVC classDef consumer fill:#e8f0fe,stroke:#3b82f6,stroke-width:2px,color:#173a70
Cost
Interface Endpoints bill an hourly charge per AZ plus a per-GB data processing charge — similar pricing shape to NAT Gateways and Transit Gateway attachments.
Exam Tips
- PrivateLink is the standard mechanism behind most VPC Interface Endpoints for AWS services (e.g. reaching an API privately) — but note S3 and DynamoDB use Gateway Endpoints instead (a route-table target, not an ENI, and free).
- The exam loves the phrase “without exposing your VPC to the internet or peering” as the signal to reach for PrivateLink over VPC Peering or a public NLB.
- Because it’s one-directional, PrivateLink is ideal for multi-tenant SaaS architectures — many customer VPCs can each get a private endpoint to one shared provider service without any customer reaching another.
- No overlapping CIDR restrictions apply, since there’s no full network peering happening — just a targeted, private service connection.