An online education company stores popular static media assets, such as course images and stylesheets, in an Amazon S3 bucket. During peak enrollment periods, the S3 bucket experiences performance degradation due to high request volumes from global users. The company wants to reduce latency for users, protect the S3 bucket from overloading, and minimize operational complexity. Which configuration should the solutions architect choose?
- Configure an Amazon CloudFront distribution with the Amazon S3 bucket as the origin, caching the static assets at edge locations with default Time to Live (TTL) settings.Cevap
- BCreate an Amazon CloudFront distribution with the Amazon S3 bucket as the origin, and set the default Time to Live (TTL) to zero to ensure content is always fetched from the source.
- CConfigure Amazon Route 53 with a latency-based routing policy to resolve the website's domain name directly to the S3 bucket endpoint.
- DDeploy AWS Shield Advanced directly on the S3 bucket to inspect Layer 7 web traffic and prevent request spikes from degrading performance.
Cevap
Configure an Amazon CloudFront distribution with the Amazon S3 bucket as the origin, caching the static assets at edge locations with default Time to Live (TTL) settings.
Configuring Amazon CloudFront with the S3 bucket as the origin allows CloudFront to cache static assets (like images and stylesheets) at global edge locations. This reduces latency for users worldwide by serving content from the nearest edge location and protects the origin S3 bucket from high request volumes by serving cached copies, thereby increasing resiliency and reliability.
Adım Adım Çözüm
Anahtar Kavram
Edge caching with Amazon CloudFront