Practice Test 2 | Google Cloud Certified Professional Cloud Architect | Dumps | Mock Test
You work in a small company where everyone should be able to view all resources of a specific project. You want to grant them access following Google’s recommended practices. What should you do?
A. Create a script that uses “gcloud projects add-iam-policy-binding” for all users’ email addresses and the Project Viewer role.
B. A. Create a script that uses “gcloud iam roles create” for all users’ email addresses and the Project Viewer role.
C. Create a new Google Group and add all users to the group. Use “gcloud projects add-iam-policy-binding” with the Project Viewer role and Group email address.
D. Create a new Google Group and add all members to the group. Use “gcloud iam roles create” with the Project Viewer role and Group email address.
Correct answer C
Feedback
A is not correct because groups are recommended over individual assignments.
B is not correct because this command is to create roles, not to assign them.
C is correct because Google recommends to use groups where possible.
D is not correct because this command is to create roles, not to assign them.
Reference
gcloud iam https://cloud.google.com/sdk/gcloud/reference/iam/
Comments are closed, but trackbacks and pingbacks are open.