Choose the right private connection
Classify the destination, then choose an endpoint, PrivateLink, NAT, VPN, or Direct Connect without confusing privacy, encryption, and resilience.
LESSON GOALS
By the end, you can
- Choose a private service path from the destination and the amount of network access required.
- Separate private addressing, encryption, route scope, capacity, and redundant physical paths.
01
Start with the destination
Do not start with a service name. First ask where traffic must go: one AWS service, one vendor service, the general internet, another network, or an on-premises site.
Then record what the path must provide. Does it need private IP addresses, encryption, broad two-way routing, predictable throughput, or a second independent path? These are separate requirements.
A gateway endpoint gives selected route tables private access to supported services such as S3 and DynamoDB. An interface endpoint places network interfaces in your subnets and can reach an AWS or PrivateLink service.
A NAT gateway provides general outbound translation for private IPv4 workloads. It does not authorize an AWS API call and does not publish a private service for inbound use.
For every flow, write the expected DNS answer and next hop. A path described only as “private” is too vague to test: the endpoint, route table, tunnel, or dedicated link must be named.
02
Choose the narrowest path that works
Choose the narrowest connection that satisfies the destination. For one S3 bucket, a gateway endpoint plus identity, endpoint, and bucket policies avoids general internet egress.
For one vendor API exposed through AWS PrivateLink, use an interface endpoint. PrivateLink exposes the selected service; it does not create broad, transitive routing between consumer and provider networks.
An interface endpoint still has gates. The service name must resolve to endpoint addresses, the endpoint security group must allow the caller, and the endpoint policy must allow the request. IAM and resource policies still decide authorization.
Use NAT when workloads genuinely need general outbound access to public destinations. NAT solves translation and reachability, not least privilege.
If the requirement changes from one service to broad bidirectional connectivity, choose a routed network design instead. Route scope is itself a security decision.
A private address does not prove private service use. Test DNS from the real subnet, record the selected route, and make one nearby unauthorized request. The successful request proves reachability; the failed request proves scope.
03
Separate connection, encryption, and resilience
A Site-to-Site VPN creates encrypted IPsec tunnels. Both tunnel health and matching forward and return routes matter.
AWS Direct Connect provides a dedicated connection with more consistent network behavior, but basic Direct Connect is not encrypted by default. Add VPN over Direct Connect, supported MACsec, or application TLS when encryption is required.
One Direct Connect connection or one location is not high availability. A second path counts only when it is physically independent, has usable routes, and carries traffic after the first path fails.
Start with VPN when quick encrypted connectivity is decisive. Add Direct Connect when measured throughput or consistency justifies its cost and lead time.
Test by disabling the active tunnel or connection. Confirm that both forward and return routes move to the independent path and the application still meets its objective.
Route advertisements are also a security boundary. Advertise and accept only approved prefixes, then verify the return advertisement. Encryption protects bytes in transit; it does not authorize every network that becomes reachable.
DECISION TABLE
Compare the architecture constraints
| requirement | choose | because | reject |
|---|---|---|---|
| Private S3 without egress | Gateway endpoint + policies | Private route/no NAT. | NAT for service-only path. |
| One vendor service privately | Interface endpoint/PrivateLink | Narrow service exposure. | Peering when broad routing unwanted. |
| Fast encrypted on-prem path | Site-to-Site VPN | IPsec/low lead time. | DX alone as encryption. |
GUIDED WORKED SCENARIO
Reason from the stated constraints
This is a guided example, not a question to memorise. The knowledge check uses new situations to test the same reasoning.
Private processors must upload to one S3 bucket, call one vendor service privately, and exchange 200 Mbps with on-prem. No unintended internet route; hybrid traffic encrypted; DX may be added later.
Requirements
- No NAT/IGW for S3/vendor.
- S3 limited to one bucket.
- Vendor PrivateLink service.
- 200 Mbps and redundant VPN tunnels.
- Future dedicated path stays encrypted.
Reasoning path
- Install scoped S3 gateway endpoint.
- Create vendor interface endpoint/private DNS/SG.
- Use both VPN tunnels and bidirectional routes.
- If adding DX, retain explicit encryption.
Why it wins
- Narrow private service paths.
- Policies limit endpoint use.
- Encryption, routing, capacity, and physical redundancy are distinct.
Why the alternatives lose
General public path violates requirement.
Becomes correct when: General internet egress is required.Broader routing than needed.
Becomes correct when: Both VPCs need broad routing.No default encryption or inherent redundancy.
Becomes correct when: Encryption not required and independent DX paths exist.INTERACTIVE ARCHITECTURE VISUAL
Choose and test one private path
Change the destination, then break its deciding DNS, policy, or return-route gate.
✓ Request succeedsPrivate DNS selects the interface endpoint and its security group admits the caller.
Read the diagram as text
Compare three paths: S3 through a gateway endpoint and policies; a vendor name through private DNS, an interface endpoint, its SG, and PrivateLink; on premises through two VPN tunnels and matching routes. Check Direct Connect encryption and redundancy separately.
KNOWLEDGE CHECK
Answer one question at a time
Pass every question to complete this lesson. Each answer includes reasoning before you continue.
KEY TERMS
Glossary
- Gateway endpoint
- A route-table target for private access to supported services such as S3 and DynamoDB.
- Interface endpoint
- Private network interfaces that connect a VPC to an endpoint service.
- AWS PrivateLink
- Private access to a selected service without broad routed connectivity.
- Private DNS
- Name resolution that directs a service name to private endpoint addresses.
- NAT gateway
- Managed address translation for outbound traffic from private IPv4 subnets.
- Site-to-Site VPN
- Encrypted IPsec tunnels between an AWS network and another network.
- AWS Direct Connect
- A dedicated network connection between a location and AWS.
- BGP
- A routing protocol commonly used to exchange hybrid prefixes.
- MACsec
- Link-layer encryption supported on eligible Direct Connect connections.
- Transitive routing
- Routing through an intermediate network to another network.
PRIMARY SOURCES
Verify the claims
- primaryWhat is Amazon VPC?aws-net-vpc · retrieved 2026-07-29
- primaryHybrid Networking Lensaws-wa-hybrid-net-lens · retrieved 2026-07-29
- primaryAWS PrivateLink conceptsaws-privatelink-concepts · retrieved 2026-07-30
- primaryNAT gatewaysaws-vpc-nat-gateways · retrieved 2026-07-30
- primaryWhat is AWS Site-to-Site VPN?aws-site-to-site-vpn-overview · retrieved 2026-07-30
- primaryAWS Direct Connect User Guideaws-net-direct-connect · retrieved 2026-07-29
- primaryEncryption in AWS Direct Connectaws-direct-connect-encryption · retrieved 2026-07-30