A development project is linked to an active billing account, but creating a Compute Engine VM fails with the message "compute.googleapis.com API is not enabled for this project." The project editor role is considered too broad, and you need to grant the minimum additional permissions so the DevOps team can enable only the required APIs through either the console or the command 'gcloud services enable compute.googleapis.com'. Which IAM role should you grant to the DevOps group to meet the requirement while following the principle of least privilege?
Grant the predefined role roles/editor to the DevOps group.
Grant the predefined role roles/owner to the DevOps group.
Grant the predefined role roles/serviceusage.serviceUsageAdmin to the DevOps group.
Grant the predefined role roles/compute.admin to the DevOps group.
Enabling or disabling a Google Cloud API requires the permission serviceusage.services.enable, which is included in the predefined role roles/serviceusage.serviceUsageAdmin. This role lets principals manage the Service Usage API for a project without broader project-level privileges.
roles/editor contains the needed permission but also many unrelated permissions, violating least-privilege guidelines.
roles/owner grants full control of the project, far exceeding what is required.
roles/compute.admin (roles/compute.admin is actually roles/compute.admin or compute.admin?) provides permissions for managing Compute Engine resources but does not include serviceusage.services.enable, so it cannot turn on the API.
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 roles/serviceusage.serviceUsageAdmin role allow in GCP?
Open an interactive chat with Bash
What is the principle of least privilege in cloud computing?
Open an interactive chat with Bash
What is the difference between roles/serviceusage.serviceUsageAdmin and roles/editor?
Open an interactive chat with Bash
What does the Service Usage API manage in Google Cloud?
Open an interactive chat with Bash
Why is roles/serviceusage.serviceUsageAdmin considered least privilege?
Open an interactive chat with Bash
How can the Compute Engine API be enabled using gcloud commands?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Setting up a cloud solution environment
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 .