Networking

Amazon CloudFront

A Content Delivery Network that caches content at edge locations close to users.

How it works

Amazon CloudFront is a content delivery network that delivers web content through edge locations. CloudFront can cache content to reduce requests to the origin and improve latency. When content is not cached or is missing from the cache, CloudFront forwards the request to a configured origin, such as Amazon S3 or an HTTP server.

When to use it

Speed up static and dynamic content for global users and reduce load on the origin.

Real-world example

A news site stores images in Amazon S3 and places CloudFront in front of the bucket. Once an image is cached at an edge location, subsequent matching requests can be served from the cache, reducing load on the origin.

Key facts

  • Hundreds of Points of Presence worldwide.
  • Integrates with AWS Shield and AWS WAF.
  • Origins: S3 bucket, VPC Origin, custom HTTP origin.
  • Cached objects live for a TTL.

Common pitfall

Confusing CloudFront with AWS Global Accelerator can lead to the wrong choice. CloudFront delivers HTTP and HTTPS content and can cache it; Global Accelerator routes TCP or UDP traffic and does not cache content.

Often confused with

S3 Cross-Region Replication (copies data to chosen Regions, read only) and Global Accelerator (no caching, TCP/UDP).

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Keywords you will see in SAA-C03 questions

  • CDN
  • cache static content

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning