Soru

Zorluk: OrtaConfiguring Billing Accounts and Linking Projects

A DevOps automation engineer at a satellite imaging startup is configuring a custom CI/CD service account. The service account needs to automatically link newly provisioned isolated Google Cloud projects to the company's central Cloud Billing account. Following Google Cloud least-privilege security best practices, which TWO predefined IAM roles must be granted to the service account?

  1. Billing Account User (roles/billing.user) on the Cloud Billing accountCevap
  2. B
    Billing Account Viewer (roles/billing.viewer) on the Cloud Billing account
  3. Project Billing Manager (roles/billing.projectManager) on the target projectCevap
  4. D
    Project Owner (roles/owner) on the target project
  5. E
    Billing Account Administrator (roles/billing.admin) on the Cloud Billing account

Cevap

To link a Google Cloud project to a Cloud Billing account following least privilege, the identity requires Billing Account User (roles/billing.user) on the billing account and Project Billing Manager (roles/billing.projectManager) on the target project.
Linking a project to a Cloud Billing account requires permissions on both sides of the relationship. On the billing account side, Billing Account User (roles/billing.user) grants permission to bind projects to the account. On the project side, Project Billing Manager (roles/billing.projectManager) grants permission to attach or detach billing accounts for that specific project. Together, these two predefined roles enforce least privilege.

Adım Adım Çözüm

1
Determine the billing account level permission required for linking.
Identified Billing Account User (roles/billing.user) as the least-privileged predefined role on the Cloud Billing account.
Linking requires permission to use the billing account without requiring administrative control over billing settings or access management.
2
Determine the project level permission required for linking.
Identified Project Billing Manager (roles/billing.projectManager) as the least-privileged predefined role on the target project.
Linking requires permission on the resource being linked to attach billing services, without needing full resource control.

Anahtar Kavram

Dual-permission requirement for project billing account linking under least privilege
Bu soruyu puanla