QuestionQ51

VerifiedDeploy scalable and highly available databases in Google Cloud

You are deploying a new Cloud SQL instance on Google Cloud with the Cloud SQL Auth Proxy. You have identified application-code snippets that must access the new Cloud SQL instance. The snippets are located on and run from an application server on a Compute Engine machine. You want to follow Google-recommended practices to configure Identity and Access Management (IAM) as quickly and securely as possible. What should you do?

Explanation

A service account attached to the Compute Engine application server provides the workload identity used by the Cloud SQL Auth Proxy. Assigning it the Cloud SQL Client role grants the required cloudsql.instances.connect permission without using shared human credentials or separate user accounts for each code snippet.

Learn more

Community Discussion

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