Google Professional Cloud Network Engineer Question 513
Select 3Google Cloud PlatformYou are setting up Cloud CDN to cache content from an external backend using an internet NEG (Network Endpoint Group) that points to a third-party object storage service. Which of the following steps are required to configure this setup successfully?
- A
Create a global internet NEG with the endpoint pointing to the third-party object storage URL.
- B
Enable Cloud CDN on the backend service linked to the internet NEG.
- C
Add a Cloud Storage bucket to your project for caching the third-party content.
- D
Configure URL maps to route requests to the backend service linked to the internet NEG.
- E
Ensure the third-party object storage service supports CORS (Cross-Origin Resource Sharing) headers for the content.
Show answer and explanation
Correct answers: A, B, D
Explanation
To set up Cloud CDN for an external backend using an internet NEG, you must define the internet NEG with the third-party object storage as the endpoint, enable Cloud CDN on the backend service, and configure URL maps to direct traffic to the backend. Cloud CDN will then cache the content served from the external backend and deliver it to users. Additional configurations like CORS are not necessary for the basic setup of Cloud CDN for this use case.
- A. Correct.
Correct. A global internet NEG is required to define external backend endpoints such as third-party object storage URLs.
- B. Correct.
Correct. Cloud CDN must be explicitly enabled on the backend service to use caching functionality.
- C. Incorrect.
Incorrect. Cloud CDN caches content directly from the backend; there is no need to set up a Cloud Storage bucket in this scenario.
- D. Correct.
Correct. URL maps are required to route traffic from the frontend to the backend service linked to the internet NEG.
- E. Incorrect.
Incorrect. While CORS headers are important for certain use cases, they are not required for enabling Cloud CDN for an external backend.