Google Cloud Professional Cloud Architect — Question 237
You are using Cloud CDN to deliver static HTTP(S) website content hosted on a Compute Engine instance group. You want to improve the cache hit ratio.
What should you do?
Answer options
- 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.
Correct answer: A
Explanation
The correct answer is A because customizing the cache keys to omit the protocol allows for a better cache hit ratio by treating requests for the same content as identical, regardless of the protocol used. Option B would likely decrease cache utilization, while option C does not directly affect cache hit ratios but rather targets regional content delivery. Option D would introduce additional complexity without necessarily improving the cache hit ratio.