A retail enterprise uses an automated provisioning script executed by a service account named `[email protected]`. The script is designed to create new workload projects within a specific organizational folder named `Digital-Storefronts` and link those newly created projects to the company's central Cloud Billing Account. Which IAM role assignments are required for the service account to execute this workflow while adhering to the principle of least privilege? (Select TWO.)
- Grant the Project Creator role (roles/resourcemanager.projectCreator) to the service account on the Digital-Storefronts folder.Cevap
- Grant the Billing Account User role (roles/billing.user) to the service account on the central Cloud Billing Account.Cevap
- CGrant the Editor primitive role (roles/editor) to the service account at the Organization root level.
- DGrant the Billing Account User role (roles/billing.user) to the service account on the Digital-Storefronts folder.
- EGrant the Project Creator role (roles/resourcemanager.projectCreator) at the individual project level after disabling parent policy inheritance.
Cevap
The service account requires the Project Creator role (roles/resourcemanager.projectCreator) granted on the Digital-Storefronts folder and the Billing Account User role (roles/billing.user) granted on the central Cloud Billing Account.
Creating a project inside a specific folder requires the Project Creator role (roles/resourcemanager.projectCreator) assigned at that target folder level. Linking any newly created project to a Cloud Billing Account requires the Billing Account User role (roles/billing.user) assigned directly on the Cloud Billing Account resource itself.
Adım Adım Çözüm
Anahtar Kavram
Assigning scoped predefined IAM roles for project creation within resource hierarchy folders and billing account association.