Topic 1 Question 38
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?
Run gcloud iam roles describe roles/spanner.databaseUser. Add the users to the role.
Run gcloud iam roles describe roles/spanner.databaseUser. Add the users to a new group. Add the group to the role.
Run gcloud iam roles describe roles/spanner.viewer - -project my-project. Add the users to the role.
Run gcloud iam roles describe roles/spanner.viewer - -project my-project. Add the users to a new group. Add the group to the role.
ユーザの投票
コメント(17)
I think it should be B, setup a group first are suggested way from Google.
👍 67yasu2020/03/24B is the correct option
👍 24Agents892020/04/17- 正解だと思う選択肢: B
Answer C is incorrect because the
roles/spanner.viewerrole only allows read-only access to Spanner instances, whereas the question asks for users to be able to view and edit table data.Answer D is also incorrect for the same reason as answer C. The
roles/spanner.viewerrole does not provide the necessary permissions for editing table data.Therefore, answers A and B are the only options that provide the
roles/spanner.databaseUserrole, which includes the necessary permissions to view and edit table data on a Cloud Spanner instance.However, answer B is arguably better since it involves creating a new group and adding the users to that group, which can simplify the management of permissions in the future.
👍 4Buruguduystunstugudunstuy2023/02/18
シャッフルモード