Google Professional Cloud Security Engineer exam dumps

Google Professional Cloud Security Engineer practice question 28 of 501

Professional Cloud Security Engineer. Expert level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud Security Engineer Question 28

Select 3Google Cloud Platform

Your organization uses Google Cloud Identity and Access Management (IAM) to manage permissions. You need to programmatically add a new user to a group and ensure that the user is granted the appropriate IAM role to access a specific resource. Which steps should you take to accomplish this using Google Cloud APIs?

  1. A

    Use the Cloud Identity Groups API to add the user to the group.

  2. B

    Use the IAM API to grant the user a role directly on the resource.

  3. C

    Use the Groups Settings API to configure the group’s access level for the resource.

  4. D

    Use the IAM API to grant the group a role on the resource.

  5. E

    Use the Admin SDK Directory API to create the user account.

Show answer and explanation

Correct answers: A, D, E

Explanation

To manage user accounts and permissions programmatically in Google Cloud, you should first create the user account using the Admin SDK Directory API if it doesn’t exist. Then, use the Cloud Identity Groups API to add the user to the appropriate group. Finally, assign the necessary IAM role to the group on the resource using the IAM API. This approach follows best practices for scalability and ease of management.

  • A. Correct.

    Correct: The Cloud Identity Groups API allows you to programmatically manage group memberships, including adding users to groups.

  • B. Incorrect.

    Incorrect: Granting roles directly to users is not recommended in this case since using groups is a best practice for managing permissions at scale.

  • C. Incorrect.

    Incorrect: The Groups Settings API is used for configuring G Suite group settings (e.g., email permissions) but is not relevant for IAM permissions.

  • D. Correct.

    Correct: Assigning an IAM role to a group ensures all group members inherit the permissions, which is a scalable and manageable approach.

  • E. Correct.

    Correct: The Admin SDK Directory API is used to create and manage user accounts programmatically, which is necessary if the user does not already exist in your domain.

Timed practice exam

Take a Google Professional Cloud Security Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam