An administrator needs to establish resource constraints on a folder named 'Staging'. The requirements state that developers must not be allowed to create external service account keys, and Compute Engine virtual machines in this folder must be restricted from obtaining public IP addresses. Which two Organization Policy constraint configurations directly fulfill these security requirements? (Select TWO.)
- Enforce the 'iam.disableServiceAccountKeyCreation' constraint on the 'Staging' folder.Cevap
- Configure the 'compute.vmExternalIpAccess' constraint to deny external IP allocations on the 'Staging' folder.Cevap
- CAssign the primitive Viewer IAM role to developers on the 'Staging' folder to block service account key generation.
- DGrant project-level IAM role bindings to override and disable parent folder restrictions.
Cevap
Enforce the 'iam.disableServiceAccountKeyCreation' constraint on the 'Staging' folder and configure the 'compute.vmExternalIpAccess' constraint to deny external IP allocations on the 'Staging' folder.
Organization Policy constraints are programmatic guardrails applied to resource hierarchy nodes. Enforcing 'iam.disableServiceAccountKeyCreation' blocks key export, and setting 'compute.vmExternalIpAccess' to deny external IP assignment restricts public IP access for all projects in the designated folder.
Adım Adım Çözüm
Anahtar Kavram
Organization Policy Constraints and Resource Hierarchy Inheritance