PROFESSIONAL-CLOUD-ARCHITECT · Question #149
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?
The correct answer is A. Customize the cache keys to omit the protocol from the key.. A logo needs to be cached whether displayed through HTTP or HTTPS. When you customize the cache keys for the backend service that holds the logo, clear the Protocol checkbox so that requests through HTTP and HTTPS count as matches for the logo's cache entry. https://cloud.google.
Question
Options
- ACustomize the cache keys to omit the protocol from the key.
- BShorten the expiration time of the cached objects.
- CMake sure the HTTP(S) header "Cache-Region" points to the closest region of your users.
- DReplicate the static content in a Cloud Storage bucket. Point CloudCDN toward a load balancer
How the community answered
(51 responses)- A75% (38)
- B4% (2)
- C8% (4)
- D14% (7)
Explanation
A logo needs to be cached whether displayed through HTTP or HTTPS. When you customize the cache keys for the backend service that holds the logo, clear the Protocol checkbox so that requests through HTTP and HTTPS count as matches for the logo's cache entry. https://cloud.google.com/cdn/docs/best- practices#using_custom_cache_keys_to_improve_cache_hit_ratio
Topics
Community Discussion
No community discussion yet for this question.