Google Cloud Professional Cloud Network Engineer — Question 150
Your company's logo is published as an image file across multiple websites that are hosted by your company. You have implemented Cloud CDN; however, you want to improve the performance of the cache hit ratio associated with this image file. What should you do?
Answer options
- 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.
Correct answer: A
Explanation
The correct answer is A because configuring custom cache keys allows for more effective caching strategies, improving the cache hit ratio. Option B is incorrect as setting the TTL to 0 would prevent caching altogether. Option C does not directly improve the cache hit ratio since it addresses expiration rather than caching strategy. Option D may help in hosting but does not specifically enhance the cache hit ratio for the existing backend service.