exam questions

Exam Associate Data Practitioner All Questions

View all questions & answers for the Associate Data Practitioner exam

Exam Associate Data Practitioner topic 1 question 5 discussion

Actual exam question from Google's Associate Data Practitioner
Question #: 5
Topic #: 1
[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?

  • A. Set up a Cloud Scheduler job that invokes a weekly Cloud Run function to delete files older than seven days.
  • B. Configure a Cloud Storage lifecycle rule that automatically deletes objects 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
n2183712847
1 month, 4 weeks ago
Selected Answer: 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.
upvoted 1 times
...
rich_maverick
2 months ago
Selected Answer: B
Simplest solution. All solutions can be made to work.
upvoted 1 times
...
jatinbhatia2055
2 months, 1 week ago
Selected Answer: B
The most effective solution.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago