
Answer-first summary for fast verification
Answer: 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.
The correct answer is D. Here's why: - Enabling object versioning on the bucket ensures you can store up to five revisions of the same invoice document, meeting the requirement for corrections. - Using lifecycle conditions allows you to automatically change the storage class of objects older than 365 days to a lower-cost storage tier, effectively managing storage costs. - Lifecycle conditions also let you set the number of versions to keep and automatically delete old files, maintaining compliance with the five-year retention requirement. Overall, this approach aligns with Google-recommended practices, helping to minimize both operational and development costs.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
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.