Google Professional Cloud Network Engineer Question 505
Select 4Google Cloud PlatformYou are tasked with setting up Cloud CDN to improve the performance and availability of your application. The application is deployed on multiple supported origins: a Cloud Storage bucket, a Cloud Run service, and a managed instance group. Which steps should you take to successfully enable Cloud CDN for these origins?
- A
Add an external HTTP(S) load balancer and configure the origins as backend services.
- B
Enable Cloud CDN on the backend services connected to the external HTTP(S) load balancer.
- C
Ensure the origins support public access and are configured with appropriate caching policies.
- D
Directly enable Cloud CDN on the Cloud Storage bucket, Cloud Run service, and managed instance group without using a load balancer.
- E
Configure a private IP address for the backend services to ensure caching is enabled for private traffic.
- F
Set up appropriate cache invalidation rules to manage content updates in Cloud CDN.
Show answer and explanation
Correct answers: A, B, C, F
Explanation
To enable Cloud CDN for supported origins (Cloud Storage buckets, Cloud Run services, and managed instance groups), you must first configure an external HTTP(S) load balancer to route traffic to these origins. Cloud CDN is then enabled on the backend services associated with the load balancer. The origins must support public access with appropriate caching policies, and cache invalidation rules should be defined to manage content updates effectively. Directly enabling Cloud CDN on origins without a load balancer or setting private IPs is not supported.
- A. Correct.
Correct: Cloud CDN requires an external HTTP(S) load balancer to route traffic to the supported origins. This is a necessary step for enabling Cloud CDN.
- B. Correct.
Correct: Enabling Cloud CDN on the backend services connected to the load balancer ensures caching is activated for those origins.
- C. Correct.
Correct: Cloud CDN works with public-facing origins, so ensuring public access and configuring caching policies is required for proper functionality.
- D. Incorrect.
Incorrect: Cloud CDN cannot be enabled directly on Cloud Storage buckets, Cloud Run services, or managed instance groups. A load balancer is required to manage traffic and caching.
- E. Incorrect.
Incorrect: Cloud CDN is designed for public traffic and does not cache private traffic. Configuring a private IP is not relevant to enabling Cloud CDN.
- F. Correct.
Correct: Cache invalidation rules are important to manage updates to content in Cloud CDN and ensure users receive the most recent data.