Google Cloud Professional Cloud DevOps Engineer — Question 105

You are creating a CI/CD pipeline to perform Terraform deployments of Google Cloud resources. Your CI/CD tooling is running in Google Kubernetes Engine (GKE) and uses an ephemeral Pod for each pipeline run. You must ensure that the pipelines that run in the Pods have the appropriate Identity and Access Management (IAM) permissions to perform the Terraform deployments. You want to follow Google-recommended practices for identity management. What should you do? (Choose two.)

Answer options

Correct answer: A, C

Explanation

Option A is correct because it involves creating a Kubernetes service account and using Workload Identity, which aligns with Google’s best practices for managing identities. Option C is also correct as it ensures the Google service account has the necessary IAM permissions. Options B, D, and E are not recommended; they involve handling service account keys, which can lead to security issues and do not follow the best practices of using Workload Identity.