
Answer-first summary for fast verification
Answer: Employ a Lambda@Edge function integrated with an image management library for CloudFront image behaviors.
The correct answer is C. Using a Lambda@Edge function with an external image management library and associating it with the CloudFront behaviors that serve the images is the most efficient approach with the least operational overhead. This solution allows for dynamic resizing of images and appropriate format selection based on client requests. It leverages the serverless capabilities of AWS Lambda, reducing the need to manage EC2 instances or other infrastructure directly. Additionally, it provides the flexibility to execute code closer to the users, thereby improving performance.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A social media company utilizes EC2 instances with an Application Load Balancer and CloudFront for image distribution, managing billions of images. They require a solution to dynamically resize images and deliver the correct format to clients with minimal operational overhead. What is the most efficient approach?
A
Deploy an image management library on EC2 to process images.
B
Implement a CloudFront origin request policy for automatic image resizing and format adaptation based on User-Agent.
C
Employ a Lambda@Edge function integrated with an image management library for CloudFront image behaviors.
D
Utilize a CloudFront response headers policy for automatic image resizing and format selection based on User-Agent.
No comments yet.