CertificationTestPrep Free diagnostic

AWS · explainer · checked November 4, 2026

What is AWS PrivateLink? Interface endpoints, and how it compares with VPC peering and Transit Gateway

AWS PrivateLink lets a VPC reach a specific service privately, using private IP addresses, with no internet gateway, NAT device or public IP address. You create an interface VPC endpoint that connects to an AWS service or to an endpoint service another account publishes. VPC peering and AWS Transit Gateway connect whole networks instead. Peering links two VPCs directly; Transit Gateway is a hub for many VPCs and on-premises networks.

Side by side

AWS PrivateLinkVPC peeringAWS Transit Gateway
What it connectsA VPC to a service or resourceTwo VPCsMany VPCs and on-premises networks through a hub
How traffic is addressedDNS names resolve to private IP addresses of endpoint network interfaces in your subnetsRoute table entries point at the peer VPC’s CIDR rangeRoute table entries point at the transit gateway, which has its own route tables
Transitive routingNot applicable: reaches only the serviceNot supportedRoutes between attachments are decided by the hub’s route tables
CostHourly per Availability Zone plus per GB processed (interface endpoints)No charge to create; data transfer across Availability Zones and Regions is chargedHourly per attachment plus traffic processed

What AWS PrivateLink is

AWS PrivateLink is a technology that connects your Amazon Virtual Private Cloud (VPC) to services and resources privately, as if they were in your VPC. AWS says you do not need an internet gateway, NAT device, public IP address, AWS Direct Connect connection or AWS Site-to-Site VPN connection for communication from your private subnets. That lets you control exactly which services and endpoints your VPC can reach.

There are two sides. The service provider owns the service: AWS, an AWS Partner, or another AWS account. The consumer creates a VPC endpoint to use it. Traffic between the endpoint and the service stays within the AWS network and does not cross the public internet.

Interface endpoints and endpoint services

The most common type is the interface VPC endpoint. For each subnet you choose, AWS creates an endpoint network interface with a private IP address from that subnet. This is the entry point for traffic. AWS recommends at least two Availability Zones for each endpoint in production.

Traffic reaches it through DNS. Each endpoint gets its own DNS names, and for AWS services you can turn on private DNS. Then the service’s normal public name resolves to the private addresses in your VPC, and existing applications and SDK calls go through the endpoint with no code change. An endpoint policy, which is an IAM resource policy attached to the endpoint, controls which principals can use it.

To offer your own service, you create an endpoint service in your account and Region. The provider must put a load balancer in front of it, and the service is not available to anyone until you grant permissions to specific AWS principals. A consumer asks for a connection and the provider can accept or reject it. Each endpoint service has a service name that consumers use to create their endpoint.

Newer endpoint types extend the idea. A Gateway Load Balancer endpoint sends traffic to a fleet of virtual appliances. A resource endpoint reaches a single shared resource such as a database. A service-network endpoint reaches a whole service network.

Gateway endpoints are a different thing

The name overlaps, so be careful. A gateway endpoint reaches only Amazon S3 and Amazon DynamoDB. AWS states that gateway endpoints do not use AWS PrivateLink. Instead of a network interface, a gateway endpoint adds a route to the route tables you select, with a prefix list for the service as the destination and the endpoint as the target. There is no additional charge for gateway endpoints.

S3 and DynamoDB also support interface endpoints. Interface endpoints are billed for each hour they are provisioned in each Availability Zone, plus per GB of data processed.

PrivateLink compared with VPC peering and Transit Gateway

The question is what you want to connect. PrivateLink exposes one service. Peering and Transit Gateway join networks.

**VPC peering** is a direct connection between two VPCs, in the same or different accounts and Regions. Instances in either VPC can talk over private IP addresses as if on one network. Each owner must add routes to the other VPC’s range. The limits matter for design:

  • The VPCs cannot have matching or overlapping CIDR blocks.
  • Transitive peering is not supported. If A is peered with B and with C, B cannot reach C through A.
  • A peer cannot use your internet gateway, NAT device, VPN connection, Direct Connect connection or gateway endpoint.

There is no charge to create a peering connection. Data transfer within one Availability Zone is free, and transfer across Availability Zones or Regions is charged.

**AWS Transit Gateway** is a network transit hub that interconnects VPCs and on-premises networks. You make attachments (VPCs, VPN connections, Direct Connect gateways, peering with other transit gateways, and others), and each attachment is associated with one transit gateway route table that decides the next hop. Because the hub’s route tables decide the next hop between attachments, each VPC does not need its own peering connection to every other VPC. You are charged hourly for each attachment and for traffic processed.

Use PrivateLink when consumers need one service without joining your network, for example a SaaS product, an AWS service, or a service you publish to other accounts. Use peering for a simple link between two VPCs. Use Transit Gateway when many networks must route to each other or to on premises. They combine: a transit gateway can sit alongside endpoints in a shared-services design.

On the exams

How certification exams use this

The exam guides ask candidates to pick the connection method for a requirement. SAA-C03 lists network connection options such as AWS PrivateLink (task 3.4) and network routing and peering with Transit Gateway and VPC peering (task 4.4). SOA-C03 task 5.1 includes configuring private connectivity with VPC endpoints, PrivateLink and VPC peering. SAP-C03 task 1.4 covers multi-VPC designs with VPC peering and PrivateLink, and task 3.2 covers Transit Gateway data processing charges and PrivateLink pricing models. SCS-C03 task 5.1 covers private access to resources with PrivateLink and VPC endpoints. Watch the wording. “Expose one service to other accounts without exposing the network” or “no internet gateway” points to PrivateLink, “S3 or DynamoDB from private subnets at no extra cost” points to a gateway endpoint, and “many VPCs and on-premises routing” points to Transit Gateway. The usual wrong answer is peering where a transitive path or overlapping address ranges rule it out.

Test yourself

See how well you know it, free.

Each exam’s diagnostic is free, with no sign-in: questions across the whole exam, and a map of what you know and what you don’t.