
Answer-first summary for fast verification
Answer: Configure custom cache keys for the backend service that holds the image file, and clear the Host and Protocol checkboxes.
To improve the cache hit ratio for the image file served across multiple domains via Cloud CDN, the key is ensuring that requests from different domains are treated as the same cache entry. By default, Cloud CDN includes the Host header (domain) and Protocol in the cache key, causing separate cache entries for each domain. Option A addresses this by configuring custom cache keys and excluding Host and Protocol, allowing all domains to share the same cached image. Options B (TTL=0) would disable caching entirely, worsening the hit ratio. Option C (versioned URLs per domain) would create unique URLs per domain, leading to separate cache entries. Option D (Cloud Storage multi-region) improves origin availability but does not directly impact cache hit ratio.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To improve the cache hit ratio for your company's logo image file served through Cloud CDN across multiple hosted websites, what steps should you take?
A
Configure custom cache keys for the backend service that holds the image file, and clear the Host and Protocol checkboxes.
B
Configure the default time to live (TTL) as 0 for the image file.
C
Configure versioned URLs for each domain to serve users the image file before the cache entry expires.
D
Configure Cloud Storage as a custom origin backend to host the image file, and select multi-region as the location type.
No comments yet.