Practice Test 3 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
Which of the following command could be used to change the storage class of an object in Cloud Storage?
A. gsutil rewrite -c [STORAGE_CLASS] gs://Reports-PDF/[OBJECT_NAME]
B. gsutil rewrite -s [STORAGE_CLASS] gs://Reports-PDF/[OBJECT_NAME]
C. gsutil rewrite -I [STORAGE_CLASS] gs://Reports-PDF/[OBJECT_NAME]
D. gsutil rewrite -k [STORAGE_CLASS] gs://Reports-PDF/[OBJECT_NAME]
Explanation:
Answer: B
B is correct: The gsutil rewrite command rewrites cloud objects, applying the specified transformations to them. The transformation(s) are atomic and applied based on the input transformation flags (-s). Object metadata values are preserved unless altered by a transformation.
A is incorrect: Invalid flag and command.
C is incorrect: Causes gsutil to read the list of objects to rewrite from stdin.
D is incorrect: Rewrite objects with the current encryption key specified in your boto configuration file
Link:
https://cloud.google.com/storage/docs/gsutil/commands/rewrite
Comments are closed, but trackbacks and pingbacks are open.