Google Cloud Professional Cloud Network Engineer — Question 225

You are implementing a Shared VPC network for your organization, which has distributed teams. One of the application developers works across several teams and notices that they can deploy applications in subnets that are reserved for another application's service projects. You want to ensure that developers can only deploy resources in the subnets that are reserved for their respective service project. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer, A, ensures that each application's service projects can only access their designated Shared VPC subnets, thereby preventing cross-team resource deployment. Option B is incorrect as granting the compute.NetworkViewer role does not restrict deployment capabilities. Option C is not suitable because it focuses on restricting access to host projects, not subnets. Option D allows resource deployment but does not address the issue of restricting access to only specific subnets.