GCP Associate Cloud Engineer Practice Question 23: Private Google Access Subnet
Google Cloud Associate Cloud Engineer · Test 3 · question 3 of 10
A subnet contains VMs without external IP addresses. A security policy forbids both external IPs and NAT gateways for this subnet. A batch job on these VMs must read and write objects in Cloud Storage, but the calls currently time out.
What should you do?
Show answer and explanation
Answer:
Private Google Access lets VMs that have only internal IP addresses reach the external IP addresses of Google APIs and services, such as Cloud Storage, without leaving Google's network. It is enabled per subnet and satisfies both constraints, with no external IP and no NAT.
Option A would probably work, but the policy explicitly prohibits NAT gateways. Option B does not help, because the implied egress rule already allows outbound traffic, and the problem is that there is no route to a public address for a VM without an external IP. Option C changes authorization, but timeouts are a connectivity problem, not a permission error (which would return a 403).
Reference: Private Google Access