A company's automated data pipeline application requires access to upload, update, and delete log files within a specific Google Cloud Storage bucket. The application must not be allowed to modify bucket configuration settings, alter lifecycle rules, or manage bucket IAM permissions. Following Google Cloud security best practices for least privilege, which IAM role assignment should be configured for the application's service account?
- Grant the Storage Object Admin role (roles/storage.objectAdmin) directly on the specific Cloud Storage bucket.Cevap
- BGrant the Storage Admin role (roles/storage.admin) directly on the specific Cloud Storage bucket.
- CGrant the Editor primitive role (roles/editor) at the Google Cloud project level.
- DGrant the Storage Object Admin role (roles/storage.objectAdmin) at the project level and explicitly revoke permissions on all other buckets in the project.
Cevap
Granting the Storage Object Admin role (roles/storage.objectAdmin) directly on the specific Cloud Storage bucket provides full object manipulation capabilities while restricting bucket-level metadata and policy modifications.
Granting the Storage Object Admin role directly on the target bucket aligns perfectly with the principle of least privilege. It enables full object operations (uploading, updating, deleting) inside that specific bucket, while preventing any changes to bucket configurations, lifecycle policies, or IAM settings.
Adım Adım Çözüm
Anahtar Kavram
Principle of Least Privilege with Predefined Roles and Resource-Level IAM Bindings
Tahmini Süre:1m 30s