
Answer-first summary for fast verification
Answer: Run gcloud iam roles describe roles/spanner.databaseUser. Add the users to a new group. Add the group to the role.
The correct answer is B. According to Google Cloud Platform best practices, it is recommended to create a group and then assign roles to that group instead of assigning roles to individual users directly. This helps in better managing and scaling user permissions. The roles/spanner.databaseUser role includes the necessary permissions to view and edit table data on a Cloud Spanner instance.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To enable three users to view and edit table data on a Cloud Spanner instance, what steps should you take to appropriately grant the necessary access permissions?
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.
No comments yet.