A telemetry platform company manages multiple environment folders (`Production`, `Development`) under a single Google Cloud Organization node. The security team needs to grant a deployment service account residing in a dedicated `Tools` project the exact permissions required to attach a workload-specific service account located in the `Production` project to newly created Compute Engine instances. The security team must enforce the principle of least privilege and ensure the deployment service account cannot modify IAM policies or create keys for the target service account. Which configuration should the security architect recommend?
- Grant the Service Account User role (`roles/iam.serviceAccountUser`) to the deployment service account directly on the target workload service account resource in the Production project.Cevap
- BGrant the Service Account Admin role (`roles/iam.serviceAccountAdmin`) to the deployment service account at the Production project level.
- CGrant the Editor primitive role (`roles/editor`) to the deployment service account on the Production folder level.
- DGrant the Service Account User role (`roles/iam.serviceAccountUser`) to the deployment service account at the Organization node level, relying on IAM policy evaluation alone to prevent unauthorized data access.
Cevap
Grant the Service Account User role (`roles/iam.serviceAccountUser`) to the deployment service account directly on the target workload service account resource in the Production project.
Granting `roles/iam.serviceAccountUser` specifically on the target workload service account resource allows the deployment service account to attach the service account to Compute Engine instances without granting any permissions over other service accounts or broader project resources.
Adım Adım Çözüm
Anahtar Kavram
Identity and Access Management (IAM) Service Account Impersonation and Resource Hierarchy Scope
Tahmini Süre:1m 30s