An organization is configuring a Virtual Private Cloud (VPC) network topology for internal compute resources. Compute Engine instances reside in a private subnet with no external IP addresses assigned. These instances require outbound access to download software updates from external internet repositories and must also interact with Google Cloud Storage APIs, while preventing any inbound internet traffic. Which configuration properly enables these requirements with minimal operational complexity?
- Enable Private Google Access on the private subnet for Google Cloud API traffic, and configure Cloud Router with Cloud NAT for outbound internet egress.Answer
- BEstablish VPC Network Peering to a central transit VPC containing a Cloud NAT gateway, allowing instances in the private subnet to route internet traffic transitively through the peered network.
- CProvision a 10 Gbps Dedicated Interconnect connection to route all outbound internet traffic and Cloud Storage API calls through on-premises network firewalls.
- DAssign granular Identity and Access Management (IAM) roles to the service account without modifying subnet settings, allowing API and internet traffic through Google default routing.
Answer
Enabling Private Google Access on the subnet alongside Cloud Router with Cloud NAT provides direct access to Google Cloud APIs and outbound internet connectivity for private instances without exposing them to inbound connections.
Enabling Private Google Access on a VPC subnet allows virtual machines without public IP addresses to securely reach Google Cloud APIs such as Cloud Storage via internal IP routing. Deploying Cloud NAT using Cloud Router enables controlled outbound internet access for software updates while preventing inbound internet connections from reaching the instances.
Step-by-Step Solution
Key Concept
Subnet Private Google Access and Cloud NAT configuration for private VPC egress.