Skip to main content

Associate Cloud Engineer practice question · Configuring access and security

A team is planning the IAM setup for a new project. They need to decide when to use predefined roles and when to invest…

A team is planning the IAM setup for a new project. They need to decide when to use predefined roles and when to invest in custom roles. Which approach follows Google Cloud's recommended guidance?

  • AUse predefined roles where they fit, and create a custom role only when every predefined role with a needed permission also grants unneeded ones
  • BGrant basic roles such as Editor at the project level at first, then replace them with narrower roles after the project goes into production
  • CCreate custom roles for every job function up front so that Google's updates to predefined roles can't change the permissions people hold
  • DUse only predefined roles in the project, because custom roles can be created only at the organization level and can't be used inside a project
Show the answer and explanation

Correct answer: A) Use predefined roles where they fit, and create a custom role only when every predefined role with a needed permission also grants unneeded ones

Start with Google-maintained predefined roles. Create a custom role only when no predefined role meets least privilege, and accept that you will have to maintain it yourself.

Why each option is right or wrong

  • A) Correct. Google recommends predefined roles because Google maintains them and updates them as services change. Custom roles are meant for cases where least privilege can't be met because each predefined role containing the needed permission also includes permissions the principal shouldn't have.
  • B) Incorrect. Basic roles are very broad and violate least privilege. Google advises against using them when a predefined or custom role would do, even as a temporary step.
  • C) Incorrect. Google does not maintain custom roles, so they don't pick up new permissions for new features. Building them for every function creates ongoing maintenance work that predefined roles would avoid.
  • D) Incorrect. Custom roles can be created at either the organization level or the project level, so this restriction does not exist.
Exam domain
Configuring access and security · ~20% of Associate Cloud Engineer
Question type
Multiple choice (one answer)

Practise the full Associate Cloud Engineer exam

This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.