Enable Cloud CDN for Objects in a GCP Storage Bucket

Enable Cloud CDN for Storage Bucket Objects

Question

You need to enable Cloud CDN for all the objects inside a storage bucket.

You want to ensure that all the object in the storage bucket can be served by the CDN.

What should you do in the GCP Console?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.

To enable Cloud CDN for all objects inside a storage bucket, you should follow the below steps:

  1. Go to the GCP Console and select the project that contains the storage bucket.

  2. Open the Cloud Storage browser.

  3. Select the bucket for which you want to enable Cloud CDN.

  4. Click on the "Edit bucket details" button.

  5. Scroll down to the "Website configuration" section and click on the "Edit" button.

  6. In the "Website configuration" section, enable the "Use a CDN to serve content" option.

  7. Select "Google Cloud CDN" as the CDN type.

  8. Choose the default cache behavior, which caches all content by default.

  9. Save the changes.

After following these steps, Cloud CDN will be enabled for all objects in the selected storage bucket. Cloud CDN provides low-latency content delivery from Google's globally distributed edge caches. By caching content close to users, Cloud CDN reduces latency and improves the overall performance of web applications.