0
0
GCPcloud~5 mins

Object versioning in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Object Versioning in Google Cloud Storage?
Object Versioning is a feature that keeps multiple versions of an object in a storage bucket. When enabled, every time you overwrite or delete an object, the old version is saved and can be restored later.
Click to reveal answer
beginner
How does enabling Object Versioning help protect data?
It protects data by keeping previous versions of objects. If you accidentally delete or overwrite a file, you can recover the older version instead of losing it permanently.
Click to reveal answer
intermediate
What happens when you delete an object in a bucket with Object Versioning enabled?
The object is not permanently deleted. Instead, a 'delete marker' is added, and the old versions remain stored. You can restore the object by removing the delete marker or accessing previous versions.
Click to reveal answer
beginner
How do you enable Object Versioning on a Google Cloud Storage bucket?
You enable it by setting the bucket's versioning configuration to 'enabled' using the Cloud Console, gsutil command, or API. For example, with gsutil: `gsutil versioning set on gs://your-bucket-name`.
Click to reveal answer
beginner
What is a practical example of using Object Versioning?
Imagine you have a photo album stored in a bucket. If you accidentally overwrite a photo, Object Versioning lets you restore the original photo from an earlier version, preventing data loss.
Click to reveal answer
What does Object Versioning do in Google Cloud Storage?
AKeeps multiple versions of objects when they are changed or deleted
BDeletes objects permanently immediately
CCompresses objects to save space
DEncrypts objects automatically
How can you enable Object Versioning on a bucket?
ABy uploading a special file
BBy setting the bucket's versioning configuration to 'enabled'
CBy deleting the bucket
DBy changing the bucket's location
If you delete an object in a versioned bucket, what happens?
AA delete marker is added and old versions remain
BThe object is permanently removed immediately
CThe bucket is deleted
DThe object is moved to another bucket
Why is Object Versioning useful?
AIt reduces storage costs
BIt speeds up file uploads
CIt helps recover accidentally deleted or overwritten files
DIt automatically backs up your entire project
Which command enables Object Versioning using gsutil?
Agsutil enable version gs://bucket-name
Bgsutil set versioning true gs://bucket-name
Cgsutil bucket version on
Dgsutil versioning set on gs://bucket-name
Explain what Object Versioning is and how it helps protect data in Google Cloud Storage.
Think about how saving old copies of files can prevent data loss.
You got /3 concepts.
    Describe the steps to enable Object Versioning on a Google Cloud Storage bucket.
    Consider the tools you can use to change bucket settings.
    You got /3 concepts.