A project owner needs to let the networking team create and update VPC firewall rules and routes in a specific Google Cloud project. The team must not be able to create or modify Compute Engine VM instances, disks, or images. Which IAM role granted at the project level best follows the principle of least privilege?
The Compute Network Admin predefined role (roles/compute.networkAdmin) is designed for networking tasks within Compute Engine. It lets principals create, modify, and delete networks, subnets, firewall rules, and routes, but it does not include permissions to manage VM instances, disks, or images.
Other options are overly permissive or insufficient:
Compute Admin (roles/compute.admin) includes broad permissions to create, modify, and delete most Compute Engine resources-including VM instances and disks-violating least-privilege principles.
Editor (roles/editor) is a primitive role that grants wide-ranging write access to nearly all Google Cloud services in the project, far beyond what is required.
Compute Security Admin (roles/compute.securityAdmin) allows management of firewall rules but also grants instance stop/start and some image operations, exceeding the stated requirements.
Therefore, roles/compute.networkAdmin is the most appropriate predefined role.
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 principle of least privilege in IAM roles?
Open an interactive chat with Bash
What tasks does the Compute Network Admin role allow in Google Cloud?
Open an interactive chat with Bash
Why is 'Editor' role considered overly permissive in this case?
Open an interactive chat with Bash
What is the difference between the Compute Network Admin and Compute Admin roles?
Open an interactive chat with Bash
Why does the Compute Security Admin role not meet the principle of least privilege?
Open an interactive chat with Bash
What does the principle of least privilege mean in the context of IAM roles?
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
$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 .