Courseiva

PCSE Organization policy Practice Question

An organization wants to restrict the creation of service accounts to only certain projects. Which two approaches can achieve this? (Choose two.)

⚠ Common exam trap

Be careful: Option A (deny policy) is not directly applicable because deny policies cannot block individual API methods like service account creation. Option C (granting roles/iam.serviceAccountAdmin only to users in allowed projects) does not restrict creation by project; it only limits who can create, not where.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Create a custom role with iam.serviceAccounts.create permission and assign it to a group, then use IAM conditions to restrict the resource to specific projects.

Two correct approaches: (B) Create a custom role with the iam.serviceAccounts.create permission and assign it to a group with IAM conditions restricting resource to specific projects, and (D) Use an organization policy with constraint constraints/iam.disableServiceAccountCreation set to True at the org level, then create a folder policy to allow creation in specific folders.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use a deny policy to block service account creation in all projects except the allowed ones.

    Why it's wrong here

    Deny policies cannot be used to allow exceptions; they only deny.

  • Create a custom role with iam.serviceAccounts.create permission and assign it to a group, then use IAM conditions to restrict the resource to specific projects.

    Why this is correct

    IAM conditions can limit the scope of a role to specific projects.

  • Grant the roles/iam.serviceAccountAdmin role only to users in the allowed projects.

    Why it's wrong here

    IAM roles do not restrict by project; they grant permissions at the project level.

  • Use an organization policy with constraint constraints/iam.disableServiceAccountCreation set to True at the org level, and then create a folder policy to allow creation in specific folders.

    Why this is correct

    Organization policies can be overridden at lower levels.

  • Create a separate organization for the allowed projects.

    Why it's wrong here

    Unnecessary and complex.

About these practice questions

This PCSE question is part of Courseiva's 960-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCSE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCSE exam.