A CI/CD pipeline service account must be configured to build container images, store them in Google Cloud Artifact Registry, and deploy them to Cloud Run services within a dedicated staging project. To adhere strictly to the principle of least privilege without using primitive roles, which TWO predefined IAM roles should be granted to the service account on the project? (Select TWO.)
- Artifact Registry Writer (roles/artifactregistry.writer)Cevap
- Cloud Run Developer (roles/run.developer)Cevap
- CEditor (roles/editor)
- DCloud Run Admin (roles/run.admin) granted at the Organization level
Cevap
To allow a automated service account to manage container artifacts and deploy Cloud Run applications under least privilege, grant Artifact Registry Writer (roles/artifactregistry.writer) and Cloud Run Developer (roles/run.developer) at the project level.
The correct options are Artifact Registry Writer (roles/artifactregistry.writer) and Cloud Run Developer (roles/run.developer). Artifact Registry Writer provides the exact permissions needed to build and push container images to repositories. Cloud Run Developer provides permissions to deploy and update Cloud Run services. Together, these predefined roles enforce the principle of least privilege at the project level.
Adım Adım Çözüm
Anahtar Kavram
Applying least-privilege IAM access control using granular predefined roles for service workload deployments.
Tahmini Süre:2m 0s