D4: Role Types & Custom Roles
Google Cloud Associate Cloud Engineer exam practice questions · 13 flashcards
Question
What are the three IAM role types?
1 / 13
Tip: Space flips the card, ← / → navigate.
Show all 13 Role Types & Custom Roles practice questions and answers
- What are the three IAM role types?Basic, predefined and custom.
- What are basic roles?Owner, Editor and Viewer: broad, project-wide; avoid in production.
- What are predefined roles?Google-managed, service-specific roles (e.g. roles/storage.objectViewer).
- What are custom roles?User-defined roles with a chosen list of permissions.
- Where can custom roles be created?At organization or project level, not folders.
- How do you create a custom role?gcloud iam roles create ROLE_ID --project=P --permissions=p1,p2 (or --file=role.yaml).
- How do you copy an existing role?gcloud iam roles copy --source=ROLE --destination=NEW --dest-project=P.
- Custom role launch stages?ALPHA, BETA, GA, DEPRECATED, DISABLED.
- Which role manages custom roles?Role Administrator (roles/iam.roleAdmin) or Organization Role Administrator.
- Downside of custom roles?You must maintain them as Google adds or changes permissions.
- When use a custom role?When no predefined role fits least-privilege needs.
- What does the Viewer role allow?Read-only access to most resources.
- Owner vs Editor?Owner also manages IAM and billing for the project.