PROFESSIONAL-CLOUD-ARCHITECT · Question #289
A Cloud Run service running your serverless application is unable to connect to an AlloyDB database created with default configurations. You need to troubleshoot and resolve the issue as quickly as…
The correct answer is B. Enable Direct VPC egress for the Cloud Run service, and send traffic directly to a VPC. Cloud Run services use outbound egress to connect to resources. Since AlloyDB is accessible only through private IP (no public endpoint), the Cloud Run service must use Direct VPC egress (via a Serverless VPC Connector) to connect to the VPC network hosting AlloyDB. This…
Question
Options
- AVerify that the Cloud Run service and AlloyDB instance are in the same region.
- BEnable Direct VPC egress for the Cloud Run service, and send traffic directly to a VPC.
- CDisable the default public IP address of the AlloyDB instance, and use the private IP address in
- DCreate a Cloud SQL instance, and migrate the AlloyDB database to PostgreSQL on Cloud SQL.
How the community answered
(21 responses)- A10% (2)
- B76% (16)
- C14% (3)
Explanation
Cloud Run services use outbound egress to connect to resources. Since AlloyDB is accessible only through private IP (no public endpoint), the Cloud Run service must use Direct VPC egress (via a Serverless VPC Connector) to connect to the VPC network hosting AlloyDB. This configuration enables secure, private communication between Cloud Run and AlloyDB.
Topics
Community Discussion
No community discussion yet for this question.