Soru

Zorluk: OrtaAutomating Continuous Deployment Pipelines and Release Strategies

A software company is designing an automated continuous delivery pipeline using Google Cloud Deploy to deploy stateless HTTP microservices to Cloud Run across staging and production environments. The security team mandates that the delivery pipeline service account must adhere to the principle of least privilege while allowing Cloud Deploy to act on behalf of the runtime service account during rollout execution. Which IAM role assignment configuration meets these security and pipeline automation requirements?

  1. Grant the Cloud Deploy execution service account the Cloud Run Developer role (roles/run.developer) and the Service Account User role (roles/iam.serviceAccountUser) on the runtime service account.Cevap
  2. B
    Grant the Cloud Deploy execution service account the primitive Owner role (roles/owner) on the target Google Cloud project.
  3. C
    Grant the Cloud Deploy execution service account the Service Account Admin role (roles/iam.serviceAccountAdmin) on the target project.
  4. D
    Provision a multi-zone Google Kubernetes Engine (GKE) cluster for the release pipeline and assign the primitive Editor role to the execution service account.

Cevap

Grant the Cloud Deploy execution service account the Cloud Run Developer role (roles/run.developer) and the Service Account User role (roles/iam.serviceAccountUser) on the runtime service account.
The correct approach enforces security best practices by granting the Cloud Deploy execution worker only the specific predefined permissions required for Cloud Run management (roles/run.developer) alongside the Service Account User role (roles/iam.serviceAccountUser) on the specific runtime service account. This allows the delivery pipeline to deploy and attach the identity without exposing excessive administrative control.

Adım Adım Çözüm

1
Identify the deployment target requirements and runtime model.
Stateless HTTP microservices are best targeted to Cloud Run without introducing Kubernetes cluster operational overhead.
Cloud Run handles fully managed stateless container execution.
2
Determine least-privilege deployment execution permissions for Cloud Deploy.
The execution service account requires Cloud Run Developer (roles/run.developer) to deploy service revisions.
This provides fine-grained permissions specific to managing Cloud Run deployments.
3
Determine identity impersonation requirements for the execution runner.
Grant roles/iam.serviceAccountUser to the execution service account specifically bound to the designated runtime service account.
This enables Cloud Deploy to attach and run the service under the specific runtime identity without granting broad administrative control.

Anahtar Kavram

Continuous Delivery Pipeline Identity & Least Privilege IAM Configuration
Bu soruyu puanla