SOA-C02 · Question #707
A company is creating an application that runs on smart TVs and mobile phones. Static images for the application are loaded from an Amazon CloudFront distribution. The images have large file sizes…
The correct answer is C. Create a CloudFront origin request policy. Include the CloudFront-Is-SmartTV-Viewer header and. Use a CloudFront origin request policy that includes the CloudFront-Is-SmartTV-Viewer and CloudFront-Is-Mobile-Viewer headers. CloudFront sets these headers automatically, letting your origin return (and CloudFront cache) the appropriate image variant per device type.
Question
A company is creating an application that runs on smart TVs and mobile phones. Static images for the application are loaded from an Amazon CloudFront distribution. The images have large file sizes that result in a poor experience for users of mobile devices. The company has created a set of smaller images for mobile devices. A SysOps administrator must configure CloudFront to cache different content based on the user’s device type. Which solution will meet this requirement?
Options
- ACreate two new CloudFront distributions: one distribution with the smart TV resources, and one
- BSet the Elemental-MediaTailor-PersonalizedManifests origin request policy on the CloudFront
- CCreate a CloudFront origin request policy. Include the CloudFront-Is-SmartTV-Viewer header and
- DConfigure AWS Amplify to set the CloudFront distribution origin request policy to enable caching of
How the community answered
(37 responses)- A5% (2)
- B3% (1)
- C81% (30)
- D11% (4)
Explanation
Use a CloudFront origin request policy that includes the CloudFront-Is-SmartTV-Viewer and CloudFront-Is-Mobile-Viewer headers. CloudFront sets these headers automatically, letting your origin return (and CloudFront cache) the appropriate image variant per device type.
Topics
Community Discussion
No community discussion yet for this question.