A lead developer at a media enterprise needs permission to create new Google Cloud projects within a dedicated department folder named Media-Production. Additionally, these newly created projects must be linked to the company's central Billing Account. Following the principle of least privilege, which configuration of IAM roles should be granted to the lead developer?
- Project Creator (roles/resourcemanager.projectCreator) on the Media-Production folder, and Billing Account User (roles/billing.user) on the central Billing Account.Cevap
- BEditor (roles/editor) at the Organization resource level, and Billing Account Administrator (roles/billing.admin) on the central Billing Account.
- CProject Creator (roles/resourcemanager.projectCreator) on the Media-Production folder, without any roles assigned on the Billing Account.
- DProject Creator (roles/resourcemanager.projectCreator) at the Organization level, relying on implicit denial to restrict creation in sibling folders.
Cevap
Granting Project Creator (roles/resourcemanager.projectCreator) on the target folder and Billing Account User (roles/billing.user) on the central Billing Account.
To create a project within a folder and associate it with a billing account, a principal needs `roles/resourcemanager.projectCreator` assigned on the specific folder (to allow project creation in that scope) and `roles/billing.user` assigned on the billing account (to allow linking projects to that billing account). This minimal role assignment adheres strictly to the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Resource Hierarchy Scoping and Billing Account Delegation
Tahmini Süre:1m 30s