Easy1 markMultiple Choice

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

You are reviewing the IAM permissions for your project. You notice several users have the 'Editor' role.

Why does Google recommend using Predefined roles instead of Primitive roles (like Owner, Editor, Viewer)?

Answer options:

A.

Primitive roles cost more to use than Predefined roles.

B.

Predefined roles provide granular access control, adhering to the principle of least privilege.

C.

Primitive roles cannot be assigned to Service Accounts.

D.

Predefined roles automatically expire after 30 days.

How to approach this question

Understand the security benefits of granular IAM roles.

Full Answer

B.Predefined roles provide granular access control, adhering to the principle of least privilege.✓ Correct
Predefined roles provide granular access control, adhering to the principle of least privilege.
Primitive roles (Owner, Editor, Viewer) grant broad permissions across almost all GCP services in a project. Google strongly recommends using Predefined roles (e.g., `roles/compute.instanceAdmin`) because they offer granular, service-specific permissions, allowing you to enforce the principle of least privilege.

Common mistakes

Believing primitive roles have technical limitations (like not working with service accounts) rather than security implications.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam