nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #378

PROFESSIONAL-CLOUD-DEVELOPER Question #378: Real Exam Question with Answer & Explanation

The correct answer is D: Create a subnet on your VPC. Create a Serverless VPC Access connector on your project using. To connect a Cloud Run service to a Cloud SQL instance in a different project without a public IP, you can use Serverless VPC Access to create a private, internal network path. By creating a subnet and configuring a Serverless VPC Access connector in your project, you allow Cloud

Designing and building cloud-native applications

Question

You are responsible for developing a new ecommerce application that is running on Cloud Run. You need to connect your application to a Cloud SQL database that is in a separate project. This project is on an isolated network dedicated to multiple databases without a public IP. You need to connect your application to this database. What should you do?

Options

  • ACreate a Private Service Connect endpoint on your network. Create a Serverless VPC Access
  • BConfigure VPC Network Peering between both networks. In Cloud Run, create a Cloud SQL
  • CConfigure private services access on your project. In Cloud Run, create a Cloud SQL connection.
  • DCreate a subnet on your VPC. Create a Serverless VPC Access connector on your project using

Explanation

To connect a Cloud Run service to a Cloud SQL instance in a different project without a public IP, you can use Serverless VPC Access to create a private, internal network path. By creating a subnet and configuring a Serverless VPC Access connector in your project, you allow Cloud Run to access resources on the private network where the Cloud SQL instance resides. Using Cloud SQL Language Connectors enables a secure, managed connection to the Cloud SQL database without needing public IP access. Options like VPC Network Peering could connect the networks but would not provide the necessary connectivity for Cloud Run to access the database directly.

Topics

#Cloud Run#Cloud SQL#Serverless VPC Access#Private Networking

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions