
Answer-first summary for fast verification
Answer: Assign the Storage Object Viewer role to allUsers to make the bucket publicly accessible.
The correct method to make a Cloud Storage bucket public is by assigning the Storage Object Viewer role to allUsers. This ensures that anyone on the internet can access the static web assets without authentication. The option to use allAuthenticatedUsers (Option B) restricts access to only authenticated users, which does not meet the requirement for public access. There is no 'make public' checkbox in the GCP Console (Option D) or a `gsutil make-public` command (Option A) available for this purpose. For detailed steps, refer to the GCP documentation on sharing files in Cloud Storage, which guides on making groups of objects publicly readable.
Author: LeetQuiz Editorial Team
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
Assign the Storage Object Viewer role to allAuthenticatedUsers to allow public access.
C
Assign the Storage Object Viewer role to allUsers to make the bucket publicly accessible.
D
Select the 'make public' checkbox in the GCP Console for the bucket.
No comments yet.