A cloud operations team needs to grant a newly assigned developer permissions to deploy, update, and manage Cloud Functions within a target project named `backend-api-884`. The developer must not be granted permissions to modify other infrastructure components in the project, nor should their permissions extend to any other projects within the resource hierarchy. Which IAM role assignment adheres strictly to the principle of least privilege?
- Assign the Cloud Functions Admin role (`roles/cloudfunctions.admin`) on the `backend-api-884` project.Cevap
- BAssign the Editor role (`roles/editor`) on the `backend-api-884` project.
- CAssign the Cloud Functions Admin role (`roles/cloudfunctions.admin`) on the parent Folder containing `backend-api-884`.
- DAssign the Owner role (`roles/owner`) on the `backend-api-884` project.
Cevap
Assign the Cloud Functions Admin role (`roles/cloudfunctions.admin`) on the `backend-api-884` project.
Assigning the predefined Cloud Functions Admin role at the project level restricts administrative capabilities strictly to Cloud Functions and scopes those permissions solely to the targeted project (`backend-api-884`), satisfying the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Principle of Least Privilege with Predefined Roles and Resource Scope