Topic 1 Question 88
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?
Customize the cache keys to omit the protocol from the key.
Shorten the expiration time of the cached objects.
Make sure the HTTP(S) header ג€Cache-Regionג€ points to the closest region of your users.
Replicate the static content in a Cloud Storage bucket. Point CloudCDN toward a load balancer on that bucket.
解説
ユーザの投票
コメント(17)
Option A is Correct. https://cloud.google.com/cdn/docs/caching#cache-keys
👍 19shandy2019/11/26A, for sure. By default, Cloud CDN uses the complete request URL to build the cache key. For performance and scalability, it’s important to optimize cache hit ratio. To help optimize your cache hit ratio, you can use custom cache keys .....
👍 8gfhbox00832020/06/01A. Customize the cache keys to omit the protocol from the key.
To improve the cache hit ratio with Cloud CDN, you should customize the cache keys to omit the protocol (e.g. HTTP or HTTPS) from the key. This will allow Cloud CDN to cache the same content under both HTTP and HTTPS, which can help to improve the hit ratio by allowing Cloud CDN to serve content from cache more frequently.
To customize the cache keys, you can use the --key-include-protocol flag when enabling Cloud CDN for your Compute Engine instance group or load balancer. Setting this flag to false will cause Cloud CDN to omit the protocol from the cache key.
Other options, such as shortening the expiration time of cached objects or replicating content in Cloud Storage, may also help to improve the cache hit ratio, but customizing the cache keys to omit the protocol is likely to have the greatest impact.
👍 5omermahgoub2022/12/22
シャッフルモード