What should you do?

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.

Answer: B

Explanation:

https://cloud.google.com/spanner/docs/iam#spanner.databaseUser

Using the gcloud tool, execute the gcloud iam roles describe roles/spanner.databaseUser command on Cloud Shell. Attach the users to a newly created Google group and add the group to the role.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments