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
Shawnta
4 days ago
It's automatic and simple. No extra setup needed.
upvoted 0 times
...
Malcom
9 days ago
Why B?
upvoted 0 times
...
Shawnta
14 days ago
I think option B is the best.
upvoted 0 times
...
Shantay
19 days ago
D is a bit much, daily runs for temp files? Nah.
upvoted 0 times
...
Joanna
24 days ago
Wait, can you really automate this? Sounds too easy!
upvoted 0 times
...
Karrie
29 days ago
C seems overkill for just deleting files.
upvoted 0 times
...
Theron
1 month ago
I think A is better, more control with Cloud Scheduler.
upvoted 0 times
...
Timothy
1 month ago
B is the simplest solution! Lifecycle rules are perfect for this.
upvoted 0 times
...
Starr
1 month ago
I vaguely recall that Dataflow is more for processing data, so option C seems less relevant for just deleting old files.
upvoted 0 times
...
Katie
2 months 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
2 months 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
2 months 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