Topic 1 Question 5
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?
Set up a Cloud Scheduler job that invokes a weekly Cloud Run function to delete files older than seven days.
Configure a Cloud Storage lifecycle rule that automatically deletes objects older than seven days.
Develop a batch process using Dataflow that runs weekly and deletes files based on their age.
Create a Cloud Run function that runs daily and deletes files older than seven days.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: B
The most effective solution.
👍 2jatinbhatia20552025/02/23 - 正解だと思う選択肢: B
Simplest solution. All solutions can be made to work.
👍 1rich_maverick2025/02/26 - 正解だと思う 選択肢: B
The best option is B. Cloud Storage lifecycle rule. Option B is best because lifecycle rules are built-in, automatic, and efficient for Cloud Storage object management like deletion based on age. Option A (Cloud Scheduler + Cloud Run) is incorrect because it's overly complex using two services when one built-in feature exists. Option C (Dataflow batch) is incorrect because Dataflow is overkill for simple deletion and more costly. Option D (Cloud Run daily) is incorrect because it's still more complex than lifecycle rules and daily frequency is likely unnecessary. Therefore, Option B, lifecycle rule, is the simplest, most efficient, and cost-effective solution.
👍 1n21837128472025/03/05
シャッフルモード