Question

Difficulty: EasyHigh-Performing Content Delivery and Caching Solutions

A company hosts its static website assets, such as images and stylesheets, in an Amazon S3 bucket. The company wants to reduce latency for global users accessing these assets and reduce the request load on the S3 bucket.

Which solution should a solutions architect recommend to meet these requirements?

  1. A
    Configure Amazon Route 53 Latency-based routing to resolve the domain name directly to the Amazon S3 bucket.
  2. B
    Deploy an Amazon CloudFront distribution with the Amazon S3 bucket as the origin, and configure the Cache Behavior TTL settings to 00 seconds.
  3. Deploy an Amazon CloudFront distribution with the Amazon S3 bucket configured as the origin and default caching enabled.Answer
  4. D
    Deploy EC2 caching proxy instances in a private subnet and route all external user traffic through a NAT Gateway to access the Amazon S3 bucket.

Answer

Deploy an Amazon CloudFront distribution with the Amazon S3 bucket configured as the origin and default caching enabled.
Deploying an Amazon CloudFront distribution with default caching enabled leverages AWS edge locations globally to cache static assets close to users. This reduces retrieval latency and significantly lowers the number of direct requests to the Amazon S3 origin bucket.

Step-by-Step Solution

1
Analyze the workload characteristics and requirements.
The workload consists of static website assets (images and stylesheets) stored in S3 that must be delivered with low latency globally while minimizing request load on the S3 origin.
Static assets are ideal candidates for edge caching, which solves both latency and origin load requirements.
2
Select the appropriate edge caching service.
Amazon CloudFront is chosen because it caches content at global edge locations.
By serving cached content directly from edge locations, CloudFront reduces the distance data travels to the user and prevents requests from reaching the S3 bucket.
3
Verify cache settings for performance optimization.
Default caching must be enabled to ensure static assets are stored in edge caches.
Setting the Time to Live (TTL) settings to 00 seconds would disable caching, forcing all traffic back to S3.

Key Concept

Caching static assets at edge locations using Amazon CloudFront to reduce origin load and latency
Rate this question