Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 111 of 375

Associate Cloud Engineer. Free level, Google Cloud. Free question with the correct answer and a full explanation.

Google Associate Cloud Engineer Question 111

Select 3Google Cloud Platform

You are an Associate Cloud Engineer tasked with managing Kubernetes clusters on Google Kubernetes Engine (GKE). To interact with your GKE clusters, you need to install and configure kubectl on your local machine. Which of the following steps must you follow to correctly configure kubectl to manage a GKE cluster?

  1. A

    Download and install the kubectl binary from the Kubernetes website.

  2. B

    Use gcloud container clusters get-credentials to configure kubectl to connect to your GKE cluster.

  3. C

    Grant necessary IAM permissions to your Google Cloud project to allow kubectl access.

  4. D

    Set the Kubernetes context manually in the kubeconfig file.

  5. E

    Enable the Kubernetes Engine API in your Google Cloud project.

Show answer and explanation

Correct answers: A, B, E

Explanation

To manage GKE clusters using kubectl, you need to have kubectl installed, configure it using gcloud container clusters get-credentials, and ensure that the Kubernetes Engine API is enabled in your Google Cloud project. This setup ensures that kubectl can authenticate with and manage your GKE clusters effectively. While IAM permissions are required for API access, they are not part of the local kubectl setup process.

  • A. Correct.

    Downloading and installing the kubectl binary is necessary to use it for managing Kubernetes clusters.

  • B. Correct.

    Using gcloud container clusters get-credentials is the recommended way to configure kubectl for GKE clusters, as it sets up the necessary authentication and configures the kubeconfig file automatically.

  • C. Incorrect.

    While IAM permissions are important, this step is not directly related to the installation or initial configuration of kubectl itself.

  • D. Incorrect.

    Setting the Kubernetes context manually is unnecessary when using GKE, as gcloud container clusters get-credentials handles context configuration.

  • E. Correct.

    Enabling the Kubernetes Engine API is crucial for managing Kubernetes clusters on GCP, as it allows you to interact with the GKE service.

Timed practice exam

Take a Google Associate Cloud Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam