CLOUD-NETWORK practice question 5 of 30
You have a storage bucket that contains two objects. Cloud CDN is enabled on the bucket, and both objects have been successfully cached. Now you want to make sure that one of the two objects will not be cached anymore, and will always be served to the internet directly from the origin. What should you do?
Full set: 233 questionsCloud CDN respects the Cache-Control HTTP header to determine an object's cacheability. For objects in Cloud Storage, this header is set via the object's metadata. By adding a Cache-Control: private metadata entry to the specific object, you instruct Cloud CDN and other intermediate caches not to store a copy. The private directive indicates the response is intended for a single user and must not be cached publicly. To ensure this change takes effect immediately and removes any existing cached versions, you must perform a cache invalidation for that object's URL.
A. Making an object not public prevents all internet access, which is not the goal. The object should still be servable from the origin.
B. Moving the object to a new private bucket is an unnecessarily complex and indirect way to manage caching for a single object.
C. Cloud Storage lifecycle rules manage object storage class, versioning, and deletion, but they do not control CDN caching behavior.
1. Google Cloud Documentation, "Using Cloud CDN with Cloud Storage". Under the section "Cacheability", it states: "The cacheability of a Cloud Storage object depends on its Cache-Control metadata... The Cache-Control metadata for an object determines how long browsers and caches are allowed to cache it."
2. Google Cloud Documentation, "Editing object metadata". This guide shows how to set metadata fields like Cache-Control on an object.
3. Google Cloud Documentation, "Cache invalidation overview". This document explains that invalidation requests "force the removal of content from Cloud CDN's caches" before the normal expiration time.
Keep practicing
Take the free CLOUD-NETWORK practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CLOUD-NETWORK practice questions
- Question 1You are configuring the final elements of a migration effort where resources have been mo…
- Question 2You recently configured Google Cloud Armor security policies to manage traffic to your ap…
- Question 3You want to create a service in GCP using IPv6. What should you do?
- Question 4You work for a multinational enterprise that is moving to GCP. These are the cloud requir…
- Question 6You want to establish a dedicated connection to Google that can access Cloud SQL via a pu…
- Question 7You are designing a packet mirroring policy as pan of your network security architecture …
