nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #215

You need to immediately change the storage class of an existing Google Cloud bucket. You need to reduce service cost for infrequently accessed files stored in that bucket and for all files that will b

The correct answer is B. Use the gsutil to rewrite the storage class for the bucket.. To change the storage class for both existing and future objects in a Google Cloud Storage bucket to reduce costs, use gsutil to rewrite the storage class for existing objects and set the default storage class for the bucket.

Submitted by marco_it· Mar 30, 2026Planning and configuring a cloud solution

Question

You need to immediately change the storage class of an existing Google Cloud bucket. You need to reduce service cost for infrequently accessed files stored in that bucket and for all files that will be added to that bucket in the future. What should you do?

Options

  • AUse the gsutil to rewrite the storage class for the bucket.
  • BUse the gsutil to rewrite the storage class for the bucket.
  • CCreate a new bucket and change the default storage class for the bucket.
  • DCreate a new bucket and change the default storage class for the bucket import the files from the

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    92% (24)
  • D
    4% (1)

Why each option

To change the storage class for both existing and future objects in a Google Cloud Storage bucket to reduce costs, use `gsutil` to rewrite the storage class for existing objects and set the default storage class for the bucket.

AUse the gsutil to rewrite the storage class for the bucket.

This option is identical to B, describing the correct method to change storage classes for both existing and future objects using `gsutil`.

BUse the gsutil to rewrite the storage class for the bucket.Correct

To change the storage class of existing objects in a bucket, you must use `gsutil rewrite` to re-write the objects with the new storage class, and to ensure all future objects added to the bucket adopt the desired, cost-effective storage class, you must set the default storage class for the bucket itself using `gsutil defstorageclass set`. This two-step process addresses both existing and future files efficiently.

CCreate a new bucket and change the default storage class for the bucket.

Creating a new bucket and changing its default storage class only affects *new* objects in that *new* bucket and does not address existing files in the original bucket.

DCreate a new bucket and change the default storage class for the bucket import the files from the

Creating a new bucket and importing files is an inefficient and potentially costly data transfer operation that doesn't directly solve changing the storage class for existing objects in place or setting the default for the original bucket.

Concept tested: Google Cloud Storage object/bucket storage class management

Source: https://cloud.google.com/storage/docs/changing-storage-classes

Topics

#Cloud Storage#storage class#cost optimization#gsutil

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice