A cloud solution architect is deploying a custom-mode Virtual Private Cloud (VPC) subnet to host internal Compute Engine virtual machines that do not have public IP addresses assigned. These virtual machines must be able to upload log files directly to a Google Cloud Storage bucket without sending traffic over the public internet or utilizing NAT gateways.
Which configuration must be enabled on the subnet to support this connectivity requirement?
- Enable Private Google Access on the target VPC subnet.Answer
- BAssign the primitive Owner role to the instance service account to bypass internet route checks.
- CCreate an egress firewall rule with priority 65535 targeting the Google Cloud Storage API IP ranges.
- DSwitch the VPC network mode from custom-mode to auto-mode to auto-create internal API routes.
Answer
Enable Private Google Access on the target VPC subnet.
Enabling Private Google Access on the subnet permits Compute Engine VM instances with only internal IP addresses to reach the external IP addresses of Google APIs and services such as Google Cloud Storage.
Step-by-Step Solution
Key Concept
Private Google Access on VPC Subnets
Estimated Time:1m 15s