How to Secure a 3-Tier App with VPC Peering and IAP?
Short answer
C Create separate VPC networks for each tier, peer them for controlled traffic, and enable Identity-Aware Proxy for secure, least-privilege vendor remote access.
Question
Key Takeaways
Tests the architectural trade-off between network segmentation and secure remote access, with the common trap being direct SSH exposure instead of identity-aware proxy solutions.
This scenario tests micro-segmentation using isolated VPCs and secure remote administration via Identity-Aware Proxy on Google Cloud. The page establishes that option C correctly balances strict network isolation, controlled inter-tier traffic, and least-privilege vendor access.
Common mistake: Candidates frequently select direct SSH or root access options because they prioritize immediate convenience over security, overlooking how IAP eliminates port exposure and enforces granular IAM controls.
Expert Analysis
Why the Answer Is Correct
Creating separate VPC networks for each application tier establishes hard security boundaries that effectively contain potential breaches and prevent lateral movement. VPC peering enables necessary inter-tier communication while maintaining these strict isolation controls. Enabling Identity-Aware Proxy replaces traditional SSH endpoints with a secure, identity-based tunnel that verifies user credentials before granting instance access, perfectly satisfying the requirement for authorized third-party maintenance under the principle of least privilege.
Why the Other Options Are Wrong
Option A exposes management ports directly and grants dangerous root privileges, which blatantly violates least privilege and increases attack surface. Option B relies on a flat single-VPC architecture that lacks true isolation and incorrectly assigns broad network administrator roles to external vendors. Option D compounds these flaws by granting full project ownership and Shared VPC configuration rights, creating an unacceptable privilege escalation risk for third parties.
Community Comment Notes
As abdelrahman89 noted, "Creating separate VPC networks for each tier provides a strong isolation boundary," highlighting the necessity of micro-segmentation. Pime13 emphasized that using Identity-Aware Proxy ensures only authorized personnel can reach management resources while strictly adhering to least privilege. Another contributor simply confirmed the selection, reinforcing that this combination of VPC isolation and proxy-based access represents the industry-standard approach for secure cloud deployments.
Official Reference
These links open the official vendor documentation in a new tab.
Exam Strategy
Scan the prompt for keywords like "strong security boundaries," "isolation," and "principle of least privilege" to immediately eliminate flat networking models and overly permissive IAM assignments. Always default to managed identity proxies like IAP over direct SSH or root access when designing secure remote maintenance workflows for third parties.
Frequently Asked Questions
Why not use direct SSH keys for vendor maintenance?
Why is a single VPC with subnets insufficient here?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 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 3
-
abdelrahman89 👍 2C - Separate VPCs: Creating separate VPC networks for each tier provides a strong isolation boundary, reducing the risk of unauthorized access or lateral movement. VPC Peering: Using VPC peering between application tiers and other required VPCs allows for secure communication while maintaining isolation. Identity-Aware Proxy (IAP): Enabling IAP for remote access to management resources provides a secure and controlled way for authorized vendors to access the application. IAP requires authentication and authorization, ensuring that only authorized individuals can access the resources. Least Privilege: This approach adheres to the principle of least privilege by granting vendors only the necessary access to perform their maintenance tasks.
-
Pime13 👍 1 Answered CThis approach ensures that each tier of the application is isolated within its own VPC, enhancing security. VPC peering allows necessary communication between tiers while maintaining isolation. Using Identity-Aware Proxy (IAP) for remote access ensures that only authorized vendors can access management resources, adhering to the principle of least privilege.
-
json4u 👍 1 Answered CIt's C.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.