Google Cloud Associate Cloud Engineer — Question 44
You are using multiple configurations for gcloud. You want to review the configured Kubernetes Engine cluster of an inactive configuration using the fewest possible steps. What should you do?
Answer options
- A. Use gcloud config configurations describe to review the output.
- B. Use gcloud config configurations activate and gcloud config list to review the output.
- C. Use kubectl config get-contexts to review the output.
- D. Use kubectl config use-context and kubectl config view to review the output.
Correct answer: A
Explanation
The correct answer is A because using gcloud config configurations describe allows you to review the details of an inactive configuration directly without switching contexts. Options B, C, and D require additional steps or are not specific to inactive configurations, making them less efficient for this task.