QuestionQ67

VerifiedBuilding and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are building a CI/CD pipeline to perform Terraform deployments of Google Cloud resources. The CI/CD tooling runs in Google Kubernetes Engine (GKE) and uses an ephemeral Pod for every pipeline run. You must ensure that the pipelines running in the Pods have the required Identity and Access Management (IAM) permissions to carry out the Terraform deployments. You want to follow Google-recommended identity-management practices. What should you do?

Choose two
Explanation

Workload Identity Federation for GKE lets a Kubernetes service account used by a Pod authenticate to Google Cloud without exporting or storing service-account keys. A dedicated Google IAM service account must be granted the least-privilege IAM roles needed for the Terraform deployment, and the Pod's Kubernetes service account can be configured to use that identity. Using JSON keys or the node Compute Engine service account is less secure and can over-provision permissions.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!