QuestionQ31

VerifiedConfiguring access and security

You need to grant access for three users so that they can view and edit table data on a Spanner instance. What should you do?

Explanation

To grant three users view and edit access to Spanner, create a group, add the users to that group, and assign the group the roles/spanner.databaseUser role. This follows Google Cloud best practices for access management: using groups simplifies maintenance and scaling of access control. The spanner.databaseUser role provides both read and write permissions, while spanner.viewer only lets users view instances and databases and cannot read or modify table data.

Learn more

Community Discussion

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