Skip to main content

Associate Cloud Engineer practice question · Configuring access and security

A user is granted the Compute Viewer role (roles/compute.viewer) on the Engineering folder.

A user is granted the Compute Viewer role (roles/compute.viewer) on the Engineering folder. The folder contains an existing project, prod-1, whose own allow policy does not mention the user. What access does the user have in prod-1?

  • AThey can view Compute Engine resources in prod-1, because the folder's allow policy is inherited by the projects within it
  • BThey have no access in prod-1, because a project's own allow policy overrides any grants made higher in the hierarchy
  • CThey can view only the folder's metadata, because folder grants must be repeated on each project before they take effect
  • DThey can view Compute Engine resources only in projects created in the folder after the role was granted to them
Show the answer and explanation

Correct answer: A) They can view Compute Engine resources in prod-1, because the folder's allow policy is inherited by the projects within it

IAM allow policies are inherited down the resource hierarchy, and a project's effective policy is the union of its own policy and its ancestors' policies. A folder-level grant therefore applies to every project under the folder unless a deny policy blocks it.

Why each option is right or wrong

  • A) Correct. Child resources inherit their ancestors' allow policies. The effective policy for prod-1 is the union of its own allow policy and the policies of its ancestors, so the folder-level grant applies to prod-1 and its resources.
  • B) Incorrect. Allow policies are not overridden from below. The effective policy is the union of the project's policy and its ancestors' policies, so a project policy cannot remove an inherited grant. Only a deny policy or removing the folder grant would block it.
  • C) Incorrect. Roles granted on a folder do not need to be granted again on each project. They are inherited automatically by every project and resource under that folder.
  • D) Incorrect. Inheritance depends on where a resource sits in the hierarchy, not on when it was created. Existing projects in the folder, such as prod-1, inherit the grant too.
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.