
Answer-first summary for fast verification
Answer: Store the data in Cloud Storage and use lifecycle management to delete files when they expire.
Option C is the correct answer because it leverages Cloud Storage's built-in lifecycle management feature, which automatically deletes objects based on their age or custom time metadata. This approach is secure, cost-effective, and fully managed, eliminating the need for manual intervention or custom scripts. The community discussion strongly supports C (88% consensus), with key points including: lifecycle management handles deletion based on object creation time or custom time (addressed via metadata for accurate retention periods), it aligns with Google Cloud best practices for automated data retention, and it is more reliable than script-based solutions (option D) which require maintenance and could fail. Option A (Google Drive) is unsuitable for large-scale, automated retention due to manual deletion and lack of enterprise-grade features. Option B (anonymize and store indefinitely) violates the requirement to delete data after 4 years. Option D (nightly script) is less optimal as it introduces operational overhead and potential failure points compared to a native, automated solution.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company has acquired a healthcare startup and must retain its customers' medical information for a period of up to 4 years, based on the creation date. Corporate policy requires this data to be stored securely and then deleted immediately once regulatory requirements are met.
Which approach should you take?
A
Store the data in Google Drive and manually delete records as they expire.
B
Anonymize the data using the Cloud Data Loss Prevention API and store it indefinitely.
C
Store the data in Cloud Storage and use lifecycle management to delete files when they expire.
D
Store the data in Cloud Storage and run a nightly batch script that deletes all expired data.
No comments yet.