AWS Certified Developer Associate DVA-C02 Practice Question
A web application is leveraging a content delivery network (CDN) to distribute images. The development team wants to implement caching optimizations to serve different image qualities based on the bandwidth of the user's connection, which is indicated by the Save-Data client hint request header. Which strategy should be implemented to provide the most suitable image quality while optimizing for performance and bandwidth usage?
Ignore request headers and always serve images from the same high-quality cache to all users to simplify the caching logic.
Determine the user's device type and capabilities by examining the User-Agent header and serve images from a cache optimized for desktop or mobile.
Use the Referer header to determine the originating domain of the request and serve a universally optimized image quality based on the most frequent domain.
Cache different versions of images depending on the Save-Data header value to serve lower-quality images if the client requests data savings.
The best approach is to use the Save-Data request header to determine if the user is requesting data savings. If the Save-Data header is present and set to on, the CDN should serve lower-quality images to conserve bandwidth. This header is a part of the Client Hints standard, which allows clients to indicate preferences in the HTTP request. Incorrect strategies, such as caching based on the User-Agent header or ignoring headers, would fail to account for the bandwidth-saving preference conveyed by the Save-Data header. Serving only the highest quality images ignores client preferences and can lead to unnecessarily high data usage and slower load times for users with limited bandwidth.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are client hints and how do they work?
Open an interactive chat with Bash
Why is it important to serve different image qualities based on bandwidth?
Open an interactive chat with Bash
What are the consequences of ignoring the `Save-Data` header?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Troubleshooting and Optimization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access