0
0
GCPcloud~20 mins

Members (users, groups, service accounts) in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
Master of Members in GCP IAM
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ service_behavior
intermediate
1:30remaining
Identify the member type from the IAM policy binding
Given the following IAM policy binding member string, what type of member does it represent?

serviceAccount:my-service-account@my-project.iam.gserviceaccount.com
AA Google group
BA user account
CA service account
DA Google Workspace domain
Attempts:
2 left
πŸ’‘ Hint
Look at the prefix before the colon in the member string.
🧠 Conceptual
intermediate
1:30remaining
Understanding group members in IAM policies
Which of the following member strings correctly represents a Google group in an IAM policy binding?
Auser:alice@example.com
Bdomain:example.com
CserviceAccount:app@project.iam.gserviceaccount.com
Dgroup:dev-team@example.com
Attempts:
2 left
πŸ’‘ Hint
Groups have a specific prefix in the member string.
❓ security
advanced
2:00remaining
Least privilege principle with service accounts
You want to grant a Compute Engine VM the ability to read from a Cloud Storage bucket. Which member should you add to the bucket's IAM policy to follow the least privilege principle?
AserviceAccount:my-vm@my-project.iam.gserviceaccount.com
Buser:admin@example.com
Cgroup:developers@example.com
Ddomain:example.com
Attempts:
2 left
πŸ’‘ Hint
Grant permissions only to the entity that needs access, not to broad groups or domains.
❓ Architecture
advanced
2:00remaining
Choosing the right member type for automated workflows
You have an automated workflow running on Cloud Functions that needs to access BigQuery data. Which member type should you assign permissions to for best practice?
AserviceAccount:cloud-functions-sa@my-project.iam.gserviceaccount.com
Buser:workflow-owner@example.com
Cgroup:data-analysts@example.com
Ddomain:example.com
Attempts:
2 left
πŸ’‘ Hint
Automated workflows should use identities that represent the service, not individual users or broad groups.
βœ… Best Practice
expert
2:30remaining
Managing access with Google Workspace domains in IAM
You want to grant read access to all users in your company’s Google Workspace domain to a Cloud Storage bucket. Which member string should you use in the IAM policy binding?
Auser:all@example.com
Bdomain:example.com
Cgroup:all@example.com
DserviceAccount:all@example.com
Attempts:
2 left
πŸ’‘ Hint
Think about how to grant access to everyone in a domain without listing individual users or groups.