A software developer requires permission to view and read objects within Cloud Storage buckets in a specific Google Cloud project, but must not be able to create, modify, or delete objects. Which IAM role should be assigned to the developer to enforce the principle of least privilege?
- Storage Object Viewer (roles/storage.objectViewer)Cevap
- BEditor (roles/editor)
- CStorage Admin (roles/storage.admin)
- DProject Viewer (roles/viewer) at the project level combined with a bucket deny policy
Cevap
Assign the predefined Storage Object Viewer (roles/storage.objectViewer) role.
The Storage Object Viewer role (roles/storage.objectViewer) provides read access to Cloud Storage objects without granting rights to create, edit, delete objects, or manage bucket policies. This satisfies the requirement while following the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Granting minimal necessary access using predefined Cloud Storage IAM roles.
Tahmini Süre:45s