
Answer-first summary for fast verification
Answer: Assign the Container Developer role to the Cloud Build service account.
Assigning the Container Developer role to the Cloud Build service account is the correct approach because it grants the necessary permissions for Cloud Build to authenticate to GKE for deploying images. This method minimizes development effort by leveraging the existing Cloud Build service account for authentication, eliminating the need for manual configuration.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
What is the most efficient method for a team to authenticate to Google Kubernetes Engine (GKE) and reduce development effort when deploying new images using the kubectl builder for Cloud Build in their CI/CD pipelines?
A
Designate a separate step in Cloud Build to obtain service account credentials and provide these to kubectl.
B
Include the Container Developer role for Cloud Build in the cloudbuild.yaml file.
C
Assign the Container Developer role to the Cloud Build service account.
D
Create a new service account with the Container Developer role and use it to run Cloud Build.
No comments yet.