
Answer-first summary for fast verification
Answer: 1. Enable Cloud SQL and Cloud Run in the same project. 2. Configure a private IP address for Cloud SQL. Enable private services access. 3. Create a Serverless VPC Access connector. 4. Configure Cloud Run to use the connector to connect to Cloud SQL.
The correct answer is A. Using Cloud SQL (managed service) with a private IP and Serverless VPC Access connector aligns with Google's best practices for keeping traffic private. Cloud Run connects to Cloud SQL via the VPC connector without exposing traffic to the public internet. Options B and D use non-managed PostgreSQL on Compute Engine, which contradicts the requirement for managed services. Options C and D involve cross-project setups with VPN, adding unnecessary complexity compared to a single-project approach in A.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you ensure all traffic remains private on Google Cloud when developing an application with PostgreSQL and Cloud Run, while using managed services and adhering to Google-recommended best practices?
A
B
C
D
No comments yet.