Google Professional Cloud Network Engineer Question 504
Select 2Google Cloud PlatformYou are a network engineer managing a global e-commerce website hosted on Google Cloud. To improve performance and reduce latency for users worldwide, you decide to enable Cloud CDN for your HTTP(S) load balancer. Which of the following configurations and considerations are necessary to ensure Cloud CDN functions correctly?
- A
Ensure that the backend instances send cacheable responses (e.g., responses with appropriate Cache-Control headers).
- B
Verify that the load balancer is configured with an external, global IP address.
- C
Enable the 'Cache All Responses' option in Cloud CDN settings to cache every response, regardless of caching headers.
- D
Confirm that the backend service or backend bucket is configured to use a health check.
- E
Check that the origin server supports HTTP/2 or QUIC protocols to maximize CDN performance.
Show answer and explanation
Correct answers: A, B
Explanation
To configure Cloud CDN successfully, the backend must send cacheable responses, and the HTTP(S) load balancer must be configured with a global, external IP address. These are critical requirements for Cloud CDN to serve cached content to users worldwide. Other considerations, such as health checks and HTTP/2, may add value but are not directly required for enabling Cloud CDN.
- A. Correct.
Correct. For Cloud CDN to cache content, responses from the backend must be cacheable. This includes setting appropriate Cache-Control headers or other caching metadata.
- B. Correct.
Correct. Cloud CDN requires that the HTTP(S) load balancer is configured with a global, external IP address to serve cached content to users worldwide.
- C. Incorrect.
Incorrect. Cloud CDN does not cache all responses by default, and enabling caching for all responses without proper Cache-Control headers could lead to incorrect behavior, such as caching private or dynamic content.
- D. Incorrect.
Incorrect. While health checks are required for backend services, they are not specific to enabling Cloud CDN functionality. Health checks are generally used to ensure that backend instances are operational.
- E. Incorrect.
Incorrect. While HTTP/2 or QUIC can improve performance, they are not mandatory for enabling or configuring Cloud CDN. Cloud CDN can still function using HTTP/1.1.