How to Centralize GCP Infrastructure Management with Terraform?
Short answer
B Create a single Shared VPC and attach each Google Cloud project as a service project.
Question
Key Takeaways
Tests the ability to select a scalable cloud networking model that satisfies both centralized management and per-project lifecycle requirements, often trapping candidates into over-prioritizing isolated deletion boundaries.
This question evaluates the optimal GCP networking architecture for multi-project deployments using Terraform. The community consensus strongly supports Shared VPC (Option B) to balance centralized network management with independent project ownership and scalable lifecycle handling.
Common mistake: Candidates frequently select Option A, prioritizing straightforward project deletion over the explicit requirement for centralized management, which increases operational overhead and violates the reusable code constraint at scale.
Expert Analysis
Why the Answer Is Correct
Shared VPC architecture enables a single host project to centrally manage routing, firewall rules, and subnets while multiple service projects attach to it. This design directly satisfies the requirement for centralized management across 10–100 projects while allowing each internal project to maintain its own dedicated owner via IAM delegation. Terraform modules can efficiently provision these service projects independently, ensuring reusable code and streamlined infrastructure orchestration without cross-project dependency conflicts.
Why the Other Options Are Wrong
Option A forces complete network isolation per project, which contradicts the centralized management mandate and creates significant scaling overhead for dozens of concurrent deployments. Option C incorrectly bundles multiple VPCs into a single project, complicating route tables, firewall rule management, and IAM boundary definitions. Both approaches fail to leverage Terraform’s modular capabilities for consistent, cross-project infrastructure automation.
Community Comment Notes
Comment [1] correctly identifies centralized management as the primary driver for selecting Shared VPC over isolated setups. Comment [2] raises a valid point about deletion simplicity but overlooks that service projects can be deleted independently without orphaning the host network or violating cleanup requirements. Comment [4] accurately reinforces that Shared VPC inherently requires distinct host and service projects, validating the architectural choice and clarifying common misconceptions.
Official Reference
- https://cloud.google.com/vpc/docs/shared-vpc
- https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_subnetwork
- https://cloud.google.com/architecture/best-practices-for-setting-up-shared-vpc
These links open the official vendor documentation in a new tab.
Exam Strategy
When evaluating cloud architecture questions, explicitly map every stated constraint to the solution before considering edge cases like deletion workflows. Prioritize answers that satisfy scalability and centralized control requirements, as they typically outweigh minor operational preferences in certification scenarios.
Community Votes
75% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 4 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 4
-
gonlafer 👍 3 Answered BWhen it comes to centralized management... I'd go to B.
-
3574e4e 👍 1 Answered AWith single project and single VPC for each internal project everything related to the internal project will be removed when the Google Cloud project is deleted. With Shared VPC there will always be something in the host project that won't be easy to delete with the project. Since there are no requirements for connectivity between the projects, I'll go for A.
-
dev62 👍 1Option D : Shared VPC allows you to create a single VPC network that can be shared across multiple Google Cloud projects. Each internal project (Department A and Department B) can be attached as a service project to the Shared VPC. This approach centralizes management while allowing each project to have its own owner.
-
PeppaPig 👍 1B is correct D is wrong because shared VPC and service project must be different projects
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All PCNE Questions
Access 80 questions with complete answers and detailed explanations.
View Full PCNE Practice Test →