3.6 CloudFront, Route 53, and Global Accelerator

Key Takeaways

  • CloudFront is a CDN with 400+ edge locations that caches content close to users for low latency — it integrates with S3, ALB, EC2, API Gateway, and Lambda@Edge.
  • Route 53 provides DNS, domain registration, and health checking with multiple routing policies (simple, weighted, latency, failover, geolocation, geoproximity, multivalue).
  • Global Accelerator uses the AWS global network to route traffic to optimal endpoints, providing static anycast IPs and instant failover — ideal for non-HTTP use cases.
  • CloudFront Origin Access Control (OAC) restricts S3 bucket access so that content can only be accessed through CloudFront, not directly from S3.
  • Use CloudFront for caching web content (HTTP/HTTPS); use Global Accelerator for non-cacheable TCP/UDP traffic requiring static IPs and deterministic routing.
Last updated: March 2026

CloudFront, Route 53, and Global Accelerator

Quick Answer: CloudFront = CDN for caching content at edge locations (HTTP/HTTPS). Route 53 = DNS with health checks and routing policies. Global Accelerator = AWS backbone network for non-cacheable traffic (TCP/UDP) with static IPs. Use CloudFront for websites/APIs; Global Accelerator for gaming, IoT, or when you need static IP addresses.

Amazon CloudFront

CloudFront is AWS's Content Delivery Network (CDN) with 400+ edge locations worldwide.

CloudFront Origins

OriginUse Case
S3 bucketStatic content (images, CSS, JS, video)
ALBDynamic web application
EC2 instanceCustom application server
API GatewayREST APIs
Custom HTTP serverAny HTTP origin (on-premises, other cloud)
Lambda@EdgeRun code at edge locations
MediaStoreVideo streaming

Key CloudFront Features

FeatureDescription
Edge cachingCache content at 400+ edge locations globally
HTTPSFree TLS/SSL via ACM; HTTP to HTTPS redirect
Custom headersAdd headers to origin requests (authentication)
Geo-restrictionAllow/block access from specific countries
Price classesReduce cost by limiting edge locations (All, 200, 100)
Lambda@EdgeRun Lambda functions at edge locations for request/response manipulation
CloudFront FunctionsLightweight JavaScript functions for simple request/response manipulation
Field-level encryptionEncrypt specific POST form fields at edge
Real-time logsStream access logs to Kinesis Data Streams

CloudFront + S3: Origin Access Control (OAC)

OAC ensures S3 content is accessible ONLY through CloudFront:

  1. Create a CloudFront distribution with S3 as origin
  2. Enable OAC (replaces legacy OAI)
  3. Update S3 bucket policy to allow only the CloudFront distribution
  4. Users cannot bypass CloudFront to access S3 directly

On the Exam: "Ensure S3 content can only be accessed via CloudFront" → Origin Access Control (OAC). Note: OAI (Origin Access Identity) is the legacy method.

CloudFront Cache Behavior

SettingDescription
TTLHow long objects stay in cache (min, default, max)
Cache keyWhat makes each cached object unique (URL, headers, query strings, cookies)
Cache policyDefine what is included in the cache key
Origin request policyDefine what is forwarded to the origin
InvalidationForce removal of cached objects (costs per invalidation path)

Amazon Route 53

Route 53 is AWS's DNS service providing domain registration, DNS routing, and health checking.

Routing Policies

PolicyDescriptionUse Case
SimpleSingle resource, no health checksBasic DNS routing
WeightedSplit traffic by percentageBlue/green deployments, canary releases
Latency-basedRoute to lowest-latency RegionMulti-Region applications
FailoverActive-passive with health checksDisaster recovery
GeolocationRoute based on user locationContent localization, compliance
GeoproximityRoute by distance with traffic biasingShift traffic between Regions
Multivalue answerUp to 8 healthy records (simple load balancing)Small-scale load distribution

Route 53 Health Checks

TypeMonitors
EndpointHTTP/HTTPS/TCP health of a specific resource
CalculatedAggregates results of multiple health checks (AND/OR logic)
CloudWatch alarmHealth based on CloudWatch alarm state

AWS Global Accelerator

Global Accelerator routes traffic through the AWS global network (instead of the public internet) for improved performance and availability.

Global Accelerator vs. CloudFront

FeatureCloudFrontGlobal Accelerator
TypeCDN (content caching)Network layer optimization
CachingYes (caches at edge)No caching
IP addressesDynamic (DNS name)2 static anycast IPs
ProtocolsHTTP/HTTPSTCP, UDP
Best forCacheable web contentNon-cacheable traffic, gaming, IoT, VoIP
FailoverDNS-based (slower)Instant failover (BGP-based)
Health checksOrigin health checksEndpoint health checks with instant failover

On the Exam: "Static IP addresses for a global application" → Global Accelerator. "Cache web content at edge locations" → CloudFront. "Gaming application with real-time UDP traffic" → Global Accelerator.

Test Your Knowledge

A company hosts a static website in S3 and wants to serve it globally with low latency while preventing direct access to the S3 bucket. What should they implement?

A
B
C
D
Test Your Knowledge

A real-time multiplayer gaming application uses UDP and needs static IP addresses for client connections. Which service should be used?

A
B
C
D
Test Your Knowledge

Which Route 53 routing policy routes traffic to the AWS Region with the lowest network latency for the requesting user?

A
B
C
D