Soru

Zorluk: KolayEdge Caching and Content Delivery for Resilient Architectures

A company hosts its static website assets in an Amazon S3 bucket located in the us-east-1 Region. To ensure high availability and resiliency, the company replicates these assets to a secondary S3 bucket in the us-west-2 Region. A solutions architect needs to configure Amazon CloudFront to deliver these assets with low latency and automatically serve files from the backup S3 bucket if the primary S3 bucket returns an HTTP 503 Service Unavailable error. Which configuration should the solutions architect use to meet these requirements?

  1. Configure a CloudFront origin group with the primary S3 bucket as the primary origin and the secondary S3 bucket as the failover origin, selecting the 503 status code in the failover criteria.Cevap
  2. B
    Create an Amazon Route 53 latency-based routing policy to automatically route user requests to either the primary or secondary S3 bucket based on the health check status of the buckets.
  3. C
    Deploy AWS WAF with a custom web ACL rule on the CloudFront distribution to inspect traffic and redirect client requests to the secondary S3 bucket when the primary S3 bucket returns a 503 error.
  4. D
    Configure the CloudFront cache behavior for static assets to have a Time to Live (TTL) of zero, forcing CloudFront to query both S3 buckets in parallel for every user request.

Cevap

Configure a CloudFront origin group with the primary S3 bucket as the primary origin and the secondary S3 bucket as the failover origin, selecting the 503 status code in the failover criteria.
Configuring a CloudFront origin group provides a native, seamless way to implement high availability for static content. By setting up an origin group with a primary S3 bucket and a failover S3 bucket, CloudFront automatically retries the request against the secondary origin when the primary origin returns specific HTTP status codes such as 503.

Adım Adım Çözüm

1
Identify the primary requirement for origin failover and low-latency content delivery.
Amazon CloudFront is selected as the content delivery network (CDN) to cache content at edge locations.
CloudFront caches content globally to reduce latency for end users.
2
Configure high availability for the S3 origin within CloudFront.
Create a CloudFront origin group containing both S3 buckets as origins.
An origin group is the native CloudFront feature designed to handle failover between two origins.
3
Define failover conditions for the origin group.
Specify the 503 HTTP status code as a trigger to failover from the primary bucket to the secondary bucket.
This ensures that if the primary S3 bucket experiences issues and returns a 503 error, CloudFront automatically retrieves the requested asset from the backup bucket without impacting the client.

Anahtar Kavram

CloudFront Origin Groups and Origin Failover
Tahmini Süre:50s
Bu soruyu puanla