Google Cloud Professional Cloud Network Engineer — Question 46

You have a storage bucket that contains the following objects:
[1]
[1]
[1]
[1]
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?

Answer options

Correct answer: B

Explanation

The correct answer is B because issuing a cache invalidation command with the pattern /folder-a/* specifically targets and removes the cached copies of all objects with that prefix. Option A would not directly remove the cached objects, option C does not affect the cache, and option D is an ineffective method that requires unnecessary downtime.