SkillSprout
Chapter 2 · Lesson 2
Beginner
5 min read

Edge Locations and Global Services

Overview

Not every request needs to travel all the way to a Region. Edge locations are AWS sites in cities around the world that cache content and answer requests close to your users. They power services such as Amazon CloudFront (a content delivery network) and Amazon Route 53 (DNS).

Picture a publisher with one huge warehouse (the Region) and many small newsstands (edge locations). Instead of everyone driving to the warehouse for a newspaper, most readers pick one up at the newsstand down the street. Delivery is faster and the warehouse is less busy.

This lesson also introduces the infrastructure options that sit between the Region and the user: Local Zones, Wavelength and Outposts, which the exam asks you to distinguish.

Key Concepts

  • Edge locations (and regional edge caches) are AWS points of presence used by CloudFront, Route 53 and AWS Global Accelerator to reduce latency.
  • Amazon CloudFront is a CDN that caches static and dynamic content at the edge; it integrates with S3, ALB, EC2 and custom origins.
  • Amazon Route 53 is a highly available, scalable DNS service that also offers domain registration, health checks and routing policies.
  • AWS Global Accelerator gives you static anycast IP addresses and routes traffic over the AWS backbone to the nearest healthy endpoint.
  • AWS Local Zones place compute and storage close to large population centres for single-digit-millisecond latency.
  • AWS Wavelength embeds AWS compute in telecom 5G networks for ultra-low latency mobile applications.
  • AWS Outposts extends AWS infrastructure and services to your own data center or on-site location.

Detailed Notes

Why edge computing matters

Latency depends on distance. A user in Sydney fetching an image from a bucket in Virginia waits for a long round trip. With CloudFront, the first request caches the image at a Sydney edge location, so later requests are served locally in a few milliseconds.

ServiceWhat it doesTypical use
CloudFrontCaches and delivers content from edge locationsWebsites, video, software downloads, API acceleration
Route 53DNS, health checks, routing policiesMap www.example.com to your application, failover
Global AcceleratorStatic anycast IPs, AWS backbone routingGaming, VoIP, multi-Region applications needing fixed IPs
Lambda@Edge / CloudFront FunctionsRun code at the edgeURL rewrites, header manipulation
AWS WAF and Shield (at CloudFront)Block malicious traffic at the edgeProtect the origin

CloudFront versus Global Accelerator

  • CloudFront caches content, mainly HTTP/HTTPS. Best when content can be cached.
  • Global Accelerator does not cache; it improves the network path to your application over the AWS backbone, supports TCP and UDP, and gives fixed IP addresses.

Route 53 routing policies (overview)

PolicyBehaviour
SimpleOne record, one answer
WeightedSplit traffic by percentage, useful for testing
Latency-basedSend users to the lowest-latency Region
FailoverActive/passive using health checks
GeolocationRoute based on the user's location

Edge locations, Local Zones and Regional Edge Caches

ComponentRole
Edge locationCache point for CloudFront, Route 53 DNS and Shield/WAF protection, close to end users
Regional edge cacheLarger intermediate cache between edge locations and the origin
Local ZoneExtension of a Region placing compute and storage in a metro area for single-digit millisecond latency
Wavelength ZoneCompute embedded in 5G networks for ultra-low latency mobile apps
OutpostsAWS-managed hardware in your own data center

Edge locations are far more numerous than Regions (hundreds of points of presence), and they are used by global services such as CloudFront, Route 53 and WAF.

Extending AWS closer to you

OptionLocationUse case
Local ZoneNear a large cityMedia rendering, real-time gaming
Wavelength ZoneInside a 5G carrier networkConnected vehicles, AR/VR on mobile
OutpostsYour own data centerLow-latency to on-premises systems, data residency

Example: front an S3 bucket with CloudFront

bash
aws cloudfront create-distribution \
  --origin-domain-name my-site-bucket.s3.amazonaws.com \
  --default-root-object index.html

Use Origin Access Control so the bucket is reachable only through CloudFront. TLS certificates for CloudFront come from AWS Certificate Manager in us-east-1.

Real World Example

A global e-learning company stores course videos in one S3 bucket in Ireland. Students in Asia complained about buffering. The company added CloudFront, so videos are cached at local edge locations, and used Route 53 latency-based routing for its dynamic API running in two Regions.

Buffering dropped dramatically, and S3 request volume - and data-transfer cost from the origin - fell because most requests were served from cache.

Architecture Diagram

Content delivery through the edge
Architecture
Global users
Route 53
CloudFront edgeCache
AWS Region
S3 origin
  1. 1The user's browser asks Route 53 for the site name.
  2. 2DNS returns a CloudFront distribution address.
  3. 3The nearest edge location serves cached content immediately.
  4. 4On a cache miss, CloudFront fetches from the origin, caches it and returns it.

Best Practices

  • ✓Use CloudFront for cacheable content to cut latency and origin load.
  • ✓Restrict origins using Origin Access Control so users cannot bypass the CDN.
  • ✓Use Route 53 health checks with failover routing for resilience.
  • ✓Choose Global Accelerator when you need static IPs or non-HTTP (TCP/UDP) acceleration.
  • ✓Attach AWS WAF and Shield at the edge to filter attacks early.

Common Interview Questions

Exam Tips

CLF-C02 focus

  • "Deliver content with low latency worldwide" = CloudFront.
  • "DNS" = Route 53; "static anycast IPs" = Global Accelerator.
  • "AWS infrastructure in our own data center" = Outposts.
  • Edge locations are not the same as Regions or AZs; they cache and route.

Finished this lesson?

0 of 43 lessons done · 0% of the course