SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Design High-Performing Architectures

Scalable Networks: CloudFront vs Global Accelerator, Transit Gateway, ALB vs NLB

24 min readSAA-C03 · Design High-Performing ArchitecturesUpdated

A high-performing, scalable network architecture on AWS is one whose edge services, load balancers, address plan, instance placement and connections keep latency low and keep working as users, VPCs and hybrid links grow. Task 3.4 tests five choices: CloudFront or Global Accelerator at the edge; ALB, NLB or Gateway Load Balancer for the traffic type (including how to get static IPs and private origins); CIDR ranges and subnet tiers that survive growth; cluster, spread or partition placement for EC2; and VPC peering, Transit Gateway, PrivateLink, Direct Connect or Site-to-Site VPN for connectivity. Its questions are selection problems: several options genuinely work, and one constraint (a non-HTTP protocol, a static IP allowlist, hundreds of VPCs, an overlapping CIDR, a backup that must match the primary) makes exactly one of them right. This lesson teaches the behaviour behind each choice so you can read that constraint and land on the right service.

What you’ll learn

  • Choose between CloudFront and Global Accelerator from the protocol, caching, static-IP and failover requirements
  • Select ALB, NLB or Gateway Load Balancer by protocol, latency, TLS handling, client-IP and routing needs
  • Give an HTTP application static IPs or a private-only origin (NLB in front of ALB, Global Accelerator, CloudFront VPC origins)
  • Design CIDR ranges and subnet tiers that scale, avoid overlap, and recover from IP exhaustion with secondary CIDRs
  • Pick cluster, spread, or partition placement groups for HPC, critical instances, and distributed systems
  • Choose VPC peering, Transit Gateway, or PrivateLink for connectivity at scale, including their costs and routing limits
  • Design hybrid links and their backups (Direct Connect, Site-to-Site VPN, accelerated VPN) for a stated performance target
  • Place resources for latency and availability, from latency-based routing to zone-local cache reads

The 10 parts · about 21 min of reading

  1. Edge performanceStart hereCloudFront caches HTTP content at the edge; Global Accelerator caches nothing but adds static IPs, UDP support and fast Regional failover.2 min
  2. Load balancer selectionIdentify the protocol: HTTP routing means ALB, TCP or UDP with static IPs or lowest latency means NLB, and third-party appliances mean GWLB.2 min
  3. Static IPs and private originsAdd fixed IPs in front of an ALB with an NLB or Global Accelerator, and hide an internal ALB behind CloudFront as a VPC origin.2 min
  4. Design the address space to scaleSize VPCs for the future with non-overlapping CIDRs, and when addresses run out add a secondary CIDR, since subnets cannot be resized.2 min
  5. Placement groups and enhanced networkingCluster minimizes latency in one AZ, spread isolates up to seven critical instances per AZ, and partition isolates big distributed systems.1 min
  6. Connecting VPCs at scalePeering is pairwise and never transitive, Transit Gateway is a transitive hub for VPCs and hybrid links, and PrivateLink shares one service.3 min
  7. Hybrid links for performanceDirect Connect gives consistent private bandwidth, VPN is quick, cheap and encrypted over the internet, and VPN is the low-cost DX backup.3 min
  8. Global routing and resource placementLatency-based routing sends users to the fastest Region; same-AZ placement cuts latency and transfer cost but gives up resilience.2 min
  9. The connectivity decision tableOverlapping CIDRs leave only PrivateLink, scale and transitivity favor Transit Gateway, and two VPCs at lowest cost or latency mean peering.2 min
  10. Worked scenariosPeering is not transitive, UDP plus fixed IPs rules out CloudFront, and tightly coupled HPC needs a cluster placement group.2 min

Mind map

CloudFront caches HTTP(S) content atthe edgeGlobal Accelerator caches nothing, 2static IPsUDP, gaming, VoIP → Global AcceleratorFast Regional failover without DNSchanges1✓CloudFront vs GlobalAcceleratorALB: layer 7 path/host routing, LambdatargetsNLB: TCP/UDP, static IP per AZ, lowestlatencyNLB TCP listener keeps TLS on thetargetsGWLB: inline third-party securityappliances2✓ALB vs NLB vs GWLBAn ALB has no static IPsNLB in front of ALB: Elastic IP per AZGlobal Accelerator: one IP set for allRegionsCloudFront VPC origin needs aninternal ALB3✓Static IPs and privateoriginsSize CIDRs for the future, neveroverlappingRepeat subnet tiers in every AZSubnets and primary CIDR can't beresizedOut of IPs → add a secondary CIDRblock4✓VPC address planningCluster: one AZ, lowest node-to-nodelatencySpread: max seven instances per AZPartition: Hadoop, Kafka, Cassandra atscaleENA or EFA pairs with cluster groupsfor HPC5✓Placement groupsPeering is never transitive, no edgeroutingTransit Gateway: transitive hub, VPCs+ hybridTGW bills per attachment-hour and perGBPrivateLink shares one service;overlaps OK6✓Peering vs TGW vsPrivateLinkDX: consistent private bandwidth,weeks to set upVPN: quick, cheap, encrypted, ~1.25Gbps/tunnelDX isn't encrypted: add VPN over DX orMACsecCheapest DX backup: VPN; matching:second DX7✓Direct Connect vs VPNLatency-based routing → fastest RegionGeolocation routing is for compliance,not speedSame-AZ placement cuts latency andtransfer costSpread tiers across AZs for resilience8✓Global routing andplacementTwo or three VPCs, lowest cost →peeringMany VPCs plus on-premises → TransitGatewayOverlapping CIDRs leave onlyPrivateLinkSpokes using hub's VPN or DX → TransitGateway9✓Connectivity decisiontableSpoke-to-spoke over peering fails →TGWUDP plus fixed IPs → GlobalAcceleratorTightly coupled HPC → clusterplacement group10✓Worked scenariosScalable networkdesign
Mind map

Scalable Networks: CloudFront vs Global Accelerator, Transit Gateway, ALB vs NLB

CloudFront caches HTTP(S) content atthe edgeGlobal Accelerator caches nothing, 2static IPsUDP, gaming, VoIP → Global AcceleratorFast Regional failover without DNSchanges1✓CloudFront vs GlobalAcceleratorALB: layer 7 path/host routing, LambdatargetsNLB: TCP/UDP, static IP per AZ, lowestlatencyNLB TCP listener keeps TLS on thetargetsGWLB: inline third-party securityappliances2✓ALB vs NLB vs GWLBAn ALB has no static IPsNLB in front of ALB: Elastic IP per AZGlobal Accelerator: one IP set for allRegionsCloudFront VPC origin needs aninternal ALB3✓Static IPs and privateoriginsSize CIDRs for the future, neveroverlappingRepeat subnet tiers in every AZSubnets and primary CIDR can't beresizedOut of IPs → add a secondary CIDRblock4✓VPC address planningCluster: one AZ, lowest node-to-nodelatencySpread: max seven instances per AZPartition: Hadoop, Kafka, Cassandra atscaleENA or EFA pairs with cluster groupsfor HPC5✓Placement groupsPeering is never transitive, no edgeroutingTransit Gateway: transitive hub, VPCs+ hybridTGW bills per attachment-hour and perGBPrivateLink shares one service;overlaps OK6✓Peering vs TGW vsPrivateLinkDX: consistent private bandwidth,weeks to set upVPN: quick, cheap, encrypted, ~1.25Gbps/tunnelDX isn't encrypted: add VPN over DX orMACsecCheapest DX backup: VPN; matching:second DX7✓Direct Connect vs VPNLatency-based routing → fastest RegionGeolocation routing is for compliance,not speedSame-AZ placement cuts latency andtransfer costSpread tiers across AZs for resilience8✓Global routing andplacementTwo or three VPCs, lowest cost →peeringMany VPCs plus on-premises → TransitGatewayOverlapping CIDRs leave onlyPrivateLinkSpokes using hub's VPN or DX → TransitGateway9✓Connectivity decisiontableSpoke-to-spoke over peering fails →TGWUDP plus fixed IPs → GlobalAcceleratorTightly coupled HPC → clusterplacement group10✓Worked scenariosScalable networkdesign

How the exam tests this

SAA-C03 tests this task as constrained selection: several networking options genuinely work, and one stem detail — a UDP protocol, a static-IP allowlist, a hundred-VPC estate, an overlapping CIDR, a backup that must match the primary — makes exactly one correct. Classic shapes include CloudFront vs Global Accelerator (protocol and static IPs decide, not "global users"), ALB vs NLB (fixed IP, UDP, extreme throughput, TLS passthrough or client-IP preservation flips it to NLB; inline security appliances mean GWLB), static IPs for an ALB (NLB in front for one Region, Global Accelerator across Regions), private origins for CloudFront (VPC origins, the internet gateway prerequisite and the service-managed security group), the non-transitive peering trap and its edge-to-edge cousin (a hub VPC cannot share its VPN or Direct Connect with peers), peering vs Transit Gateway vs PrivateLink by scale, cost and scope, IP exhaustion fixed with a secondary CIDR, Direct Connect vs VPN by "consistent" versus "quickly", the right Direct Connect backup for the stated budget, and placement groups by workload keyword. Expect distractors that ignore a hard limit — transitive peering, an ALB with an Elastic IP, a resized subnet, a spread group holding forty instances, an accelerated VPN sold as Direct Connect-grade — which one memorized fact eliminates.

Key takeaways

  1. CloudFront caches and accelerates HTTP content; Global Accelerator provides two static anycast IPs for TCP/UDP with near-instant cross-Region failover — protocol and static-IP requirements decide between them.
  2. ALB for HTTP routing (path/host rules, Lambda targets); NLB for TCP/UDP at extreme scale, Elastic IPs and client-IP preservation (default on for instance targets, off for IP targets on TCP/TLS); a TCP listener passes TLS through, a TLS listener terminates it; GWLB for inline third-party appliances.
  3. An ALB has no static IPs: put an NLB in front of it (an Elastic IP per AZ, routing unchanged) or Global Accelerator (one anycast IP set across Regions with fast failover).
  4. CloudFront VPC origins front an internal ALB, NLB (not TLS listeners) or EC2 in private subnets; the VPC still needs an attached internet gateway, and the CloudFront-VPCOrigins-Service-SG is the tight origin rule.
  5. Size VPC CIDRs for growth and keep every range non-overlapping; subnet and primary CIDRs cannot be resized, so IP exhaustion is fixed with a secondary CIDR and new subnets.
  6. Placement groups: cluster = lowest latency, one AZ (HPC); spread = max seven instances per AZ on distinct hardware (critical few); partition = failure-isolated groups for large distributed systems (Kafka, Hadoop).
  7. VPC peering is never transitive and has no edge-to-edge routing; Transit Gateway gives transitive, propagated, segmentable routing at the cost of attachment and per-GB charges and an extra hop, and neither tolerates overlapping CIDRs — PrivateLink does.
  8. Direct Connect buys consistent latency and bandwidth; VPN (even accelerated) stays internet-dependent. A VPN is the cheap automatic DX backup via BGP; a second DX at another location is the backup that matches the primary.
  9. Same-AZ placement minimizes latency and cross-AZ charges, but multi-AZ spread wins when availability is the priority; zone-local cache reads need a same-zone replica's node endpoint, not the reader endpoint; across Regions, Route 53 latency-based routing sends each user to the fastest Region.
0/10
Ready to start

Part 1: Edge performance

CloudFront caches HTTP content at the edge; Global Accelerator caches nothing but adds static IPs, UDP support and fast Regional failover.

2 min read · 10 parts, about 21 min in allStart lesson

Frequently asked questions

What is the difference between CloudFront and Global Accelerator?

CloudFront is a content delivery network: it caches content at edge locations and accelerates HTTP/HTTPS traffic, serving static assets from the edge and speeding dynamic requests over optimized connections to the origin. Global Accelerator caches nothing: it gives you two static anycast IP addresses and routes TCP or UDP connections from the nearest edge over the AWS backbone to the optimal healthy endpoint, with health-check-driven failover between Regions in seconds. Choose CloudFront for cacheable or HTTP-based content; choose Global Accelerator for non-HTTP protocols (gaming, VoIP, custom TCP/UDP), fixed IPs for firewall allowlisting, or deterministic fast regional failover.

When should I use Transit Gateway instead of VPC peering?

Use VPC peering for a small number of VPCs — roughly two or three — with simple, stable connectivity needs: it is a direct, low-cost, no-hop path. Switch to Transit Gateway when VPC count grows, when every VPC must reach every other (peering would need a full mesh of N×(N−1)/2 connections because it is not transitive), or when on-premises connectivity over VPN or Direct Connect must be shared across many VPCs. Transit Gateway is a regional hub with transitive routing: one attachment per VPC, centralized route tables, and optional segmentation between attachment groups. The qualifier usually decides: LEAST operational overhead at scale means Transit Gateway.

Is VPC peering transitive?

No — and this is one of the most tested networking facts on SAA-C03. If VPC A peers with VPC B, and VPC B peers with VPC C, VPC A cannot reach VPC C through B under any route-table configuration; peering connections simply do not forward traffic that neither originates nor terminates in one of the two peered VPCs. Any answer option that routes traffic "through" an intermediate VPC over peering is wrong. When transitive, hub-and-spoke routing is the requirement — spokes reaching each other, or many VPCs sharing one path to on-premises — the answer is AWS Transit Gateway.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?