nerdexam
Google

PROFESSIONAL-CLOUD-NETWORK-ENGINEER · Question #19

You have a storage bucket that contains the following objects: - folder-a/image-a-1.jpg - folder-a/image-a-2.jpg - folder-b/image-b-1.jpg - folder-b/image-b-2.jpg Cloud CDN is enabled on the storage…

The correct answer is B. Issue a cache invalidation command with pattern /folder-a/*. Cloud CDN supports cache invalidation with wildcard patterns. Issuing a single invalidation command with the pattern /folder-a/* removes all cached objects whose URL paths start with /folder-a/, covering both folder-a/image-a-1.jpg and folder-a/image-a-2.jpg in one operation…

Submitted by carter_n· Apr 18, 2026Configuring network services

Question

You have a storage bucket that contains the following objects: - folder-a/image-a-1.jpg - folder-a/image-a-2.jpg - folder-b/image-b-1.jpg - folder-b/image-b-2.jpg Cloud CDN is enabled on the storage bucket, and all four objects have been successfully cached. You want to remove the cached copies of all the objects with the prefix folder-a, using the minimum number of commands. What should you do?

Options

  • AAdd an appropriate lifecycle rule on the storage bucket.
  • BIssue a cache invalidation command with pattern /folder-a/*.
  • CMake sure that all the objects with prefix folder-a are not shared publicly.
  • DDisable Cloud CDN on the storage bucket. Wait 90 seconds. Re-enable Cloud CDN on the

How the community answered

(59 responses)
  • A
    3% (2)
  • B
    80% (47)
  • C
    7% (4)
  • D
    10% (6)

Explanation

Cloud CDN supports cache invalidation with wildcard patterns. Issuing a single invalidation command with the pattern /folder-a/* removes all cached objects whose URL paths start with /folder-a/, covering both folder-a/image-a-1.jpg and folder-a/image-a-2.jpg in one operation - the minimum number of commands. Option A (lifecycle rules) manages object expiration and deletion from Cloud Storage, not CDN cache entries. Option C (removing public access) may prevent future caching but does not purge already-cached content from CDN edge nodes. Option D (disabling and re-enabling Cloud CDN) is disruptive to all cached objects and users, not targeted to a prefix, and is far from the minimum-effort approach.

Topics

#Cloud CDN#Cache Invalidation#Google Cloud Storage

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-NETWORK-ENGINEER Practice