Complete the code to enable versioning on a Google Cloud Storage bucket.
gsutil versioning set [1] gs://my-bucketTo enable versioning on a GCS bucket, the command uses versioning set on.
Complete the command to list all versions of objects in a bucket.
gsutil ls -[1] gs://my-bucketThe -v flag lists all versions of objects in the bucket.
Fix the error in the command to disable versioning on a bucket.
gsutil versioning set [1] gs://my-bucketThe correct keyword to disable versioning is off.
Fill both blanks to create a lifecycle rule that deletes noncurrent object versions when there are 30 newer versions.
{
"rule": {
"action": {"type": "[1]"},
"condition": {"numNewerVersions": [2]
}
}The action to remove old versions is Delete, and the condition specifies to delete when there are 30 newer versions.
Fill all three blanks to create a lifecycle rule that deletes object versions older than 365 days.
{
"rule": {
"action": {"type": "[1]"},
"condition": {
"age": [2],
"isLive": [3]
}
}
}The action is Delete. The age condition is 365 days. isLive is false to target noncurrent versions.