Bitzu

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

Single choice

Which AWS service caches website images and videos at edge locations to deliver them to users with lower latency?

  1. AWS Global Accelerator
  2. Amazon Route 53
  3. Amazon CloudFront
  4. 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.

Select all that apply

Which statements about Amazon CloudFront are correct?

  1. Requests go to the edge location with the lowest latency
  2. On a cache miss, content is fetched from the origin
  3. An S3 bucket or an HTTP server can be the origin
  4. It can deliver only static files, never dynamic content
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More CLF-C02 topics in this module