GCP Cloud Architecture (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What are the types of IAM Roles in GCP (Primitive, Predefined, Custom)?
junior LevelgcpBasic
In Simple Words:
- Primitive (Basic) Roles (Legacy):
Viewer,Editor, andOwner. Too broad and dangerous for production (grant access to almost all services in a project). - Predefined Roles (Best Practice): Granular, service-specific roles created and maintained by Google (e.g.
roles/storage.objectViewer,roles/spanner.databaseUser). - Custom Roles: Tailored roles created by defining exact permission sets (e.g.
resourcemanager.projects.get,compute.instances.start) to satisfy strict Least Privilege requirements.