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
What is the maximum number of custom roles an organization or a project can contain?
- 50
- 100
- 300
- 1,000
Show answer
Answer: C. 300
Each organization and each project can have up to 300 custom roles.
Which statements about custom roles are correct?
- A custom role can be granted only within the org or project that owns it
- Project-level roles cannot include organization- or folder-only permissions
- A DISABLED role can remain in policies but has no effect
- Custom roles can be defined at the folder level
- 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.
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.
