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…
Question
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)- A3% (2)
- B80% (47)
- C7% (4)
- D10% (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
Community Discussion
No community discussion yet for this question.