You need to grant access for three users so that they can view and edit table data on a Cloud Spanner instance. What should you do?
A. Run gcloud iam roles describe roles/spanner.databaseUser. Add the users to the role.
B. Run gcloud iam roles describe roles/spanner.databaseUser. Add the users to a new group. Add the group to the role.
C. Run gcloud iam roles describe roles/spanner.viewer – -project my-project. Add the users to the role.
D. Run gcloud iam roles describe roles/spanner.viewer – -project my-project. Add the users to a new group. Add the group to the role.
B
Google best practise always susggest assign role to the group instead of user.
https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#groups-and-service-account