CLF-C02 ยท Deploying on AWS and global infrastructure
Edge locations, CloudFront and Global Accelerator
What edge locations are, Amazon CloudFront for caching content close to users, and AWS Global Accelerator for routing traffic over the AWS network.
Key points
- Edge locations (points of presence): AWS sites worldwide, far more numerous than Regions, close to end users.
- Amazon CloudFront: CDN caching static and dynamic content at edge locations; on a miss it fetches from the origin (e.g. S3 bucket, web server).
- AWS Global Accelerator: no caching; static anycast IP addresses, traffic goes from the nearest edge over the AWS global network to healthy endpoints in one or more Regions.
Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html
Practice questions
Which AWS service caches website images and videos at edge locations to deliver them to users with lower latency?
- AWS Global Accelerator
- Amazon Route 53
- Amazon CloudFront
- AWS Elastic Beanstalk
Show answer
Answer: C. Amazon CloudFront
Amazon CloudFront is the content delivery network that caches content at edge locations. Global Accelerator routes traffic but does not cache; Route 53 is DNS; Elastic Beanstalk deploys applications.
Which statements about Amazon CloudFront are correct?
- Requests go to the edge location with the lowest latency
- On a cache miss, content is fetched from the origin
- An S3 bucket or an HTTP server can be the origin
- It can deliver only static files, never dynamic content
- Edge locations become the only copy, so the origin can be deleted
Show answer
Answer: A. Requests go to the edge location with the lowest latency, B. On a cache miss, content is fetched from the origin, C. An S3 bucket or an HTTP server can be the origin
CloudFront routes each request to the edge location with the lowest latency, and if the object is not cached there it fetches it from the origin, which can be an S3 bucket or an HTTP server. It is not limited to static files (it also speeds up dynamic content), and it does not replace the origin: the definitive copy stays at the origin.
AWS Global Accelerator speeds up applications by caching copies of their responses at edge locations, just like CloudFront.
Show answer
Answer: False
False. Global Accelerator does not cache content. It improves performance and availability by routing traffic from the nearest edge location over the AWS global network to healthy endpoints; caching is what CloudFront does.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
