A company uses a Shared VPC hosted in a common project (host project) to centralize network management. A service project team needs to create a Compute Engine instance with a specific static internal IP address from the Shared VPC subnet. What IAM permissions should be granted to the service project's Compute Engine default service account?
Trap 1: compute.networkAdmin on the host project.
Overly broad; only specific permissions are needed.
Trap 2: compute.subnetworks.use on the host project subnet.
Also requires compute.addresses.use on the specific IP address.
Trap 3: compute.instances.create on the service project.
This does not grant access to Shared VPC resources.
- A
compute.networkAdmin on the host project.
Why wrong: Overly broad; only specific permissions are needed.
- B
compute.subnetworks.use on the host project subnet.
Why wrong: Also requires compute.addresses.use on the specific IP address.
- C
compute.instances.create on the service project.
Why wrong: This does not grant access to Shared VPC resources.
- D
compute.subnetworks.use and compute.addresses.use on the subnet and static IP.
These permissions allow using the subnet and reserving the specific IP.