
Ultimate access to all questions.
A company is expanding its photo-sharing app to support various device resolutions. Photos are stored in Amazon S3 and served via CloudFront. The app sends display dimensions and resolutions as GET parameters. Identify the most cost-effective solution for optimizing photo delivery to enhance load times and quality based on device requirements.
A
Utilize S3 Batch Operations with AWS Lambda to generate photo variants for different dimensions and resolutions, and implement a dynamic CloudFront origin for mapping device requests to the appropriate photo variant.
B
Employ S3 Batch Operations and AWS Lambda to produce photo variants, then use a Lambda@Edge function to direct requests to the correct photo variant using request headers.
C
Deploy a Lambda@Edge function for on-demand photo optimization and response delivery, and set CloudFront's TTL cache policy to its highest possible value.
D
Implement a Lambda@Edge function for real-time photo optimization and response, with processed photos stored on Amazon S3 for future requests.