Google Cloud Associate Cloud Engineer — Question 71
You need to enable traffic between multiple groups of Compute Engine instances that are currently running two different GCP projects. Each group of Compute
Engine instances is running in its own VPC. What should you do?
Answer options
- A. Verify that both projects are in a GCP Organization. Create a new VPC and add all instances.
- B. Verify that both projects are in a GCP Organization. Share the VPC from one project and request that the Compute Engine instances in the other project use this shared VPC.
- C. Verify that you are the Project Administrator of both projects. Create two new VPCs and add all instances.
- D. Verify that you are the Project Administrator of both projects. Create a new VPC and add all instances.
Correct answer: B
Explanation
The correct answer is B because sharing a VPC allows instances from different projects to communicate while maintaining their isolation. Options A, C, and D do not effectively achieve inter-project communication as they either suggest creating new VPCs or do not utilize the shared VPC capability.