Google Cloud Professional Cloud Network Engineer — Question 160
You are planning to use Terraform to deploy the Google Cloud infrastructure for your company. The design must meet the following requirements:
• Each Google Cloud project must represent an internal project that your team will work on.
• After an internal project is finished, the infrastructure must be deleted.
• Each internal project must have its own Google Cloud project owner to manage the Google Cloud resources.
• You have 10-100 projects deployed at a time.
While you are writing the Terraform code, you need to ensure that the deployment is simple and the code is reusable with centralized management.
What should you do?
Answer options
- A. Create a single project and single VPC for each internal project.
- B. Create a single Shared VPC and attach each Google Cloud project as a service project.
- C. Create a single project and additional VPCs for each internal project. D.O Create a Shared VPC and service project for each internal project.
Correct answer: B
Explanation
The correct answer is B because using a Shared VPC allows for centralized management and resource sharing across multiple projects, which meets the requirement of having 10-100 projects. Option A and C involve creating separate projects and VPCs which complicates management and reusability. Option D, while similar to B, suggests creating a service project for each internal project, which isn't necessary when using a Shared VPC.