A company hosts a static website on Amazon S3. Users in different geographic locations experience high latency when accessing the website. The company wants to reduce latency for all users and also minimize the number of direct requests to the S3 bucket. Which AWS service should the company use?
Amazon CloudFront is a content delivery network (CDN) that caches static content at edge locations worldwide. This reduces latency by serving content from a nearby edge location and reduces the number of direct requests to the S3 bucket, thereby offloading the origin.
Why this answer
Amazon CloudFront is a content delivery network (CDN) that caches static content at edge locations worldwide, significantly reducing latency for users regardless of their geographic location. By serving content from the edge, CloudFront also offloads direct requests to the S3 bucket, reducing the load on the origin and potentially lowering costs.
Exam trap
The trap here is that candidates often confuse AWS Global Accelerator (which optimizes network path but does not cache) with CloudFront (which caches content at the edge), leading them to choose Global Accelerator for a static website latency problem.
How to eliminate wrong answers
Option A is wrong because AWS Global Accelerator improves performance by routing traffic over the AWS global network using anycast IPs, but it is designed for TCP/UDP applications (e.g., HTTP(S) behind ALB/NLB) and does not cache content or reduce direct requests to an S3 bucket. Option C is wrong because Amazon Route 53 latency-based routing directs DNS queries to the region with the lowest latency, but it does not cache content and still results in direct requests to the S3 bucket from the chosen region, failing to minimize direct requests. Option D is wrong because AWS Direct Connect establishes a dedicated network connection from on-premises to AWS, which does not reduce latency for geographically distributed users accessing a public S3 website and does not cache content.