Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 241 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 241
Topic #: 1
[All Associate Cloud Engineer Questions]

You 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?

  • A. gcloud container clusters get-credentials dev-cluster
    kubectl get nodes
  • B. gcloud container clusters update -generate-password dev-cluster kubectl get nodes
  • C. kubectl config set-context dev-cluster
    kubectl cluster-info
  • D. kubectl config set-credentials dev-cluster
    kubectl cluster-info
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
denno22
1 month, 2 weeks ago
Selected Answer: A
gcloud container clusters get-credentials updates a kubeconfig file with appropriate credentials and endpoint information to point kubectl at a specific cluster in Google Kubernetes Engine. https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials
upvoted 1 times
...
joao_01
1 year, 2 months ago
Selected Answer: A
Its the A
upvoted 1 times
...
Captain1212
1 year, 2 months ago
Selected Answer: A
A is the correct answer as it , updated the config file
upvoted 1 times
...
pritampanda1988
1 year, 3 months ago
Selected Answer: A
gcloud container clusters get-credentials updates a kubeconfig file with appropriate credentials and endpoint information to point kubectl at a specific cluster in Google Kubernetes Engine
upvoted 4 times
...
3arle
1 year, 3 months ago
Selected Answer: A
gcloud container clusters get-credentials updates a kubeconfig file with appropriate credentials and endpoint information to point kubectl at a specific cluster in Google Kubernetes Engine
upvoted 3 times
...
qannik
1 year, 3 months ago
Selected Answer: A
The gcloud container clusters get-credentials command sets the Kubernetes context to the specified cluster (in this case, dev-cluster). This ensures that the subsequent kubectl commands will be executed against the dev-cluster. After setting the context, the kubectl get nodes command is used to retrieve the node status for the dev-cluster, showing the list of nodes in the cluster.
upvoted 2 times
...
Speridian
1 year, 3 months ago
It should be A
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...