Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is a basic role in Google Cloud Platform (GCP)?
A basic role is a broad set of permissions that apply across all GCP services. Examples include Owner, Editor, and Viewer. They are simple but give wide access.
Click to reveal answer
beginner
How do predefined roles differ from basic roles in GCP?
Predefined roles are more specific than basic roles. They grant permissions tailored to particular services or tasks, helping follow the principle of least privilege.
Click to reveal answer
intermediate
What is a custom role in GCP and why use it?
A custom role is a user-created role with a specific set of permissions chosen to fit unique needs. It helps give only the exact permissions needed, improving security.
Click to reveal answer
beginner
Name the three basic roles in GCP and their main permission levels.
Owner: full control including billing and permissions management. Editor: can modify resources but not manage permissions. Viewer: read-only access to resources.
Click to reveal answer
intermediate
Why is it recommended to avoid using basic roles when possible?
Because basic roles grant broad permissions, they can expose resources to unnecessary risk. Using predefined or custom roles limits access to only what is needed.
Click to reveal answer
Which GCP role type provides the broadest access across all services?
ACustom roles
BPredefined roles
CBasic roles
DNo roles
✗ Incorrect
Basic roles like Owner, Editor, and Viewer apply broadly across all services.
What is the main advantage of predefined roles over basic roles?
AThey are easier to create
BThey cannot be assigned to users
CThey grant full access to billing
DThey provide more specific permissions
✗ Incorrect
Predefined roles give permissions tailored to specific services or tasks.
Which role type allows you to create a role with exactly the permissions you want?
APredefined roles
BCustom roles
CBasic roles
DNo roles
✗ Incorrect
Custom roles let you pick specific permissions to fit your needs.
Which basic role in GCP can only view resources but not change them?
AViewer
BEditor
CCustom
DOwner
✗ Incorrect
The Viewer role grants read-only access.
Why should you prefer predefined or custom roles over basic roles?
AThey reduce security risks by limiting permissions
BThey are easier to assign
CThey grant more permissions
DThey are free
✗ Incorrect
Limiting permissions reduces risk of accidental or malicious changes.
Explain the differences between basic, predefined, and custom roles in GCP.
Think about how much access each role type gives and how specific they are.
You got /3 concepts.
Why is it important to use predefined or custom roles instead of basic roles in a cloud project?
Consider the risks of giving too much access.
You got /3 concepts.
Practice
(1/5)
1. Which type of Google Cloud role provides broad access across all services with simple permissions like Owner, Editor, and Viewer?
easy
A. Predefined roles
B. Basic roles
C. Custom roles
D. Service accounts
Solution
Step 1: Understand role categories
Google Cloud has three main role types: basic, predefined, and custom.
Step 2: Identify broad access roles
Basic roles like Owner, Editor, and Viewer provide broad access across all services.
Final Answer:
Basic roles -> Option B
Quick Check:
Broad access = Basic roles [OK]
Hint: Basic roles cover broad access across all services [OK]
Common Mistakes:
Confusing predefined roles with basic roles
Thinking custom roles are broad by default
Mixing service accounts with roles
2. Which of the following is the correct way to create a custom role in Google Cloud IAM?
easy
A. Use the gcloud CLI with 'gcloud iam roles create' and specify permissions
B. Assign a predefined role to a user
C. Use the Google Cloud Console to assign a basic role
D. Create a service account with custom permissions
Solution
Step 1: Identify how to create custom roles
Custom roles require specifying exact permissions and are created via CLI or console.
Step 2: Match correct command
The 'gcloud iam roles create' command is used to create custom roles with specific permissions.
Final Answer:
Use the gcloud CLI with 'gcloud iam roles create' and specify permissions -> Option A
Quick Check:
Create custom role = gcloud iam roles create [OK]
Hint: Custom roles need explicit creation with permissions via CLI [OK]
Common Mistakes:
Confusing assigning roles with creating roles
Using service accounts to create roles
Assigning basic roles instead of creating custom ones