Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Associate Data Practitioner practice bank has 1,156 more like it. Try 10 free: instant score, no account.
A data engineering team at a retail organization uploads daily transaction log files into a Google Cloud Storage bucket. To minimize storage costs and comply with internal data retention guidelines, the team needs to automatically delete log files once they are 30 days old.
Which method should the team use to configure and manage automated object deletion on the Cloud Storage bucket?
Datastore Time-to-Live (TTL) is a feature for Firestore in Datastore mode databases that automatically purges entities from a specified kind when a timestamp property reaches expiration.
Date and time data type.The scenario required automatically removing expired transactional entities or temporary state entries from a Google Cloud Datastore database.
Cloud Storage Object Lifecycle Management allows administrators and data engineers to define automated rules that apply actions to objects stored within a bucket when specified conditions are met. These rules run automatically in the background without requiring custom code or scheduled jobs.
Delete combined with an Age condition of 30 days ensures that all objects reaching 30 days since creation are automatically scheduled for permanent deletion.
Age, CreatedBefore, IsLive, MatchesStorageClass, and NumberOfNewerVersions.gcloud storage), or client library APIs by patching the bucket metadata.Native Object Lifecycle Management is the Google Cloud recommended mechanism for managing data retention and automated cleanup on Cloud Storage buckets. It eliminates the operational overhead and failure risks associated with maintaining custom deletion scripts.
Firestore Time-to-Live (TTL) is a database retention mechanism that automatically removes obsolete documents from Firestore collections or collection groups based on a designated timestamp field of type Date and time.
The scenario required automatically removing stale database records or user session documents from a Firestore NoSQL collection based on a specified expiration date field.
While Firestore TTL and Cloud Storage Lifecycle Management both solve data retention needs, each tool is purpose-built for its respective storage engine (NoSQL documents vs. object storage).
Google Cloud Backup and Disaster Recovery (Backup and DR) manages snapshot images, backups, and recovery point objectives (RPOs) across protected enterprise workloads and virtual machines.
The goal was to govern retention, expiration schedules, and immutability locks on application backup recovery images within the Backup and DR service.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated