QuestionQ53

VerifiedDeploy scalable and highly available databases in Google Cloud

You are setting up a new application with access to an existing Cloud Spanner database. The application reads the database to collect dashboard statistics. You want to follow Google-recommended practices when granting Identity and Access Management (IAM) permissions. What should you do?

Explanation

A separate service account isolates this application's identity, and the predefined Cloud Spanner Database Reader role follows least privilege by allowing database reads and SQL queries without write or administrative capabilities. The role also includes the supporting permissions required for read-only database access; granting only spanner.databases.select does not provide the complete permission set needed by a typical Spanner client.

Learn more

Community Discussion

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