ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 156 - Professional Cloud Network Engineer discussion

Report
Export

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 VSE ORIG.-X_NZADERS 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=O header How should you correct this Issue?

A.
Configure a Cloud Storage bucket permission that gives the Storage Legacy Object Reader role
Answers
A.
Configure a Cloud Storage bucket permission that gives the Storage Legacy Object Reader role
B.
Change the cache mode to cache all content.
Answers
B.
Change the cache mode to cache all content.
C.
Increase the default time-to-live (TTL) for the backend service.
Answers
C.
Increase the default time-to-live (TTL) for the backend service.
D.
Enable negative caching for the backend bucket
Answers
D.
Enable negative caching for the backend bucket
Suggested answer: A

Explanation:

The correct answer is A. Configure a Cloud Storage bucket permission that gives the Storage Legacy Object Reader role.

This answer is based on the following facts:

Cloud CDN can serve private content from Cloud Storage buckets, but you need to grant the appropriate permissions to the Google-managed service account that represents your load balancer1.

The Storage Legacy Object Reader role grants read access to objects in a bucket2.

The Cache-control: private header indicates that the object is not publicly readable and requires authentication3.

The USE_ORIGIN_HEADERS cache mode instructs Cloud CDN to cache responses based on the Cache-Control and Expires headers from the origin server4. Changing the cache mode, increasing the TTL, or enabling negative caching will not affect the 403 error.

asked 18/09/2024
Robbie Shen
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first