A cloud operations team needs to grant a network engineer permission to manage VPC subnets and firewall rules in a Google Cloud project named net-prod-2026. The engineer must not be able to create, delete, or modify Compute Engine virtual machine instances or access project storage resources. Following Google Cloud best practices and the principle of least privilege, which IAM role configuration should be granted to the network engineer?
- Grant the Compute Network Admin role (roles/compute.networkAdmin) at the project level.Answer
- BGrant the Editor primitive role (roles/editor) at the project level.
- CGrant the Compute Admin role (roles/compute.admin) at the project level.
- DGrant the Compute Network Admin role (roles/compute.networkAdmin) at the Organization level.
Answer
Grant the Compute Network Admin role (roles/compute.networkAdmin) at the project level.
Granting the Compute Network Admin role (roles/compute.networkAdmin) scoped to the specific project provides full control over VPC networking resources, subnets, and firewall rules without granting access to manage VM instances or other non-networking services, exactly fulfilling the principle of least privilege.
Step-by-Step Solution
Key Concept
Principle of Least Privilege in GCP IAM Role Assignment