Practice Test 1 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
What is the correct command to create an IAM user using Google Cloud CLI?
A. gcloud iam create –name “bob@xyz.com” –role “roles/editor”
B. gcloud iam create-user –name “bob@xyx.com” –role “roles/editor”
C. gcloud projects add-iam-policy-binding whizlabs-prj –member “user:bob@xyz.com” –role “roles/editor”
D. gcloud projects add-iam-user-binding whizlabs-prj –member “user:bob@xyz.com” –role “roles/editor”
Explanation:
Correct Answer – C
The gcloud command to create an IAM user is gcloud projects add-iam-policy-binding whizlabs-prj –member “user:bob@xyz.com” –role “roles/editor”. Hence, C is the correct answer.
Options A, B, and D are incorrect since these are not the valid gcloud commands to create an IAM user.
Reference:
https://cloud.google.com/sdk/gcloud/reference/projects/add-iam-policy-binding
Comments are closed, but trackbacks and pingbacks are open.