GCP Associate Cloud Engineer Practice Question 23: Private Google Access Subnet

Google Cloud Associate Cloud Engineer · Test 3 · question 3 of 10

VPC Networkingmedium

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?

Select one answer
Show answer and explanation

Answer:

  • D. Enable Private Google Access on the subnet so that the VMs can reach Google APIs using internal addresses

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

Practice Test 3 ›

Study guides for Google Cloud Associate Cloud Engineer