📖 What is Amazon CloudFront?
Amazon CloudFront is a fast content delivery network (CDN) service that securely delivers data, videos, applications, and APIs to users globally with low latency. It leverages a global network of edge locations to cache content closer to the end-user.
"Associate CloudFront with 'reducing latency' and 'edge locations,' and remember it integrates tightly with S3 buckets and Application Load Balancers."
📚 Certification: AWS Certified Solutions Architect - Associate (SAA-C03)
🔑 What are the Key Concepts of Amazon CloudFront?
- ▸ Edge Locations are distributed points of presence that cache content closer to users, significantly reducing latency and improving global load times.
- ▸ Origin Servers, such as S3 buckets or Application Load Balancers, serve as the source of truth where CloudFront fetches original content.
- ▸ Time to Live (TTL) settings determine how long content stays cached at the edge before CloudFront re-validates it with the origin.
- ▸ Origin Access Control (OAC) restricts S3 bucket access so that users must go through CloudFront, preventing direct access to the origin.
- ▸ Lambda@Edge and CloudFront Functions enable running custom logic at the edge to modify requests or responses based on user location.
🎯 How does Amazon CloudFront appear on the SAA-C03 Exam?
You may be asked to design a solution for a global application where static assets in S3 are loading slowly for international users; the correct answer involves implementing CloudFront.
A scenario might describe a requirement to provide temporary, secure access to private content for paid subscribers, requiring the use of CloudFront Signed URLs or Signed Cookies.
Expect questions about optimizing content delivery where you must balance high cache hit ratios by increasing TTL against the need for immediate content updates using invalidations to clear stale data.
❓ Frequently Asked Questions
What is the difference between CloudFront and AWS Global Accelerator?
CloudFront is a CDN that caches content at edge locations to reduce latency for web traffic. Global Accelerator does not cache; it optimizes the network path to your origin using the AWS global network.
How can I ensure that users always see the most recent version of a file?
You can use versioning in your file names (e.g., image_v2.jpg) or create a CloudFront Invalidation to manually remove the cached object from all edge locations before the TTL expires.