AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 298

A video platform company is migrating its video catalog to AWS. The company will host MP4 videos files in an Amazon S3 bucket. The company will use Amazon CloudFront and Amazon EC2 instances to serve the video files.

Users first connect to a frontend application that redirects to a video URL. The video URL contains an authorization token in CloudFront. The cache is activated on the CloudFront distribution. Authorization token check activity needs to be logged in Amazon CloudWatch.

The company wants to prevent direct access to video files on CloudFront and Amazon S3 and wants to implement checks of the authorization token that the frontend application provides. The company also wants to perform regular rolling updates of the code that checks the authorization token signature.

Which solution will meet these requirements with the LEAST operational effort?

Answer options

Correct answer: B

Explanation

CloudFront Functions are designed for lightweight, high-scale, and latency-sensitive operations such as token validation at the edge, making them highly cost-effective and efficient compared to Lambda@Edge or EC2. Additionally, using CloudFront's native continuous deployment feature allows for smooth rolling updates of edge code without the operational overhead of managing multiple distributions and Route 53 weighted routing.