Your organization runs several Cloud Storage buckets in a single project. Only one analyst, [email protected], must be able to list and download objects from the bucket gs://analytics-data. She must not access any other GCS resources or change data. As the project owner, which single IAM change best satisfies the requirement while following least-privilege?
Grant [email protected] the Storage Admin role on the bucket gs://analytics-data.
Grant [email protected] the Storage Object Viewer role on the bucket gs://analytics-data.
Granting the Storage Object Viewer role (roles/storage.objectViewer) on the specific bucket gives Alice permission to list objects and read their data in that bucket only. Because the binding is applied at the bucket level, it does not cascade to other buckets or project resources, preserving least-privilege. Granting the same role or any broader role (such as Viewer or Storage Admin) at the project level would allow Alice to read objects in every bucket in the project. Granting Storage Admin on the bucket would let her create, overwrite, or delete objects, violating the read-only requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the Storage Object Viewer role allow in GCP?
Open an interactive chat with Bash
What is the principle of least privilege in IAM?
Open an interactive chat with Bash
How does bucket-level IAM differ from project-level IAM in GCP?
Open an interactive chat with Bash
What is the Storage Object Viewer role in Google Cloud IAM?
Open an interactive chat with Bash
How does applying an IAM role at the bucket level differ from applying it at the project level?
Open an interactive chat with Bash
Why is least-privilege access important in IAM?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Configuring access and security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .