QuestionQ91

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

Your company runs Jenkins on Google Cloud VM instances for CI/CD. You need to extend its functionality to use Terraform for infrastructure-as-code automation. Ensure that the Jenkins instance running Terraform is authorized to create Google Cloud resources while following Google-recommended practices. What should you do?

Explanation

A workload running on a Google Cloud VM can authenticate through the service account attached to that VM, which Terraform can use through Application Default Credentials. Assigning that service account the required IAM permissions follows least-privilege practice and avoids storing downloaded service-account keys or using interactive login commands in CI/CD automation.

Community Discussion

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