GCP Professional Cloud Security Engineer Practice Question
In your organization, the CI/CD platform runs in the devops project by using the service account [email protected]. The pipeline must upload build artifacts to the Cloud Storage bucket gs://release-artifacts that resides in the prod project. The security team requires that the service account be able to add new objects to the bucket but must not be allowed to list, view, overwrite, or delete existing objects. All permissions must be granted as narrowly scoped as possible on the bucket itself. Which single IAM role assignment best meets the requirement?
Assign roles/storage.admin to [email protected] on the prod project.
Assign roles/storage.objectCreator to [email protected] on the release-artifacts bucket.
Assign roles/storage.objectAdmin to [email protected] on the release-artifacts bucket.
Assign roles/storage.legacyBucketWriter to [email protected] on the prod project.
Granting the predefined role roles/storage.objectCreator on the gs://release-artifacts bucket lets the service account write (upload) objects without granting the permissions to list bucket contents, read objects, overwrite existing ones, or delete them. Assigning the role at the bucket level confines the permission to just that resource, satisfying the least-privilege mandate.
The Storage Object Admin and Storage Admin roles both include powerful permissions such as object delete, update, and full bucket administration, which violate the requirement to prevent viewing, overwriting, or deleting existing objects and would grant privileges far beyond a single bucket. The legacyBucketWriter role also includes object delete permissions and is scoped for legacy ACLs at the project level, so it is overly permissive and applies more broadly than necessary.
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 is the purpose of the roles/storage.objectCreator role?
Open an interactive chat with Bash
What does the principle of least privilege mean in IAM roles?
Open an interactive chat with Bash
How does assigning permissions at the bucket level differ from assigning them at the project level?
Open an interactive chat with Bash
What is the roles/storage.objectCreator role in Google Cloud IAM?
Open an interactive chat with Bash
Why is the principle of least privilege important in IAM role assignments?
Open an interactive chat with Bash
What is the difference between roles/storage.objectCreator and roles/storage.objectAdmin?
Open an interactive chat with Bash
GCP Professional Cloud Security Engineer
Configuring Access
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
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .