Question 240 of 284
Single answerYou used the gcloud container clusters command to create two Google Cloud Kubernetes (GKE) clusters: prod-cluster and dev-cluster.
• prod-cluster is a standard cluster.
• dev-cluster is an auto-pilot cluster.
When you run the kubectl get nodes command, you only see the nodes from prod-cluster. Which commands should you run to check the node status for dev-cluster?
• prod-cluster is a standard cluster.
• dev-cluster is an auto-pilot cluster.
When you run the kubectl get nodes command, you only see the nodes from prod-cluster. Which commands should you run to check the node status for dev-cluster?
✓Agcloud container clusters get-credentials dev-cluster
kubectl get nodes
kubectl get nodes
Bgcloud container clusters update -generate-password dev-cluster kubectl get nodes
Ckubectl config set-context dev-cluster
kubectl cluster-info
kubectl cluster-info
Dkubectl config set-credentials dev-cluster
kubectl cluster-info
kubectl cluster-info
✓
Correct Answer: A
gcloud container clusters get-credentials dev-cluster<br > kubectl get nodes
▥
Explanation
The correct answer is highlighted above. Review the wording carefully, then use the next question to continue building your understanding of Google certification topics.