GCP ACE · Question 37 · Domain 4.4: Managing storage and database solutions
You have an object named report.pdf in a Cloud Storage bucket. It is currently stored in the Standard storage class. You want to change its storage class to Nearline using the command line.
Which command should you use?
Answer options:
gsutil rewrite -s nearline gs://my-bucket/report.pdf
gsutil cp -c nearline gs://my-bucket/report.pdf
gcloud storage class update nearline gs://my-bucket/report.pdf
You cannot change the storage class of an existing object; you must download and re-upload it.
50 questions · hints · full answers · grading