Study guide

14.2 IAM Role Types: Basic, Predefined & Custom Roles

Google Cloud Associate Cloud Engineer ACE

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Introduction & Exam Overview

1.1 About the GCP Associate Cloud Engineer Exam 1.2 How to Use This Study Guide & Build a Study Plan

2 Chapter 2: Resource Hierarchy, IAM Basics & Cloud Identity

2.1 The GCP Resource Hierarchy: Organizations, Folders & Projects 2.2 Organization Policies & Granting IAM Roles 2.3 Cloud Identity: Managing Users and Groups

3 Chapter 3: APIs, Quotas & Billing Configuration

3.1 Enabling APIs and Provisioning Cloud Operations Suite 3.2 Assessing and Requesting Quota Increases 3.3 Billing Accounts, Project Linking & Billing Exports 3.4 Billing Budgets and Alerts

4 Chapter 4: Planning Compute & Storage Resources

4.1 Choosing the Right Compute Option: GCE vs. GKE vs. Cloud Run vs. Cloud Functions 4.2 Spot VMs, Custom Machine Types & Cost-Optimized Compute Planning 4.3 Choosing a Data Storage Product: Cloud SQL, BigQuery, Firestore, Spanner & Bigtable 4.4 Cloud Storage Classes & Persistent Disk Types

5 Chapter 5: Planning Network Resources

5.1 Load Balancing Options and Use Cases 5.2 Regional Resource Placement & High Availability Planning 5.3 Network Service Tiers: Premium vs. Standard

6 Chapter 6: Deploying Compute Engine Workloads

6.1 Launching Compute Engine Instances: Disks, SSH Keys & Availability Policies 6.2 Managed Instance Groups, Instance Templates & Autoscaling 6.3 OS Login and VM Manager for Fleet Configuration

7 Chapter 7: Deploying Google Kubernetes Engine Workloads

7.1 Installing and Configuring kubectl 7.2 Deploying GKE Clusters: Autopilot, Regional, Private & GKE Enterprise 7.3 Deploying Containerized Applications to GKE

8 Chapter 8: Deploying Serverless & Event-Driven Applications

8.1 Deploying Applications to Cloud Run and Cloud Functions 8.2 Event-Driven Architectures: Pub/Sub, Cloud Storage Triggers & Eventarc

9 Chapter 9: Deploying Data Solutions

9.1 Deploying Data Products: Cloud SQL, Firestore, Spanner, BigQuery & AlloyDB 9.2 Deploying Pub/Sub, Dataflow & Loading Data into Google Cloud

10 Chapter 10: Deploying Networking Resources & Infrastructure as Code

10.1 Creating VPCs, Subnets & Shared VPC 10.2 Firewall Rules, Cloud VPN & VPC Network Peering 10.3 Infrastructure as Code: Terraform, Config Connector, Cloud Foundation Toolkit & Helm

11 Chapter 11: Managing Compute Engine & GKE in Production

11.1 Connecting to and Managing Running Compute Engine Instances 11.2 Working with Snapshots and Custom Images 11.3 Managing GKE Clusters: Node Pools, Workloads & Artifact Registry Access 11.4 Horizontal and Vertical Pod Autoscaling in GKE

12 Chapter 12: Managing Cloud Run, Storage & Database Operations

12.1 Managing Cloud Run Revisions, Traffic Splitting & Scaling 12.2 Managing and Securing Cloud Storage Objects & Lifecycle Policies 12.3 Querying, Estimating Costs, Backup & Job Monitoring for Databases (Cloud SQL, BigQuery, Spanner, Dataflow)

13 Chapter 13: Networking Operations, Monitoring & Logging

13.1 Networking Operations: Subnets, Static IPs, Cloud DNS & Cloud NAT 13.2 Cloud Monitoring: Alerts, Custom Metrics & Dashboards 13.3 Cloud Logging: Buckets, Log Analytics, Routers & Filtering 13.4 Diagnostics, Ops Agent, Managed Service for Prometheus & Audit Logs

14 Chapter 14: IAM Policies & Role Types

14.1 IAM Policies: Structure, Bindings & Policy Hierarchy 14.2 IAM Role Types: Basic, Predefined & Custom Roles

15 Chapter 15: Service Accounts & Security Configuration

15.1 Creating Service Accounts & Assigning Least-Privilege Permissions 15.2 Assigning Service Accounts to Resources & Managing SA IAM Policies 15.3 Service Account Impersonation & Short-Lived Credentials

16 Chapter 16: Exam Readiness — Scenarios & Test-Day Strategy

16.1 Common ACE Exam Scenarios & Decision Frameworks 16.2 Test-Day Logistics, Time Management & Final Review Checklist

14.2 IAM Role Types: Basic, Predefined & Custom Roles

Key Takeaways Explain This Topic AI

Basic roles (Owner, Editor, Viewer, Browser) are broad, project-wide grants that predate IAM and should be avoided once least privilege is a requirement

Predefined roles follow the roles/SERVICE.IDENTIFIER naming convention, are curated and auto-updated by Google, and should be the default choice before building a custom role

Custom roles are created at the organization or project level (never the folder level), are capped at 300 per organization and 300 per project, and can be built from scratch or by copying an existing role as a base

Custom roles support four launch stages — ALPHA, BETA, GA, and DISABLED — and setting DISABLED is a soft delete that leaves bindings intact but revokes their access

Not every Google Cloud permission is eligible for a custom role; only permissions marked 'supported for custom roles' can be added to one

Last updated: July 2026

Why Role Types Matter on the ACE Exam

The official exam guide explicitly lists "Managing role types and defining custom IAM roles" as a testable skill under Domain 5. The core tension the exam probes is simple to state and easy to get wrong under time pressure: broader roles are faster to grant but violate least privilege, while narrower roles take more setup but shrink the damage if a credential is ever leaked or misused. Expect the exam to describe a business requirement — "this contractor needs to restart Compute Engine instances but must never delete them or touch billing" — and ask you to pick the correctly scoped role type, not just a role name.

The Three Role Types at a Glance

Role type Who defines it Scope of the grant Typical exam signal words

Basic roles Google (legacy, predates IAM) Project-wide, spans every service simultaneously "broad," "quick sandbox," "not recommended for production"

Predefined roles Google, curated per service One product or service, often split further (Admin vs. Viewer vs. Editor) "least privilege out of the box," "Google maintains it automatically"

Custom roles You, at the organization or project level Exactly the permission list you choose "tailor-made," "job function doesn't match any predefined role"

Basic Roles

Basic roles — still frequently called by their legacy name, primitive roles , in older documentation and in exam-style distractors — are the oldest and broadest access grants in Google Cloud:

Owner ( roles/owner ) — full control of every resource in the project, including managing IAM allow policies and billing configuration. Owner is the only basic role that can add or remove other Owners.

Editor ( roles/editor ) — can create, modify, and delete most resources project-wide, but cannot manage IAM policies or billing.

Viewer ( roles/viewer ) — read-only access to inspect resources and configuration; cannot change anything.

Browser ( roles/browser ) — the most limited basic role: lets a principal see which projects and folders exist in the resource hierarchy without exposing the resources inside them.

Because a basic role applies broadly across every Google Cloud service in the project at once, Google explicitly recommends avoiding basic roles in production and reserving them for early experimentation or single-owner sandbox projects. On the ACE exam, whenever a scenario mentions least privilege, an internal security review, or a compliance requirement, a basic role is almost always the wrong answer choice.

Predefined Roles

Predefined roles are Google-curated, service-scoped bundles that Google itself updates as new permissions and features ship — you never maintain them yourself. They follow a consistent naming convention, roles/SERVICE.IDENTIFIER , for example:

  • roles/compute.admin — full management of Compute Engine resources
  • roles/compute.viewer — read-only Compute Engine access
  • roles/storage.objectViewer — read-only access to Cloud Storage objects, but not bucket-level configuration
  • roles/iam.securityAdmin — manage IAM allow policies without needing rights to the resources they protect
  • roles/resourcemanager.projectIamAdmin — administer IAM policy at the project level

roles/iam.serviceAccountUser — impersonate, or "act as," a service account (see Chapter 15 for the security implications of this specific role)

Because Google maintains hundreds of predefined roles spanning every Google Cloud product, most real-world least-privilege designs can be assembled entirely from predefined roles without ever writing a custom one — this is Google's recommended starting point before reaching for a custom role.

Custom Roles

When no predefined role fits — say, a support engineer who should restart Compute Engine instances and read logs, but must never delete a disk or touch IAM — you build a custom role : a hand-picked bag of individual permissions, created at either the organization level or the project level. A custom role can only ever be granted within the scope where it was created; an organization-level custom role cannot be bound inside an unrelated organization, and a project-level custom role cannot be granted outside that one project.

Facts worth memorizing for the exam:

Not every permission is eligible for a custom role — only permissions Google marks "supported for custom roles" can be added; some sensitive permissions remain restricted to predefined or basic roles only.

You can build a custom role from scratch , or copy an existing role as a base role ( gcloud iam roles copy ) and then add or remove individual permissions from that starting point, which is far faster than hand-picking every permission.

Every custom role carries a launch stage : ALPHA , BETA , GA (General Availability), or DISABLED . Setting a role to DISABLED is a soft delete — existing bindings that reference the role remain in place but stop granting any access, which lets you test the blast radius of retiring a role before deleting it outright.

Quota: an organization can define up to 300 custom roles , and each individual project can separately define up to 300 custom roles — these are two independent quotas, not a shared pool.

gcloud iam roles list shows every predefined and custom role together with its testable permissions , the standard way to audit exactly what a role grants before you assign it to anyone.

Choosing the Right Role Type: A Decision Framework

Is this a throwaway sandbox with no real security requirement, where the built-in Owner/Editor/Viewer/Browser access is acceptable? → A basic role, though this is rarely the correct exam answer once least privilege is mentioned.

Does a Google-curated predefined role already match the job function — "read Compute Engine configuration," "manage Cloud Storage objects," "administer BigQuery datasets"? → Use the predefined role; this is the default correct answer on most ACE least-privilege scenarios.

Does no single predefined role match — because the requirement spans an unusual permission mix, or must exclude one permission a predefined role would otherwise include? → Build a custom role , ideally starting from the closest predefined role as a base to save effort.

Exam Scenario

A hospital's Google Cloud project has a "biller" job function that must be able to view Compute Engine instance details and create Cloud Monitoring alerting policies, but must never start, stop, or delete any instance. No single predefined role matches this exact combination, and none of the basic roles come close to least privilege. The correct approach is a custom role built at the project level, combining read-only Compute Engine permissions (such as compute.instances.get , compute.instances.list , compute.zones.list ) with the Cloud Monitoring alerting-policy permissions — created either from scratch or by copying roles/monitoring.alertPolicyEditor as a base role and then adding the narrow Compute Engine read permissions on top.

Key Takeaways Recap

Basic roles (Owner/Editor/Viewer/Browser) are broad and project-wide; avoid them once least privilege matters.

Predefined roles ( roles/SERVICE.IDENTIFIER ) are Google-maintained and should be your default choice.

Custom roles are scoped to the org or project that created them, support ALPHA/BETA/GA/DISABLED launch stages, and are capped at 300 per organization and 300 per project.