A security specialist needs to mandate that no user or service account can generate long-lived service account keys across any existing or future projects located inside the `Staging-Services` folder. This security requirement must be automatically inherited across all child resources without restricting developers from performing standard resource management tasks within their projects. Which solution enforces this operational restriction?
- Apply an Organization Policy enforcing the `constraints/iam.disableServiceAccountKeyCreation` boolean constraint at the `Staging-Services` folder node.Cevap
- BRevoke the `roles/iam.serviceAccountKeyAdmin` IAM role at the Organization root and assign the primitive `Viewer` role to developers on the `Staging-Services` folder.
- CConfigure an IAM policy at each individual project level that grants developers `roles/owner` while revoking key creation permissions at the folder level.
- DAssign developers the `roles/resourcemanager.organizationAdmin` role on the `Staging-Services` folder so they can self-police key creation.
Cevap
The requirement is met by applying an Organization Policy enforcing the `constraints/iam.disableServiceAccountKeyCreation` boolean constraint at the `Staging-Services` folder node.
Organization Policies are designed to set programmatic constraints on specific GCP resources across an Organization, Folder, or Project. By enforcing `constraints/iam.disableServiceAccountKeyCreation` at the `Staging-Services` folder level, all current and future projects inside that folder automatically inherit the restriction, preventing any user or service account from creating long-lived service account keys while retaining their standard IAM permissions for other tasks.
Adım Adım Çözüm
Anahtar Kavram
Organization Policies govern resource configuration constraints across the GCP resource hierarchy via inheritance, distinct from IAM access controls.
Tahmini Süre:1m 30s