An e-commerce company hosts its product catalog image library on an Amazon S3 bucket in the us-east-1 Region. These images must be delivered globally with the lowest possible latency. To ensure reliability, the company requires that if the primary S3 bucket in us-east-1 becomes unavailable or returns server errors, the architecture must automatically serve images from a replicated S3 bucket in the us-west-2 Region. The solution must minimize operational complexity.
Which two actions should the solutions architect take to meet these requirements? (Select two.)
- Create an Amazon CloudFront distribution and define an origin group containing the primary S3 bucket as the primary origin and the secondary S3 bucket as the secondary origin.Cevap
- Enable origin failover for the CloudFront origin group and configure it to fail over to the secondary origin on specific HTTP status codes such as 500, 502, 503, and 504.Cevap
- CConfigure an Amazon Route 53 latency routing policy with health checks to route user requests directly to the S3 bucket website endpoints.
- DDeploy AWS WAF to monitor the health of the primary S3 bucket and trigger an AWS Lambda function to update the CloudFront origin if an outage is detected.
- EConfigure the CloudFront cache behavior with a Time to Live (TTL) of zero to force CloudFront to validate content availability with the primary bucket on every request.
Cevap
To meet the requirements, the solutions architect should create an Amazon CloudFront distribution with an origin group containing the primary S3 bucket as the primary origin and the secondary S3 bucket as the secondary origin. Additionally, they should enable origin failover in the origin group and configure it to fail over to the secondary origin on status codes such as 500, 502, 503, and 504.
The correct architecture uses Amazon CloudFront for low-latency edge caching of static images, coupled with CloudFront Origin Groups for high availability. By creating an origin group containing the primary S3 bucket and the secondary S3 bucket, and setting up failover on server error status codes (500, 502, 503, 504), CloudFront will automatically fall back to serving content from the secondary bucket in the event of an outage or error with the primary bucket. This is a native feature that minimizes operational complexity.
Adım Adım Çözüm
Anahtar Kavram
CloudFront Origin Groups and Origin Failover for static S3 assets