Google Cloud Professional Cloud Network Engineer — Question 156

You want Cloud CDN to serve the https://www.example.com/images/spacetime.png static image file that is hosted in a private Cloud Storage bucket. You are using the USE_ORIGIN_HEADERS cache mode. You receive an HTTP 403 error when opening the file in your browser, and you see that the HTTP response has a Cache-Control: private, max-age=0 header. How should you correct this issue?

Answer options

Correct answer: B

Explanation

The correct answer is B because changing the cache mode to Force cache all content allows the CDN to cache the content despite the private Cache-Control header. The other options do not directly address the issue; enabling negative caching (A) would not fix the access problem, altering permissions (C) might expose your data unnecessarily, and increasing the TTL (D) does not resolve the immediate access error.