Practice Test 1 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
A developer accidentally deleted some of the files from a bucket. Luckily, the files were not critical and were re-created soon. Because of this, your team lead has asked you to enable versioning on bucket. Which command would help you enable the same?
A. gsutil versioning enable gs://whizlabs-bucket
B. gsutil gs://whizlabs-bucket enable versioning
C. gsutil enable versioning gs://whizlabs-bucket
D. gsutil versioning set on gs://whizlabs-bucket
Explanation:
The correct answer is Option D
The CLI command to enable versioning is gsutil versioning set on gs://whizlabs-bucket. Hence, D is the correct answer.
Options A, B, and C are incorrect because these are invalid CLI commands.
Reference:
https://cloud.google.com/storage/docs/using-object-versioning
Comments are closed, but trackbacks and pingbacks are open.