Google Cloud Engineer interview question · Most asked

How does IAM work in Google Cloud, and why should you avoid basic roles?

How it works Asked in Cloud Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

An IAM allow policy on a resource binds principals (users, groups, service accounts, workload identities) to roles, which are collections of permissions. Basic roles (Owner, Editor, Viewer) grant thousands of permissions across every service, so use predefined roles for specific services, or custom roles when even those are too broad.

Longer Answer

  • Grant roles to groups, not individual users, so access follows team membership.
  • Grant at the lowest level that works (a bucket or a project rather than a folder).
  • IAM Conditions limit a grant by resource name, tag or time (temporary access).
  • Deny policies block specific permissions regardless of allows, useful as organisation guardrails.
  • IAM Recommender suggests removing permissions a principal hasn't used in 90 days.
  • Editor can, for example, create service account keys and change most resources: far too much for day-to-day use.

Key Points

  • Principals get roles on resources.
  • Basic roles are far too broad.
  • Predefined or custom roles, granted to groups.
  • Lowest level; conditions for temporary access.
  • Recommender trims unused permissions.

Explanation

What interviewers look for

Least privilege in Google Cloud's terms and practical habits (groups, conditions, recommender).

More Google Cloud Engineer questions

← All Google Cloud Engineer questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake