Two objects in a Cloud Storage bucket are cached by Cloud CDN. Make one object always served from the origin and not cached anymore.
Choose an answer
Tap an option to check your answer.
Correct answer: Set the object's metadata Cache-Control: private and invalidate existing CDN copies..
Why this is the answer
To prevent a specific object from being cached by Cloud CDN, you should set its Cache-Control metadata to private. This HTTP header explicitly instructs caches not to store a copy of the object. After changing the Cache-Control header, you must invalidate existing CDN copies to ensure that the CDN retrieves the updated header from the origin on subsequent requests, rather than serving stale cached content. Ensuring the object is not publicly shared or moving it to a private bucket prevents public access but doesn't directly control CDN caching behavior for objects that are still accessible through the CDN. Lifecycle rules manage object states and deletion, not caching directives.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed