Ace Cloud Interviews
Home/AWS Tutorial/PrivateLink
🌐

AWS Networking & CDN

PrivateLink

Private connectivity to AWS and third-party services without internet exposure

AWS PrivateLink provides private connectivity between VPCs, AWS services, and on-premises applications without exposing traffic to the public internet. It uses interface VPC endpoints (powered by ENIs in your VPC) to reach services privately, and enables SaaS providers to offer their services to customers without requiring VPC Peering or internet access.

Interface Endpoints vs Gateway Endpoints

FeatureInterface Endpoint (PrivateLink)Gateway Endpoint
Supported servicesMost AWS services + custom servicesS3 and DynamoDB only
ImplementationENI in your subnet with private IPEntry in route table pointing to endpoint
Private DNSYes; overrides public DNS for the serviceNo; must use endpoint-specific URL or policy
Cost$0.01/hr per AZ + $0.01/GBFree
Connectivity from on-premisesYes (via VPN or Direct Connect)No (route table only; no routing from on-prem)
Cross-regionNo (must create per-region)No
Security controlsSecurity groups + endpoint policyEndpoint policy only
AvailabilityRequires subnet in AZRegional; no subnet needed
⚠️

Gateway Endpoints for S3 are free and you should always enable them. However, they only work within the VPC - traffic from on-premises (via VPN or Direct Connect) cannot use Gateway Endpoints. For on-premises-to-S3 private access, you need an Interface Endpoint for S3.

🎯

Interview Focus Points

  • 1What is the difference between PrivateLink, VPC Peering, and Transit Gateway? When do you use each?
  • 2Explain the difference between an Interface VPC Endpoint and a Gateway VPC Endpoint.
  • 3How would you allow on-premises servers to access S3 privately without going through the internet?
  • 4How does an Endpoint Service work? Walk through the setup from provider to consumer.
  • 5Why might you use PrivateLink instead of VPC Peering even when CIDR blocks don't overlap?
  • 6How do you secure an Interface VPC Endpoint? What controls are available?
  • 7Explain how private DNS for VPC Endpoints works and what "Enable Private DNS Name" does.
  • 8When does creating multiple interface endpoints become more expensive than a NAT Gateway?