Google Professional Cloud Network Engineer Question 508
Select 2Google Cloud PlatformYour organization is hosting a static website on a Cloud Storage bucket and wants to leverage Cloud CDN to improve performance and reduce latency for end users globally. You have already set the bucket to be publicly accessible. Which of the following steps are required to enable Cloud CDN for this setup?
- A
Create a backend bucket and attach it to a load balancer, then enable Cloud CDN on the backend bucket.
- B
Enable Cloud CDN directly on the Cloud Storage bucket.
- C
Set up a global external HTTP(S) load balancer and configure it with a backend bucket that points to the Cloud Storage bucket.
- D
Configure a Cloud Run instance to serve the content from the Cloud Storage bucket, then enable Cloud CDN on the Cloud Run service.
- E
Ensure the Cloud Storage bucket name matches the domain name you want to serve content from.
Show answer and explanation
Correct answers: A, C
Explanation
To enable Cloud CDN for a Cloud Storage bucket, you must first create a backend bucket that points to the Cloud Storage bucket and configure a global external HTTP(S) load balancer. Then, enable Cloud CDN on the backend bucket through the load balancer. Cloud CDN cannot be enabled directly on a Cloud Storage bucket, and using Cloud Run is unnecessary for this specific use case of serving static content.
- A. Correct.
Correct. To serve content from a Cloud Storage bucket with Cloud CDN, you must first create a backend bucket, attach it to a load balancer, and then enable Cloud CDN on that backend bucket.
- B. Incorrect.
Incorrect. Cloud CDN cannot be enabled directly on a Cloud Storage bucket. It requires a load balancer configuration.
- C. Correct.
Correct. A global external HTTP(S) load balancer is required to serve content via Cloud CDN. The load balancer routes traffic to the backend bucket (which points to the Cloud Storage bucket).
- D. Incorrect.
Incorrect. Although Cloud Run can be used as an origin for Cloud CDN, this is not the recommended setup for serving static content from a Cloud Storage bucket.
- E. Incorrect.
Incorrect. While using a custom domain is a best practice, matching the bucket name to the domain name is not a requirement for enabling Cloud CDN.