
Answer-first summary for fast verification
Answer: Create a Shared VPC that both the application VMs and Cloud SQL instances will use.
The correct approach for configuring networks when migrating an on-premises application to Compute Engine and Cloud SQL, with application VMs and Cloud SQL instances in separate projects, is to use a Shared VPC. This allows both the application VMs and Cloud SQL instances to use the same network, facilitating secure and efficient communication between them without the need for additional peering or VPN configurations. Option A suggests using VPC Network Peering, which is a valid method but not as streamlined as a Shared VPC for this scenario. Option C suggests using Cloud VPN, which is more complex and less efficient for internal communication between services within Google Cloud. Option D is not recommended because using the default networks can lead to IP address conflicts and lacks the flexibility and security features provided by custom VPC networks.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How should you set up the networking when migrating an on-premises application to Compute Engine and Cloud SQL, with the application VMs in one project and the Cloud SQL instances in a separate project?
A
Create a new VPC network in each project, and use VPC Network Peering to connect the two together.
B
Create a Shared VPC that both the application VMs and Cloud SQL instances will use.
C
Use the default networks, and leverage Cloud VPN to connect the two together.
D
Place both the application VMs and the Cloud SQL instances in the default network of each project.