Google Cloud DevOps Certification Practice Test 2025 – Your All-in-One Guide to Exam Success!

Disable ads (and more) with a premium pass for a one time $4.99 payment

Question: 1 / 200

To authenticate with Google Kubernetes Engine (GKE) while using Cloud Build, what should you do?

Assign the Container Developer role to the Cloud Build service account

To authenticate with Google Kubernetes Engine (GKE) while using Cloud Build, assigning the Container Developer role to the Cloud Build service account is the correct approach. This role provides the necessary permissions for the service account to manage Kubernetes resources, facilitating seamless operations such as deploying applications, updating configurations, and scaling workloads.

The Container Developer role is specifically tailored for tasks that involve interaction with Kubernetes clusters, making it ideal for Cloud Build's operational needs. By enabling this role, you ensure that the Cloud Build service account has the required access without granting unnecessary permissions, thereby adhering to the principle of least privilege.

In contrast, creating a separate step in Cloud Build to authenticate with GKE using kubectl may seem like a functional option but doesn't address the requirement of granting permissions to interact with the cluster itself. The process relies on having the correct roles and permissions set beforehand.

Assigning the Kubernetes Admin role might provide broad access, but it's not optimal for all scenarios, especially in production environments where tighter security is essential. Such a role could expose the cluster to risks by allowing actions that might not be necessary for the specific automation tasks that Cloud Build is intended to perform.

Specifying the Container Developer role in the cloudbuild.yaml file is also incorrect because while configurations in the YAML

Get further explanation with Examzify DeepDiveBeta

Create a separate step in Cloud Build to authenticate with GKE using kubectl

Assign the Kubernetes Admin role instead for broader access

Specify the Container Developer role in the cloudbuild.yaml file

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy