A digital learning platform distributes high-definition video-on-demand training courses and accompanying presentation slide decks (PDF files) to a global user base. The media content and slides are stored in an Amazon S3 bucket. The videos are streamed using HTTP Live Streaming (HLS). The slide decks are updated daily, and students must have immediate access to the updated versions. The company wants to optimize content delivery latency, reduce load on the S3 origin, and minimize data transfer costs. Which two actions should a solutions architect recommend to meet these requirements?
- Use unique versioned filenames for the slide decks and update the application links when slides are modified.Cevap
- Configure an Amazon CloudFront distribution to serve both the HLS video segments and the slide decks from the Amazon S3 origin.Cevap
- CConfigure a cache behavior for the slide decks in Amazon CloudFront with minimum, maximum, and default TTL values set to 0.
- DStore transient video files in Amazon S3 Standard-Infrequent Access (S3 Standard-IA) and apply a lifecycle policy to delete them after 5 days.
- EDeploy a NAT Gateway to route the data transfer between the transcoding EC2 instances and the S3 bucket.
Cevap
Using unique versioned filenames for the slides and configuring Amazon CloudFront to serve both the video segments and the slides from the Amazon S3 origin.
Caching static media and video streams using Amazon CloudFront reduces global delivery latency and limits requests hitting S3. When files are updated frequently, using unique versioned filenames is the industry best practice; it forces clients to request the new path immediately, ensuring content consistency without sacrificing caching benefits or incurring invalidation fees.
Adım Adım Çözüm
Anahtar Kavram
Caching static and dynamic streaming media using Amazon CloudFront while managing cache validation via versioning rather than disabling cache lifetimes.