Google Cloud Professional Cloud Developer — Question 96

Your team is developing a new application using a PostgreSQL database and Cloud Run. You are responsible for ensuring that all traffic is kept private on Google
Cloud. You want to use managed services and follow Google-recommended best practices. What should you do?

Answer options

Correct answer: A

Explanation

Option A is correct because it ensures both Cloud SQL and Cloud Run are in the same project, allowing for easier management of private IP addresses and secure communication via a Serverless VPC Access connector. The other options either involve installing PostgreSQL on a Compute Engine VM, which is not a managed service, or require complex configurations like VPNs between different projects, which go against the recommendation to keep services within the same project for simplicity and security.