QuestionQ231

Ensuring solution and operations excellence

A Cloud Run service that runs your serverless application cannot connect to an AlloyDB database created with the default configuration. You need to troubleshoot and fix the problem as quickly as possible. What should you do?

  • A Verify that the Cloud Run service and AlloyDB instance are in the same region.
  • B Enable Direct VPC egress for the Cloud Run service, and send traffic directly to a VPC.
  • C Disable the default public IP address of the AlloyDB instance, and use the private IP address in the connection string.
  • D Create a Cloud SQL instance, and migrate the AlloyDB database to PostgreSQL on Cloud SQL.
Explanation

AlloyDB’s default console networking configuration uses private IP connectivity. Configuring Direct VPC egress gives the Cloud Run service a network path to the VPC so it can reach AlloyDB’s private address; private-address traffic can be routed through that VPC. AlloyDB cluster settings, Direct VPC with a VPC network

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!