Accessing Cloud SQL from VPC Instances without Public IP Addresses | PCNE Exam Question Answer

Cloud SQL Access for VPC Instances | PCNE Exam

Question

You are creating a new application and require access to Cloud SQL from VPC instances without public IP addresses.

Which two actions should you take? (Choose two.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

AC.

https://cloud.google.com/sql/docs/mysql/private-ip

The requirement is to access Cloud SQL from VPC instances without public IP addresses. This can be achieved by taking the following two actions:

  1. Create a Private Connection to the Service Producer To access Cloud SQL from VPC instances without public IP addresses, you need to establish a private connection to the service producer. You can create a private connection using VPC Network Peering or using Cloud VPN tunnels. Once the private connection is established, the VPC instances can access the Cloud SQL instances using private IP addresses.

  2. Enable Private Google Access To allow VPC instances without public IP addresses to access Google APIs and services, you need to enable Private Google Access. This feature allows VPC instances to access Google APIs and services using private IP addresses, without going through the public internet. To enable Private Google Access, you need to go to the VPC network settings and enable the "Private Google Access" option. Once enabled, VPC instances can access Cloud SQL using private IP addresses.

Therefore, the correct actions to take are: C. Create a private connection to a service producer. E. Enable Private Google Access.