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

Unlimited Access

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.

Exam Associate Cloud Engineer topic 1 question 5 discussion

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

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.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference:
https://medium.com/google-cloud/kubernetes-engine-kubectl-config-b6270d2b656c

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
zukko78
Highly Voted 3 years, 11 months ago
D is correct
upvoted 45 times
nhusain
2 years, 11 months ago
https://medium.com/google-cloud/kubernetes-engine-kubectl-config-b6270d2b656c explains it well
upvoted 9 times
...
...
poogcp
Highly Voted 3 years, 10 months ago
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
upvoted 25 times
Gurnoor
3 years, 10 months ago
This is wrong get-contexts does not show clusters it only shows contexts.
upvoted 9 times
jilly
3 years, 10 months ago
True . Will give only below results kubectl config get-contexts CURRENT NAME CLUSTER AUTHINFO NAMESPACE * white white dazwilkin black black dazwilkin
upvoted 1 times
...
...
fracila
1 year, 5 months ago
kubectl config get-contexts displays a list of contexts as well as the clusters that use them. Here's a sample output.
upvoted 2 times
...
...
billytran89z
Most Recent 2 months, 1 week ago
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.
upvoted 1 times
...
zesymu
2 months, 3 weeks ago
Selected Answer: D
D is right answer! Get Up-to-date: https://www.pinterest.com/pin/937522847419093171
upvoted 1 times
...
nobuocom
3 months, 1 week ago
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.
upvoted 2 times
...
Vijay9032
3 months, 2 weeks ago
Selected Answer: C
C is the right answer
upvoted 1 times
...
Ri_s_hi_123
4 months ago
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.
upvoted 1 times
...
MiscoMove
4 months, 1 week ago
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?
upvoted 1 times
...
MiscoMove
4 months, 2 weeks ago
Selected Answer: D
D should be correct!
upvoted 1 times
...
BAofBK
5 months, 3 weeks ago
The correct answer is C
upvoted 1 times
...
Evan7557
6 months, 2 weeks ago
D is Answer
upvoted 1 times
...
VanitaGinoya
7 months ago
if any one have all questions PDF then can you please send me on [email protected]
upvoted 2 times
...
YourCloudGuru
7 months ago
Selected Answer: C
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.
upvoted 1 times
...
CarlosMarin
7 months, 3 weeks ago
Selected Answer: C
I think is C, due to "using the fewest possible steps". In the D option we have 2 steps. Both C and D are valid, but C is shorter.
upvoted 3 times
...
Mogamat
9 months ago
Answe C
upvoted 1 times
...
Raikar123
1 year ago
if anyone need full qtn pdf ping me 2 [email protected]
upvoted 9 times
Viveg
8 months, 3 weeks ago
Hello Yashwanth, could you please send me the pdf to [email protected]
upvoted 1 times
...
presi
10 months, 3 weeks ago
Hi Raikar ,please send me the pdf to [email protected] thanks in advance
upvoted 1 times
...
Karthik_s_prof
1 year ago
Hi Raikar123 , can you please send me the pdf to [email protected]
upvoted 1 times
...
awa_arc
10 months, 2 weeks ago
Hello Raikar. Please send me the pdf to [email protected] . Thanks in advance...
upvoted 1 times
...
...
kavithaprasanth
1 year, 1 month ago
Completed the exam of 17 Mar 2023. All questions were from this site. Thank you...
upvoted 6 times
dnur
1 year, 1 month ago
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!
upvoted 1 times
...
Bro1
1 year, 1 month ago
Hii Congratulations, if you have questions from this site in pdf format, can you please share me to '[email protected]' .plz
upvoted 1 times
...
dhanu318
1 year, 1 month ago
hey congratulations , if you have all questions from this site in pdf or document format please send me to [email protected] . thanks in advance
upvoted 1 times
...
Amrita_2601
1 year ago
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.
upvoted 1 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 ...