A cloud engineer is configuring a dedicated deployment service account that will automate project setup. The service account needs to enable and disable Google Cloud APIs (such as Compute Engine API and Cloud Run API) within a targeted project named `app-deploy-prod`. Following Google Cloud best practices for the principle of least privilege, which predefined IAM role should be assigned to the service account on the `app-deploy-prod` project?
- Service Usage Admin (roles/serviceusage.serviceUsageAdmin)Cevap
- BEditor (roles/editor)
- CService Usage Consumer (roles/serviceusage.serviceUsageConsumer)
- DOrganization Admin (roles/resourcemanager.organizationAdmin)
Cevap
Service Usage Admin (roles/serviceusage.serviceUsageAdmin)
The Service Usage Admin (`roles/serviceusage.serviceUsageAdmin`) role grants full administrative access to enable, disable, inspect, and audit service usage and APIs within a target project while upholding the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Enabling Cloud Service APIs using Predefined IAM Roles and Least Privilege