Bitzu

Associate Cloud Engineer ยท IAM policies and roles

Custom IAM roles

Creating a custom role from permissions or a copy, launch stages, organization vs project scope, limits and maintenance cost.

Key points

  • You create one in an organization or a project (never a folder) from a chosen set of supported permissions, with a launch stage such as ALPHA, BETA, GA or DISABLED.
  • It can be granted only inside the org or project that owns it.
  • Each org or project holds up to 300, and you must maintain them as permissions change.

Source: https://docs.cloud.google.com/iam/docs/understanding-custom-roles

Practice questions

Single choice

What is the maximum number of custom roles an organization or a project can contain?

  1. 50
  2. 100
  3. 300
  4. 1,000
Show answer

Answer: C. 300

Each organization and each project can have up to 300 custom roles.

Select all that apply

Which statements about custom roles are correct?

  1. A custom role can be granted only within the org or project that owns it
  2. Project-level roles cannot include organization- or folder-only permissions
  3. A DISABLED role can remain in policies but has no effect
  4. Custom roles can be defined at the folder level
  5. A deleted role's ID can be reused immediately
Show answer

Answer: A. A custom role can be granted only within the org or project that owns it, B. Project-level roles cannot include organization- or folder-only permissions, C. A DISABLED role can remain in policies but has no effect

A custom role is granted only where it was created, project-level roles cannot hold organization- or folder-only permissions, and a DISABLED role stays in policies without effect. Folders cannot define roles, and a deleted role's ID is blocked for 44 days.

True or false

A custom role created in project A can be granted in project B of the same organization.

Show answer

Answer: False

False. A project-level custom role can be granted only inside the project that owns it; to share it, create it at the organization level.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module