CLOUD-SECURITY-ENGINEER practice question 26 of 35

You are troubleshooting access denied errors between Compute Engine instances connected to a Shared VPC and BigQuery datasets. The datasets reside in a project protected by a VPC Service Controls perimeter. What should you do?

Full set: 317 questions
Answer options
A: Add the host project containing the Shared VPC to the service perimeter. Correct answer
B: Add the service project where the Compute Engine instances reside to the service perimeter.
C: Create a service perimeter between the service project where the Compute Engine instances reside and the host project that contains the Shared VPC.
D: Create a perimeter bridge between the service project where the Compute Engine instances reside and the perimeter that contains the protected BigQuery datasets.
Correct Answer:
A. Add the host project containing the Shared VPC to the service perimeter.
Explanation

When using a Shared VPC with VPC Service Controls, the network traffic from Compute Engine instances in a service project originates from the VPC network in the host project. VPC Service Controls enforces the perimeter at the network level. Therefore, for the service perimeter to correctly evaluate the traffic from the instances to the protected BigQuery dataset, the host project containing the Shared VPC network must be included in the same service perimeter as the project containing the BigQuery dataset. While the service project also needs to be in the perimeter, the host project's inclusion is critical because it provides the network context for the request.

Why Incorrect

B. Adding only the service project is insufficient. The host project, which contains the network resources, must also be in the same perimeter for the configuration to be valid.
C. Service perimeters are not created between projects. Projects are added into a perimeter to define a security boundary around their resources.
D. A perimeter bridge connects two different service perimeters. This scenario involves resources outside a single perimeter trying to access resources inside it, not communication between two separate perimeters.

References

1. Google Cloud Documentation

"VPC Service Controls"

"Use VPC Service Controls with Shared VPC". It states: "To use Shared VPC with VPC Service Controls

the host project and all the service projects that are attached to it must be in the same service perimeter." This highlights the requirement for the host project to be included.

2. Google Cloud Documentation

"VPC Service Controls"

"Service perimeter details". This document explains that a perimeter is a boundary around Google-managed resources and that projects are added to a perimeter.

Scroll to Top