Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Associate Data Practitioner Exam - Topic 4 Question 26 Discussion

You manage a Cloud Storage bucket that stores temporary files created during data processing. These temporary files are only needed for seven days, after which they are no longer needed. To reduce storage costs and keep your bucket organized, you want to automatically delete these files once they are older than seven days. What should you do?
B) Configure a Cloud Storage lifecycle rule that automatically deletes objects older than seven days.
A) Set up a Cloud Scheduler job that invokes a weekly Cloud Run function to delete files older than seven days.
C) Develop a batch process using Dataflow that runs weekly and deletes files based on their age.
D) Create a Cloud Run function that runs daily and deletes files older than seven days.

Google Associate Data Practitioner Exam - Topic 4 Question 26 Discussion

Actual exam question for Google's Associate Data Practitioner exam
Question #: 26
Topic #: 4
[All Associate Data Practitioner Questions]

You manage a Cloud Storage bucket that stores temporary files created during data processing. These temporary files are only needed for seven days, after which they are no longer needed. To reduce storage costs and keep your bucket organized, you want to automatically delete these files once they are older than seven days. What should you do?

Show Suggested Answer Hide Answer
Suggested Answer: B

Configuring a Cloud Storage lifecycle rule to automatically delete objects older than seven days is the best solution because:

Built-in feature: Cloud Storage lifecycle rules are specifically designed to manage object lifecycles, such as automatically deleting or transitioning objects based on age.

No additional setup: It requires no external services or custom code, reducing complexity and maintenance.

Cost-effective: It directly achieves the goal of deleting files after seven days without incurring additional compute costs.


Contribute your Thoughts:

0/2000 characters
Katie
2 days ago
I practiced a similar question, and I feel like using a Cloud Run function daily, like in option D, might be overkill for this situation.
upvoted 0 times
...
Luz
7 days ago
I'm not entirely sure, but I think setting up a Cloud Scheduler job like in option A could work too, right?
upvoted 0 times
...
Louann
12 days ago
I remember studying lifecycle rules in Cloud Storage, so I think option B might be the best choice for automatic deletion.
upvoted 0 times
...

Save Cancel