Google Cloud Professional Cloud Developer — Question 332

Your team runs a Python job that reads millions of customer record files stored in a Cloud Storage bucket. To comply with regulatory requirements, you need to ensure that customer data is immediately deleted once the job is completed. You want to minimize the time required to complete this task. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because using batch requests to delete all objects in the bucket at once minimizes the time required for deletion. Option B is incorrect as Object Lifecycle Management is not immediate and may introduce delays. Option C is not practical since removing the entire bucket is not necessary and could lead to loss of other data. Option D, while effective, is not as efficient as using batch requests for large-scale deletions.