Soru

Zorluk: KolayHigh-Performing Content Delivery and Caching Solutions

A solutions architect is optimizing a global news website. The application's static assets, such as CSS files and logos, are served from an Application Load Balancer (ALB) origin through an Amazon CloudFront distribution. During a performance review, the architect notices that the ALB continues to receive a high volume of requests for these static assets, causing unnecessary origin load. Investigation reveals that the CloudFront cache behavior for these assets has its Minimum TTL, Maximum TTL, and Default TTL all set to 0 seconds. Which configuration change should the solutions architect make to reduce the load on the origin ALB?

  1. Increase the Minimum TTL and Default TTL values in the cache behavior to allow CloudFront to cache the static assets at edge locations.Cevap
  2. B
    Keep the TTL values set to 0 seconds in the cache behavior to ensure content freshness, and configure EC2 Auto Scaling to handle the origin request volume.
  3. C
    Deploy a NAT Gateway in the VPC to route CloudFront traffic to the Application Load Balancer, reducing the latency of origin fetches.
  4. D
    Configure an Amazon Route 53 latency routing policy to direct user traffic directly to the Application Load Balancer, bypassing the CloudFront distribution.

Cevap

Increase the Minimum TTL and Default TTL values in the cache behavior to allow CloudFront to cache the static assets at edge locations.
The correct option identifies that increasing the Minimum TTL and Default TTL settings enables CloudFront to cache static files. When these settings are configured with positive values, CloudFront stores the files at edge locations and serves them directly to users, eliminating unnecessary requests to the origin Application Load Balancer.

Adım Adım Çözüm

1
Analyze the current configuration and issue.
The CloudFront cache behavior has TTL values set to 0 seconds, which forces CloudFront to forward all requests to the Application Load Balancer (ALB) origin without caching.
Understanding why the origin is overloaded is the first step to resolving caching issues.
2
Determine the appropriate configuration to enable caching.
By increasing the Minimum TTL and Default TTL settings to positive values, CloudFront is instructed to cache the static assets at Edge locations.
Static assets like CSS files and logos do not change frequently and are ideal candidates for caching at the edge.
3
Apply the TTL change in the cache behavior.
Subsequent requests are served directly from CloudFront's edge cache, reducing origin request volume and lowering ALB load.
This implements the optimal caching architecture for static files.

Anahtar Kavram

Configuring Amazon CloudFront Time-to-Live (TTL) values to cache static content at edge locations and reduce load on origin servers.
Tahmini Süre:50s
Bu soruyu puanla