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?
Cache different versions of images depending on the Save-Data header value to serve lower-quality images if the client requests data savings.
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.
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.
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 part of the Client Hints standard, allowing clients to indicate bandwidth-saving preferences. Ignoring the header or relying on other headers like User-Agent or Referer fails to respect the user's explicit request and can lead to unnecessary data transfer or inaccurate personalization.
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 is the `Save-Data` header and how does it work?
Open an interactive chat with Bash
Why is the `Save-Data` header preferred over the `User-Agent` header for bandwidth optimization?
Open an interactive chat with Bash
How do CDNs handle caching when using 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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .