Easy1 markMultiple Choice

GCP ACE · Question 41 · Domain 5.1: Managing Identity and Access Management (IAM)

When configuring Identity and Access Management (IAM) in Google Cloud, what is the recommended best practice regarding the use of Primitive roles (Owner, Editor, Viewer) versus Predefined roles?

Answer options:

A.

Use predefined roles whenever possible to enforce the principle of least privilege.

B.

Use primitive roles for simplicity, as predefined roles are too complex to manage.

C.

Always create custom roles instead of using predefined roles.

D.

Assign primitive roles directly to users, and predefined roles to Google Groups.

How to approach this question

Recall the fundamental security principle of IAM: Least Privilege.

Full Answer

A.Use predefined roles whenever possible to enforce the principle of least privilege.✓ Correct
Use predefined roles whenever possible to enforce the principle of least privilege.
Google Cloud strongly recommends using Predefined roles (e.g., `roles/compute.instanceAdmin`) over Primitive roles (Owner, Editor, Viewer). Primitive roles grant broad access across all services in a project, violating the principle of least privilege. Predefined roles provide granular access specific to individual services.

Common mistakes

Choosing primitive roles because they are 'easier' to assign, ignoring the security implications.

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam