QuestionQ98

VerifiedConfiguring access and security

You have taken over maintenance of a Google Cloud project from a colleague. As part of a security review, you need to check who has been granted the Project Owner role. What should you do?

Explanation

To determine which principals currently hold the Project Owner role (or any other IAM role) on a project, you need to inspect the project's IAM policy, which contains the list of role bindings mapping principals to roles. The gcloud command gcloud projects get-iam-policy PROJECT_ID retrieves this policy, allowing you to review all principals assigned the roles/owner role (or any other role) for the project. SSH key management (choice A) relates to compute instance access, not IAM role assignments. Identity-Aware Proxy (choice B) controls access to specific applications/resources via context-aware policies, not project-level role bindings. Enabling Audit Logs (choice C) records administrative and data access activity over time but does not provide a direct, current listing of who holds which IAM role.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!