A software engineer needs to upload container images to Google Artifact Registry repositories within a development project. Following the principle of least privilege, which IAM role should you grant to the engineer?
- Artifact Registry Writer (`roles/artifactregistry.writer`) on the projectCevap
- BEditor (`roles/editor`) on the project
- CArtifact Registry Administrator (`roles/artifactregistry.admin`) at the Organization level
- DOwner (`roles/owner`) on the project
Cevap
Grant the Artifact Registry Writer role (`roles/artifactregistry.writer`) scoped to the specific project.
The Artifact Registry Writer role (`roles/artifactregistry.writer`) provides permissions to read and write repositories, which enables pushing container images. Granting this predefined role at the project level meets the functional requirement while adhering strictly to the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Selecting specific Predefined Roles over broad Primitive Roles to satisfy the Principle of Least Privilege.
Tahmini Süre:45s