Topic 1 Question 358
A social media company runs its application on Amazon EC2 instances behind an Application Load Balancer (ALB). The ALB is the origin for an Amazon CloudFront distribution. The application has more than a billion images stored in an Amazon S3 bucket and processes thousands of images each second. The company wants to resize the images dynamically and serve appropriate formats to clients.
Which solution will meet these requirements with the LEAST operational overhead?
Install an external image management library on an EC2 instance. Use the image management library to process the images.
Create a CloudFront origin request policy. Use the policy to automatically resize images and to serve the appropriate format based on the User-Agent HTTP header in the request.
Use a [email protected] function with an external image management library. Associate the [email protected] function with the CloudFront behaviors that serve the images.
Create a CloudFront response headers policy. Use the policy to automatically resize images and to serve the appropriate format based on the User-Agent HTTP header in the request.
ユーザの投票
コメント(3)
Use a [email protected] function with an external image management library. Associate the [email protected] function with the CloudFront behaviors that serve the images.
Using a [email protected] function with an external image management library is the best solution to resize the images dynamically and serve appropriate formats to clients. [email protected] is a serverless computing service that allows running custom code in response to CloudFront events, such as viewer requests and origin requests. By using a [email protected] function, it's possible to process images on the fly and modify the CloudFront response before it's sent back to the client. Additionally, [email protected] has built-in support for external libraries that can be used to process images. This approach will reduce operational overhead and scale automatically with traffic.
👍 8NolaHOla2023/02/21- 正解だと思う選択肢: C👍 3bdp1232023/02/22
- 正解だと思う選択肢: C👍 2everfly2023/02/21
シャッフルモード