Google Professional Cloud Security Engineer Question 29
Select 3Google Cloud PlatformYour organization uses Google Cloud to manage infrastructure. You are tasked with programmatically managing user accounts and groups for a project. The security policy requires that you regularly audit group memberships and ensure that only specific roles can administer them. Which of the following steps should you take to meet this requirement?
- A
Use the Cloud Identity Groups API to list group memberships.
- B
Grant the
roles/iam.securityAdminrole to all users in the project to manage group permissions. - C
Write a script using the Google Cloud SDK to periodically fetch and log group members for audit purposes.
- D
Use the
gcloud iam groupscommand to delete groups automatically when they are no longer needed. - E
Restrict permissions for managing groups by using IAM roles like
roles/cloudidentity.groupAdmin.
Show answer and explanation
Correct answers: A, C, E
Explanation
To securely and programmatically manage user accounts and groups, the Cloud Identity Groups API should be used to list group memberships, and a script can automate periodic audits. Additionally, restricting administrative permissions to specific IAM roles like roles/cloudidentity.groupAdmin ensures adherence to the principle of least privilege, which is a key security best practice.
- A. Correct.
Correct: The Cloud Identity Groups API allows you to programmatically list and manage group memberships, making it an essential tool for auditing group membership.
- B. Incorrect.
Incorrect: Granting the
roles/iam.securityAdminrole to all users violates the principle of least privilege and is not recommended for securing group management. - C. Correct.
Correct: Automating the audit process with a script ensures that group memberships are regularly reviewed and logged for compliance purposes.
- D. Incorrect.
Incorrect: The
gcloud iam groupscommand does not exist. Groups are managed using Cloud Identity APIs or the Admin Console. - E. Correct.
Correct: Restricting permissions using IAM roles like
roles/cloudidentity.groupAdminensures that only authorized users can manage groups, satisfying the security policy.