A financial enterprise is establishing its Google Cloud resource hierarchy. A Cloud Operations team must configure access so that a group of developers can create new projects inside a specific folder named Analytics-Dev and link those newly created projects to the central corporate billing account 012345-6789AB-CDEF01. The solution must strictly adhere to the principle of least privilege without granting billing administration or organization-wide project creation rights. Which TWO IAM role assignments must be implemented to fulfill these requirements?
- Grant the developer group the Project Creator (roles/resourcemanager.projectCreator) role on the Analytics-Dev folder.Answer
- Grant the developer group the Billing Account User (roles/billing.user) role directly on billing account 012345-6789AB-CDEF01.Answer
- CGrant the developer group the Owner (roles/owner) primitive role on the Analytics-Dev folder.
- DGrant the developer group the Billing Account Administrator (roles/billing.admin) role on the Analytics-Dev folder.
- EConfigure an Organization Policy constraint at the Analytics-Dev folder level to grant project creation permissions to the developer group.
Answer
To allow developers to create projects under a specific folder and link them to a billing account, grant the Project Creator role on the target folder and the Billing Account User role directly on the billing account.
To create projects under a specific folder, principals require the Project Creator (roles/resourcemanager.projectCreator) role scoped to that folder. To attach those new projects to an enterprise billing account, principals also require the Billing Account User (roles/billing.user) role granted on the specific billing account. Together, these two roles grant the exact permissions needed to execute the workflow while maintaining least privilege.
Step-by-Step Solution
Key Concept
Project creation requires the Project Creator role on the parent resource container (folder or organization), and linking a billing account requires the Billing Account User role bound directly to the billing account.