GCP Prep

IAM Practice Questions

Roles, inheritance, service accounts and least privilege. 9 original questions with full explanations.

Read Identity and Access Management (IAM) first

Question 1 of 9

0 answered · 9 remaining

IAMmedium

An analyst needs to read objects in one Cloud Storage bucket and nothing else. Which grant follows least privilege?

Select one answer

Select an answer to see the explanation.

These questions are written by GCP Prep to test understanding of publicly documented concepts. They are not real exam questions.

What this test covers

One concept per question. If you can explain each of these without hesitating, you are in good shape on IAM.

  • Least privilege is both the narrowest role and the narrowest scope
  • IAM conditions can bind access to time, resource names or other attributes
  • Organisation policy is a preventative control that binds even project administrators
  • Workload identity federation eliminates long-lived service account keys
  • Attach a purpose-specific service account and grant only the role it needs
  • Custom roles exist for when no predefined role is narrow enough
  • Separation of duties prevents a single identity holding conflicting powers
  • Data access logs record reads and must be enabled deliberately
  • Grant to groups so access follows role changes automatically