🔥 40% Off Crucial Exams Memberships — Deal ends today!

3 minutes, 38 seconds remaining!

GCP Associate Cloud Engineer Practice Question

You are preparing a new non-interactive build worker VM that will deploy application images to several Google Kubernetes Engine (GKE) clusters in different projects. You have already installed the Google Cloud SDK on the VM. The build script must:

  • Call kubectl commands whose version stays aligned with the Cloud SDK installation.
  • Authenticate with a dedicated service account rather than a human user.
  • Populate kubeconfig automatically for each target cluster at runtime. Which installation and configuration steps will satisfy all of these requirements?
  • Download the kubectl binary release that matches the cluster version and copy it to /usr/local/bin; use gcloud config set project and then manually add the cluster endpoint to kubeconfig.

  • Install kubectl with apt from the Kubernetes upstream repository and manually create a kubeconfig file that stores the cluster's basic-auth user name and password.

  • Skip kubectl installation on the VM and execute the build script inside Cloud Shell, which already contains kubectl and cluster credentials.

  • Run gcloud components install kubectl, authenticate the VM with gcloud auth activate-service-account, and call gcloud container clusters get-credentials for each cluster before running kubectl commands.

GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot