AWS Solutions Architect Handbook SAA-C03, from zero Bipin Singh
Networking

CloudFront and Global Accelerator

2 min readChapter 15 of 48By Bipin Singh

Both services use AWS's global edge network to make applications faster and more resilient for users around the world. They solve different problems, and the exam loves to test the difference.

Amazon CloudFront

A content delivery network (CDN) that caches content at hundreds of edge locations.

Origins

Key features

Feature Use
Cache behaviours Different settings per path pattern (e.g. /static/* cached long, /api/* not cached)
TTLs and cache policies Control how long content stays at the edge and what forms the cache key
Invalidations Remove objects from edge caches before TTL expiry (or use versioned file names)
Signed URLs / signed cookies Restrict access to private content (one file → signed URL; many files → signed cookies)
Geo restriction Allow or block countries
HTTPS ACM certificates (must be in us-east-1); redirect HTTP to HTTPS
Field-level encryption Encrypt specific sensitive form fields at the edge
AWS WAF and Shield Protect at the edge
CloudFront Functions Lightweight JavaScript at the edge for simple header/URL manipulation, very high scale
Lambda@Edge Richer logic (Node.js/Python) at edge locations — e.g. authentication, dynamic origin selection
Key idea

"Serve a private S3 bucket globally, users must not access S3 directly" → CloudFront with OAC, and a bucket policy that only allows the CloudFront distribution.

Why CloudFront also helps dynamic sites

Even uncached requests benefit: TLS terminates near the user, and traffic travels over AWS's optimised network to the origin. It also absorbs DDoS traffic at the edge.

AWS Global Accelerator

Gives you two static anycast IP addresses that route users to the nearest healthy endpoint over the AWS global network.

CloudFront vs Global Accelerator

Need Choose
Cache static/dynamic web content near users CloudFront
HTTP/HTTPS website or API with caching CloudFront
Non-HTTP traffic (gaming over UDP, IoT, VoIP) Global Accelerator
Fixed static IPs for allow-listing Global Accelerator
Fast, deterministic multi-Region failover without DNS caching issues Global Accelerator
Signed URLs, geo restriction, edge functions CloudFront

S3 Transfer Acceleration (for comparison)

Speeds up uploads to S3 from distant clients by routing through edge locations. CloudFront speeds up downloads/delivery.

Exam patterns

Bipin Singh
Written by Bipin Singh

Senior Full-Stack Engineer · AI & AWS. I design and run production systems on AWS — serverless, data and AI.

Work with me