An automated build pipeline's service account requires access to project `proj-artifact-deploy-409`. The service account must be able to push container images to Artifact Registry repositories and update existing Cloud Run services with new container revisions. It must not be granted permissions to modify other infrastructure components or manage IAM policies. Which TWO predefined roles should be granted to the service account at the project level to adhere to the principle of least privilege? (Select TWO.)
- Artifact Registry Writer (roles/artifactregistry.writer)Cevap
- Cloud Run Developer (roles/run.developer)Cevap
- CEditor (roles/editor)
- DArtifact Registry Administrator (roles/artifactregistry.admin) assigned at the Organization level
Cevap
To follow the principle of least privilege, grant the Artifact Registry Writer role to allow pushing container images and the Cloud Run Developer role to permit updating Cloud Run service revisions, both scoped to the specific project.
The combination of Artifact Registry Writer and Cloud Run Developer provides exactly the necessary permissions to push container images and deploy updated Cloud Run service revisions at the project scope, perfectly adhering to the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Applying least privilege IAM predefined roles for CI/CD container artifact management and Cloud Run service deployments.