
Ultimate access to all questions.
You are tasked with migrating invoice documents stored in your on-premises infrastructure to Google Cloud Storage. The migration must adhere to the following storage requirements: • Each document must be retained for a period of five years. • You need the capability to store up to five revisions of the same invoice document to account for any corrections. • Documents that are older than 365 days should be transitioned to lower-cost storage tiers to optimize costs. With the goal of following Google-recommended practices to minimize both operational and development costs, what approach should you take?
A
Enable retention policies on the bucket, and use Cloud Scheduler to invoke a Cloud Function to move or delete your documents based on their metadata.
B
Enable retention policies on the bucket, use lifecycle rules to change the storage classes of the objects, set the number of versions, and delete old files.
C
Enable object versioning on the bucket, and use Cloud Scheduler to invoke a Cloud Functions instance to move or delete your documents based on their metadata.
D
Enable object versioning on the bucket, use lifecycle conditions to change the storage class of the objects, set the number of versions, and delete old files.