An enterprise organization requires that all Compute Engine virtual machine instances residing within a folder named 'Production' mandate OS Login for user authentication to disable instance-level SSH keys. Which approach correctly enforces this constraint across the resource hierarchy?
- Apply the constraints/compute.requireOsLogin Organization Policy constraint at the 'Production' folder level and set its enforcement to Enforced.Cevap
- BGrant the Compute Instance Admin IAM role at the 'Production' folder level with a conditional deny expression for instance metadata keys.
- CApply the constraints/compute.requireOsLogin Organization Policy constraint separately on each child project, because folder-level policies do not inherit down to project resources.
- DAssign the primitive Owner role to the Security Operations group on the 'Production' folder to automatically activate OS Login enforcement.
Cevap
Apply the constraints/compute.requireOsLogin Organization Policy constraint at the 'Production' folder level with enforcement enabled.
Applying the boolean constraint `constraints/compute.requireOsLogin` at the folder level and enabling enforcement ensures that all virtual machines created within child projects under the 'Production' folder are mandated to use OS Login, suppressing instance-level SSH key access through inherited resource hierarchy guardrails.
Adım Adım Çözüm
Anahtar Kavram
Organization Policy Enforcement and Resource Hierarchy Inheritance
Tahmini Süre:1m 30s