Google Professional Cloud Network Engineer Question 506
Select 4Google Cloud PlatformYou are tasked with setting up Cloud CDN to cache content for a high-traffic web application hosted on Google Cloud. The application uses a backend service with managed instance groups for dynamic content and a Cloud Storage bucket to serve static assets. What steps must you take to successfully configure Cloud CDN for both origins?
- A
Enable Cloud CDN on the backend service linked to the managed instance group.
- B
Enable Cloud CDN on the Cloud Storage bucket by creating a backend bucket.
- C
Configure an HTTP(S) Load Balancer and associate it with the backend services and backend buckets.
- D
Manually upload static assets to global edge locations for caching.
- E
Set caching policies and cache keys on the backend service or backend bucket.
Show answer and explanation
Correct answers: A, B, C, E
Explanation
To successfully configure Cloud CDN for both managed instance groups and Cloud Storage buckets, you must enable Cloud CDN on the respective backend services and backend buckets, as well as set up an HTTP(S) Load Balancer to route traffic. Additionally, setting caching policies and cache keys ensures proper caching behavior. Manually uploading static assets is not required, as Cloud CDN handles caching automatically.
- A. Correct.
Correct: Cloud CDN must be enabled on the backend service that is linked to the managed instance group for caching dynamic content.
- B. Correct.
Correct: For Cloud Storage buckets, a backend bucket is required to enable Cloud CDN and serve static assets.
- C. Correct.
Correct: Cloud CDN requires an HTTP(S) Load Balancer to distribute traffic and connect to backend services or backend buckets.
- D. Incorrect.
Incorrect: Cloud CDN automatically caches content at edge locations; there is no need to manually upload static assets.
- E. Correct.
Correct: Cache policies and cache keys allow you to fine-tune caching behavior, which is critical for optimal performance.