
Explanation:
The correct method to make a Cloud Storage bucket public is by granting the Storage Object Viewer role to allUsers. This approach ensures that anyone on the internet can access the files without authentication. The GCP documentation recommends this method for sharing files publicly. Options A, B, and D are incorrect because: there is no make-public command in gsutil, the GCP Console does not have a 'make public' checkbox, and allAuthenticatedUsers does not provide public access as it requires authentication.
Ultimate access to all questions.
To host static web assets including HTML pages, JavaScript, and CSS files in a Cloud Storage bucket and make it publicly accessible, what is the correct method?
A
Use the gsutil command gsutil make-public gs://bucket-name to make the bucket public.
B
In the GCP Console, locate and check the 'make public' option for the bucket.
C
Grant the Storage Object Viewer role to allUsers to make the bucket publicly accessible.
D
Assign the Storage Object Viewer role to allAuthenticatedUsers to allow public access.
No comments yet.