
Answer-first summary for fast verification
Answer: Use the command gcloud projects get-iam-policy to view the current role assignments.
The correct answer is D. To review who has been granted the Project Owner role in a Google Cloud Platform project, you can use the command gcloud projects get-iam-policy. This command outputs the current role assignments for the project, including those with the Project Owner role. Other options do not directly provide information about the Project Owner role assignments. For instance, option A focuses on SSH keys, option B pertains to Identity-Aware Proxy, and option C involves enabling Audit Logs which might not immediately provide a list of role assignments.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have recently taken over the maintenance of a Google Cloud Platform (GCP) project from a colleague. To ensure the project's security, you need to perform a review of the users who have been assigned the Project Owner role. Which steps should you follow to accomplish this task?
A
In the console, validate which SSH keys have been stored as project-wide keys.
B
Navigate to Identity-Aware Proxy and check the permissions for these resources.
C
Enable Audit Logs on the IAM & admin page for all resources, and validate the results.
D
Use the command gcloud projects get-iam-policy to view the current role assignments.
No comments yet.