Easy ReviewSAA-C03
Design Secure Architectures14

PrivateLink

Connect privately to services through interface endpoints and endpoint services.

Interface endpoints and private access

AWS PrivateLink connects a virtual private cloudA VPC is a logically isolated virtual network. (VPC), an isolated virtual network, to supported services privately. An interface endpointAn interface endpoint provides network interfaces through which a consumer reaches an endpoint service. is a private entry point in the consumer’s network, not a connection to the provider’s entire network.

How it works

  1. For a custom service, the provider creates an endpoint serviceAn endpoint service is a provider's service made available to consumers through VPC endpoints. backed by a Network Load Balancer, which routes requests to service targets, and grants selected AWS principals permission.
  2. The consumer creates an interface endpoint for the service. AWS places a network interface with a private IP address in each selected subnet.
  3. The consumer initiates the connection; the provider accepts or rejects it. The endpoint must be available before use.
  4. Clients use the Domain Name SystemDNS translates domain names into IP addresses used to reach services. (DNS) to resolve the service name to an address and send requests to the endpoint. Its security groupA security group controls traffic allowed to and from associated resources., a virtual firewall, must allow the traffic. Private DNS requires VPC DNS resolution and hostnames.

Exam cues

  • If the question says two VPCs have overlapping CIDR blocksA CIDR block represents a range of IP addresses., meaning IP address ranges, think a Network Load Balancer-backed endpoint service and interface endpoint, because PrivateLink supports this layout while Transit Gateway cannot route between the overlapping VPCs.
  • If the question says private access to S3 through a route table without an additional endpoint charge, think gateway endpoint, because it routes S3 traffic without PrivateLink.
  • If the question says an endpoint policyAn endpoint policy controls which principals can use a VPC endpoint to access a service. allows a request but a resource policy denies it, think the request is still subject to the resource policy, because an endpoint policy does not replace other policies.
  • If the question says an on-premises application must reach S3 over Direct Connect or Site-to-Site VPN, think S3 interface endpoint, because an S3 gateway endpoint cannot serve on-premises clients.
  • If the question says restrict an S3 endpoint request by the client’s private IP, think aws:VpcSourceIp plus a VPC or endpoint condition, because aws:SourceIp is unavailable and private ranges can overlap.

Remember

  • Choose at most one subnet per Availability Zone for an interface endpoint.
  • AWS recommends at least two Availability Zones for an endpoint service.
  • The default endpoint policy grants full access through the endpoint; not all AWS services support custom endpoint policies.
  • Consumers can access endpoint services from on-premises as well as VPCs.
  • Interface endpoints incur hourly charges per Availability Zone and data processing charges.
  • Use at least two Availability Zones per endpoint; billing is per endpoint-hour per zone plus per GB.
  • Regional and zonal endpoint DNS names work without private DNS.
  • UDP support since October 2024 (TCP only before).
  • Targets: AWS services, other accounts’ endpoint services, AWS Marketplace partner services. IPv6 needs service support.

Trap: A failed ping does not prove an interface endpoint is broken. Interface endpoints do not respond to ping.

Private service access
123ConsumerInterface endpointNetwork LBProvider service
  1. The consumer sends a request to its interface endpoint.

  2. The endpoint connects privately to the provider endpoint service.

  3. The Network Load Balancer routes the request to the service.

From the AWS docs (33)
  • AWS PrivateLink connects VPCs privately to supported services without requiring an internet gateway or NAT device for that connection.
  • An interface endpoint creates an endpoint network interface with a private IP address in each selected subnet.
  • The endpoint network interface security group must allow expected traffic from clients.
  • Private DNS requires VPC DNS hostnames and DNS resolution.
  • Private DNS can resolve an AWS service's public endpoint name to the endpoint network interfaces.
  • A provider can create an endpoint service backed by a Network Load Balancer that routes requests to service targets.
  • The provider grants AWS principals permission to connect to its endpoint service.
  • The consumer creates an interface endpoint to connect selected VPC subnets to the provider endpoint service.
  • The service consumer initiates the connection and the provider accepts or rejects the connection request.
  • A PrivateLink architecture using a Network Load Balancer can connect services in VPCs with overlapping CIDR blocks.
  • A transit gateway does not support routing between VPCs with identical or overlapping CIDR blocks.
  • Consumers can access endpoint services from their VPCs or from on-premises.
  • An endpoint policy controls which AWS principals can use the endpoint to access a service.
  • An endpoint policy does not replace identity-based or resource-based policies.
  • Not all AWS services support endpoint policies.
  • The default endpoint policy grants full access through the endpoint.
  • Gateway endpoints provide access to S3 and DynamoDB using selected route tables.
  • Gateway endpoints do not use AWS PrivateLink.
  • There is no additional charge for gateway endpoints.
  • An interface endpoint can use one subnet per Availability Zone.
  • AWS recommends making an endpoint service available in at least two Availability Zones for high availability.
  • Interface endpoints do not respond to ping.
  • S3 interface endpoints can be accessed from on-premises over Site-to-Site VPN or Direct Connect.
  • S3 gateway endpoints cannot be used from on-premises.
  • For S3 requests traversing a VPC endpoint, use aws:VpcSourceIp rather than aws:SourceIp in an identity or bucket policy.
  • After a provider accepts an interface endpoint connection request, the consumer can use it once the endpoint is Available.
  • Interface endpoints incur hourly charges per Availability Zone and data processing charges.
  • Pair aws:VpcSourceIp with aws:SourceVpc, aws:SourceVpce, or aws:SourceVpcArn because unrelated VPCs can have overlapping IP ranges.
  • For high availability, AWS recommends at least two Availability Zones per interface endpoint, with the resources that use it in those zones; endpoints bill per hour in each zone plus per GB processed.
  • Each interface endpoint gets Regional and zonal DNS names that resolve to its network interfaces, usable when private DNS is off.
  • Since October 2024, AWS PrivateLink supports UDP over IPv4 and IPv6; before that it supported only TCP.
  • Interface endpoints connect privately to AWS services, endpoint services hosted by other AWS accounts, and AWS Marketplace partner services.
  • An interface endpoint can use IPv6 only when the AWS service supports access over IPv6.

Flashcards

tap to flip
Answer

·

All 14 cards as a list

What is an AWS PrivateLink interface VPC endpoint?

An endpoint that creates private-IP network interfaces in selected subnets to connect to a service; its security groups control traffic.

Two VPCs have overlapping address ranges and one must expose a service privately to the other. What AWS PrivateLink pattern fits?

Use a provider endpoint service backed by a Network Load Balancer and a consumer interface endpoint. Transit Gateway cannot route between overlapping VPCs.

A workload cannot connect to its AWS PrivateLink interface endpoint. Which network control should be checked first?

Check that the endpoint network interface security group allows the expected client traffic.

What must be enabled in a VPC to use private DNS for an AWS PrivateLink interface endpoint?

DNS resolution and DNS hostnames.

Does an AWS PrivateLink endpoint policy replace IAM identity policies or service resource policies?

No. It is an additional policy controlling use of the endpoint.

A VPC needs a no-additional-charge endpoint for Amazon S3 using route tables. Which endpoint type fits?

A gateway endpoint. It does not use AWS PrivateLink.

How many subnets can an AWS PrivateLink interface endpoint select per Availability Zone?

One subnet per Availability Zone.

A VPC application needs private access to a supported AWS service without an internet gateway or NAT device. What should it use?

An interface VPC endpoint using AWS PrivateLink.

An on-premises application needs private S3 access over Direct Connect. Should it use an S3 gateway endpoint or an AWS PrivateLink interface endpoint?

Use an S3 interface endpoint. An S3 gateway endpoint cannot be used from on-premises.

Which condition key should an S3 bucket policy use for a client's private address when the request traverses a VPC endpoint?

Use aws:VpcSourceIp, not aws:SourceIp, together with a VPC or endpoint condition to avoid matching overlapping ranges.

An interface VPC endpoint has a network interface in only one Availability Zone. What availability risk does that create, and what does AWS recommend?

Access depends on that one zone. Use at least two Availability Zones and place the client resources there.

Private DNS is turned off on an interface VPC endpoint. How do clients reach the service through the endpoint?

Use the endpoint's Regional or zonal DNS names, which resolve to its network interfaces.

A provider exposes a UDP-based service behind a Network Load Balancer. Can consumers reach it through AWS PrivateLink?

Yes, since October 2024 PrivateLink supports UDP over IPv4 and IPv6. Earlier it was TCP only.

Which kinds of services can an interface VPC endpoint reach privately?

AWS services, endpoint services in other AWS accounts, and AWS Marketplace partner services.

You finished every topic of SAA-C03!

Your badge turned gold. Next step: book the exam on AWS. Once you pass, add yourself to Who passed.

Share

Share that you finished this certification

I finished every topic of AWS Certified Solutions Architect - Associate (SAA-C03) on Easy Review. Come study too!