nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #226

PROFESSIONAL-CLOUD-DEVELOPER Question #226: Real Exam Question with Answer & Explanation

The correct answer is B: Your Cloud Shell external IP address is not part of the authorized networks of the cluster.. https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#cloud_shell If you want to use Cloud Shell to access the cluster, you must add the public IP address of your Cloud Shell to the cluster's list of authorized networks.

Securing Kubernetes Engine Deployments

Question

You are trying to connect to your Google Kubernetes Engine (GKE) cluster using kubectl from Cloud Shell. You have deployed your GKE cluster with a public endpoint. From Cloud Shell, you run the following command: You notice that the kubectl commands time out without returning an error message. What is the most likely cause of this issue?

Options

  • AYour user account does not have privileges to interact with the cluster using kubectl.
  • BYour Cloud Shell external IP address is not part of the authorized networks of the cluster.
  • CThe Cloud Shell is not part of the same VPC as the GKE cluster.
  • DA VPC firewall is blocking access to the cluster's endpoint.

Explanation

https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#cloud_shell If you want to use Cloud Shell to access the cluster, you must add the public IP address of your Cloud Shell to the cluster's list of authorized networks.

Topics

#GKE Networking#Authorized Networks#Kubernetes API Access#Cloud Shell

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions