Soru

Zorluk: OrtaEdge Caching and Content Delivery for Resilient Architectures

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.)

  1. 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
  2. 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
  3. C
    Configure an Amazon Route 53 latency routing policy with health checks to route user requests directly to the S3 bucket website endpoints.
  4. D
    Deploy 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.
  5. E
    Configure 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

1
Configure content delivery to minimize latency.
Amazon CloudFront is deployed to cache the product catalog images at edge locations globally.
CloudFront caches static files close to users, fulfilling the requirement for lowest possible global latency.
2
Establish the secondary S3 bucket as a fallback origin.
An origin group is configured in CloudFront with the primary S3 bucket in us-east-1 as the primary origin and the replicated S3 bucket in us-west-2 as the secondary origin.
This establishes the logical mapping required for automatic origin-level failover.
3
Configure the failover threshold criteria.
Origin failover is enabled on the origin group, targeting HTTP status codes 500, 502, 503, and 504.
When CloudFront receives these server errors from the primary S3 bucket, it automatically routes the request to the secondary bucket, achieving high availability with zero manual intervention or custom code.

Anahtar Kavram

CloudFront Origin Groups and Origin Failover for static S3 assets
Bu soruyu puanla