AWS Certified Developer – Associate (DVA-C02) — Question 174

A company is expanding the compatibility of its photo-sharing mobile app to hundreds of additional devices with unique screen dimensions and resolutions. Photos are stored in Amazon S3 in their original format and resolution. The company uses an Amazon CloudFront distribution to serve the photos. The app includes the dimension and resolution of the display as GET parameters with every request.

A developer needs to implement a solution that optimizes the photos that are served to each device to reduce load time and increase photo quality.

Which solution will meet these requirements MOST cost-effectively?

Answer options

Correct answer: D

Explanation

Option D is correct because it optimizes photos dynamically and stores a copy on S3, making subsequent requests faster and more efficient. Options A and B involve creating multiple variants, which could increase storage costs and complexity without meeting the requirement for optimization at request time. Option C does not store optimized photos, meaning it would require processing each request anew, potentially leading to increased load times.