
Answer-first summary for fast verification
Answer: Customize the cache keys to omit the protocol from the key.
The correct answer is A: 'Customize the cache keys to omit the protocol from the key.' By default, Cloud CDN uses the complete request URL to build the cache key. To improve the cache hit ratio, it's important to ensure that requests for the same content over different protocols (HTTP and HTTPS) are treated as the same cache entry. Customizing the cache keys to omit the protocol from the key helps achieve this by increasing the chance that content will be served from the cache, regardless of the protocol used in the request.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are managing a website that delivers static content over HTTP(S) using Cloud CDN, with the content hosted on a Compute Engine instance group. Your goal is to improve the cache hit ratio to ensure faster content delivery to users. What should you do?
A
Customize the cache keys to omit the protocol from the key.
B
Shorten the expiration time of the cached objects.
C
Make sure the HTTP(S) header Cache-Region points to the closest region of your users.
D
Replicate the static content in a Cloud Storage bucket. Point CloudCDN toward a load balancer on that bucket.
No comments yet.