exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 349 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 349
Topic #: 1
[All Professional Cloud Developer Questions]

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?

  • A. Add a final step in the job that deletes all the objects in the bucket in bulk by using batch requests to the Cloud Storage API.
  • B. Configure Object Lifecycle Management on the Cloud Storage bucket that deletes all the objects in the bucket at the end of the job execution.
  • C. Remove the bucket from the Google Cloud console when the job is completed
  • D. Use the gcloud CLI to execute the gcloud storage rm --recursive gs://BUCKET_NAME/ command.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
zanhsieh
5 days, 17 hours ago
Selected Answer: A
Goal: Delete all customer data in a Cloud Storage bucket immediately after job completion, minimizing the time required to complete the deletion to meet regulatory requirements. A: Yes. A final step using batch delete requests via the Cloud Storage API allows you to programmatically delete all objects in bulk at once. This minimizes deletion time and ensures immediate, controlled, and explicit data removal as soon as the job finishes. B: No. Object Lifecycle Management operates on scheduled age-based rules, not immediately at the end of the job. It cannot guarantee deletion instantly after the job finishes. C: No. The question only ask to delete the customer data processed, not all customer data. Delete bucket data will cause data loss for all customers. This also is done manually, not immedately after the job is completed. D: No. Same as C.
upvoted 1 times
...
09bd94b
4 months, 1 week ago
Selected Answer: A
this approach makes sense
upvoted 1 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 ...