Google Cloud Associate Cloud Engineer — Question 11
You want to verify the IAM users and roles assigned within a GCP project named my-project. What should you do?
Answer options
- A. Run gcloud iam roles list. Review the output section.
- B. Run gcloud iam service-accounts list. Review the output section.
- C. Navigate to the project and then to the IAM section in the GCP Console. Review the members and roles.
- D. Navigate to the project and then to the Roles section in the GCP Console. Review the roles and status.
Correct answer: C
Explanation
The correct answer is C because navigating to the IAM section in the GCP Console allows you to see both the members and their assigned roles directly. Options A and B focus on listing roles and service accounts, which do not provide a complete overview of users with their roles. Option D only shows roles without the associated members, which is not sufficient for verifying IAM users and roles.