When you enable object versioning on a Google Cloud Storage bucket, what happens to your storage costs?
Think about how storing multiple copies affects space.
Enabling object versioning stores every version of an object separately. Each version consumes storage space and is billed, so costs increase.
In a Google Cloud Storage bucket with object versioning enabled, what happens when you delete an object without specifying a version?
Consider how versioning preserves data after deletion.
Deleting an object without specifying a version adds a delete marker. This hides the current version but older versions remain and can be restored.
Which gsutil command correctly enables object versioning on a bucket named my-bucket?
Check the gsutil syntax for versioning commands.
The correct command is gsutil versioning set on gs://my-bucket. Other options are invalid commands.
With object versioning enabled, what is the best way to recover data after an accidental overwrite of an object?
Think about how versioning stores multiple copies.
Each version has a unique generation number. You can specify this to access or restore previous versions after overwrite.
You have a bucket with object versioning enabled. You want to keep the latest version indefinitely but automatically delete noncurrent versions older than 30 days to reduce costs. Which lifecycle rule configuration achieves this?
Focus on conditions that target only noncurrent versions.
The condition daysSinceNoncurrentTime: 30 applies only to noncurrent versions, deleting those that have been noncurrent for 30 or more days. The current (live) version is unaffected and kept indefinitely.