An enterprise infrastructure team needs to grant an automated backup service account the permission to create, delete, and manage Compute Engine persistent disk snapshots within a specific project named `prod-data-01`. To adhere to security policy, the service account must not have permissions to modify compute instances, view instance metadata, or access network configurations. Following Google Cloud recommended security best practices, which IAM role assignment should you configure for the service account?
- Grant Compute Storage Admin (roles/compute.storageAdmin) on the project prod-data-01Cevap
- BGrant Editor (roles/editor) on the project prod-data-01
- CGrant Compute Admin (roles/compute.admin) at the parent organization level
- DGrant Billing Account User (roles/billing.user) on the project prod-data-01
Cevap
Grant the predefined Compute Storage Admin role (roles/compute.storageAdmin) resource-scoped at the project level.
The Compute Storage Admin (roles/compute.storageAdmin) role grants full control over persistent disks, images, and snapshots without permitting actions on virtual machine instances, networks, or other GCP services. Applying this at project scope satisfies all functional requirements while strictly maintaining least privilege.
Adım Adım Çözüm
Anahtar Kavram
Applying Least Privilege via Predefined IAM Roles at Project Scope