Associate Cloud Workspace Administrator · Free Practice Question Medium

Question 26

Your organization wants to programmatically manage Google Groups and enforce a policy where only managers can create new Groups. Which Google Workspace API should you utilize, and how would you enforce this policy?

  • A

    Utilize the Google Groups API and set a condition in the code to check the 'role' attribute of the user before creating a Group.

  • B

    Utilize the Admin SDK Directory API and set the 'whoCanCreateGroup' attribute to "Managers".

  • C

    Utilize the Google Workspace Audit API and filter logs to monitor non-manager Group creation, then manually delete them.

  • D

    Utilize the Google Drive API and restrict Group creation to folders owned by managers.

Reveal correct answer

Correct answer: A

A. Utilizing the Google Groups API allows you to programmatically manage Google Groups. By setting a condition in the code to check the 'role' attribute of the user before creating a Group, you can enforce the policy where only managers can create new Groups. This approach ensures that Group creation is restricted to users with the specified role, thereby enforcing the policy effectively.

B. While the Admin SDK Directory API can be used to manage Google Groups, setting the 'whoCanCreateGroup' attribute to "Managers" does not provide a granular control over Group creation based on user roles. This approach may restrict Group creation to managers, but it does not allow for programmatically enforcing the policy where only managers can create new Groups.

C. The Google Workspace Audit API is used for monitoring and analyzing audit logs, not for programmatically managing Google Groups. Filtering logs to monitor non-manager Group creation and manually deleting them is a reactive approach that does not automate the enforcement of the policy where only managers can create new Groups. Utilizing this API does not provide the necessary functionality to programmatically manage Google Groups based on user roles.

D. The Google Drive API is not the appropriate API for managing Google Groups and enforcing the policy where only managers can create new Groups. Restricting Group creation to folders owned by managers does not directly address the requirement to programmatically manage Google Groups based on user roles.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need