Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
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?
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.
C is correct , Use kubectl config get-contexts to review the output : shows the clusters and the configurations and based on the output we can identify the inactive configurations
C. Use kubectl config get-contexts to review the output.
Option C, using kubectl config get-contexts, allows you to directly see the available contexts, including those from inactive configurations, and review the Kubernetes Engine clusters associated with them. This approach provides the necessary information efficiently.
Option D (Use kubectl config use-context and kubectl config view to review the output) involves changing the active context and viewing the Kubernetes configuration but may involve unnecessary steps.
A.
If we look at B:
https://cloud.google.com/sdk/gcloud/reference/config/list - gcloud config list will show name of Kubernetes cluster used by default when working with a profile.
https://cloud.google.com/sdk/gcloud/reference/config/configurations/activate - to switch to another profile you need to run gcloud config configurations activate.
However, knowing the name of the gcloud profile, we can directly query it using "gcloud config configurations describe <PROFILE NAME> --all", while "gcloud config list" has no option for profile name as argument.
If we look at C:
"kubectl config get-contexts" will show contexts configured for Kubectl tool, without considering the multiple profiles on gcloud.
If we look at D:
"kubectl config view" output of this command the same in every selected context, except for the line of "current-context". One command more than in C and it is still not considering the Gcloud profile configurations.
The answer cannot be C or D because they are related to kubectl commands, not gcloud commands.
Option C suggests using the kubectl config get-contexts command to review the Kubernetes context, which is not related to gcloud configurations.
Option D suggests using the kubectl config use-context and kubectl config view commands to review the Kubernetes context, which again is not related to gcloud configurations.
Therefore, the correct answer is B, which suggests using gcloud commands to activate the desired configuration and then list the details of the activated configuration, including the configured Kubernetes Engine cluster.
Option A - gcloud config configurations describe <INACTIVE_CONFIGURATION>
Seems to be correct as this command directly retrieves the details of the specified inactive configuration, including its Kubernetes Engine cluster configuration, in a single step. It avoids activating the inactive configuration or switching contexts, making it the most efficient and accurate approach.
Option D - kubectl config use-context and kubectl config view
Also correct but compared to the single command in option A, option D involves two separate commands and potentially an additional step to identify the correct context name for the inactive configuration.
Which one to chose? I think A right?
The correct answer is C. Use kubectl config get-contexts to review the output.
(awesome-wares-392903)$ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
The `kubectl config get-contexts` command lists all of the available contexts, including both active and inactive contexts. To review the configured Kubernetes Engine cluster of an inactive configuration, you can use this command to list all of the contexts, and then identify the inactive context that you want to review.
The other options are not as good. D is the closest one but it requires an additional step.
Hi! Were you able to get all questions from this website? If you have them, can you please send them to this address: [email protected] Many thanks in advance!
Hello, Many congratulations, Have u practiced only questions till 93, or u have practiced a complete set of questions? As not able to access questions after 93.
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.
zukko78
Highly Voted 3 years, 11 months agonhusain
2 years, 11 months agopoogcp
Highly Voted 3 years, 10 months agoGurnoor
3 years, 10 months agojilly
3 years, 10 months agofracila
1 year, 5 months agobillytran89z
Most Recent 2 months, 1 week agozesymu
2 months, 3 weeks agonobuocom
3 months, 1 week agoVijay9032
3 months, 2 weeks agoRi_s_hi_123
4 months agoMiscoMove
4 months, 1 week agoMiscoMove
4 months, 2 weeks agoBAofBK
5 months, 3 weeks agoEvan7557
6 months, 2 weeks agoVanitaGinoya
7 months agoYourCloudGuru
7 months agoCarlosMarin
7 months, 3 weeks agoMogamat
9 months agoRaikar123
1 year agoViveg
8 months, 3 weeks agopresi
10 months, 3 weeks agoKarthik_s_prof
1 year agoawa_arc
10 months, 2 weeks agokavithaprasanth
1 year, 1 month agodnur
1 year, 1 month agoBro1
1 year, 1 month agodhanu318
1 year, 1 month agoAmrita_2601
1 year ago