Google Cloud · Security and Identity
Identity and Access Management (IAM)
Identity and Access Management: allow and deny policies that grant roles to principals on resources, plus service accounts and Workload Identity Federation.
On the Google Cloud Associate Cloud Engineer exam listIdentity and accessAuditing and compliance
What it is and what problem it solves
IAM decides who can do what on which resource. Allow policies on organisations, folders, projects and individual resources bind principals (users, groups, service accounts, federated identities) to roles: basic, predefined or custom collections of permissions, optionally with conditions. Deny policies block permissions regardless of allows. Service accounts are identities for workloads, and Workload Identity Federation lets external workloads use Google Cloud without keys.
When to use it
- Every access decision in Google Cloud.
- Giving workloads identities (attached service accounts) and CI systems keyless access (federation).
- Organisation-wide guardrails with deny policies.
When to avoid it
- Granting basic roles (Owner, Editor) for day-to-day work.
- Granting roles to individual users instead of groups.
- Downloading service account keys when attachment, impersonation or federation would work.
Cost model
What you pay for
- IAM itself is free.
- Related services (Privileged Access Manager, audit log storage) may bill.
Where it is cost-efficient
Group-based, least-privilege roles managed as code.
Where costs grow
Operational cost of incidents from over-broad roles rather than direct charges.
Cost controls and common surprises
Use IAM Recommender to remove unused permissions.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
Policy inheritance, deny policies, IAM Conditions, short-lived credentials, Policy Intelligence tools.
What you configure
Least privilege through predefined or custom roles granted to groups, keyless workloads, and regular access reviews.
Logging and monitoring
Cloud Audit Logs record IAM policy changes and service account use.
Exam cues and common confusions
- Policies inherit down the hierarchy; deny policies override allows.
- Least privilege: predefined or custom roles, granted to groups.
- Workload credentials: attach a service account; temporary elevation: impersonation.
- External workloads without keys: Workload Identity Federation.
Related
Courses and lessons
- The Service Account Key in CI · Google Cloud in Production · Members
- Everyone Is Editor · Google Cloud in Production · Members
- Terraform Removed Everyone's Access · Google Cloud in Production · Members
Services, comparisons and patterns
- Resource Manager and Organization Policy · Service
- Cloud Identity · Service
- Cloud Key Management Service · Service
Sources
Independent study material, not affiliated with or endorsed by Google. Google Cloud and service names are trademarks of Google LLC.