Google Professional Cloud Network Engineer Question 152
Single answerGoogle Cloud PlatformYou have a Virtual Private Cloud (VPC) network in Google Cloud that needs to access a Google-managed service, such as Cloud SQL, via Private IP. You have set up VPC Network Peering between your VPC and the Service Networking VPC. However, your application is unable to connect to the Google-managed service using the private IP address. What could be the cause of this issue?
- A
The Private Service Connection has not been created.
- B
The required IAM permissions to access the Google-managed service are missing.
- C
The DNS record for the private IP address of the Google-managed service is not configured.
- D
The firewall rules in your VPC are blocking egress traffic to the Service Networking VPC.
Show answer and explanation
Correct answer: A
Explanation
To access a Google-managed service through VPC Network Peering using a private IP, a Private Service Connection must be established. This connection enables communication between your VPC and the Service Networking VPC, allowing your application to use the private IP address. Without this connection, your application will be unable to reach the Google-managed service, even if other configurations like IAM permissions and DNS are correct.
- A. Correct.
Correct. A Private Service Connection must be created to establish a route between your VPC and the Google-managed service using a private IP. Without it, the service cannot be accessed.
- B. Incorrect.
Incorrect. IAM permissions are required to access Google-managed services, but if the private IP connection is not set up correctly, the service will not be reachable regardless of permissions.
- C. Incorrect.
Incorrect. Google Cloud automatically handles DNS resolution for private IPs of Google-managed services when properly configured.
- D. Incorrect.
Incorrect. Firewall rules could block traffic, but this would result in a different type of error. The issue described here is specifically about the private IP connection not being established.