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

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 258 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 258
Topic #: 1
[All Professional Cloud Developer Questions]

You are a developer at a large corporation. You manage three Google Kubernetes Engine clusters on Google Cloud. Your team’s developers need to switch from one cluster to another regularly without losing access to their preferred development tools. You want to configure access to these multiple clusters while following Google-recommended best practices. What should you do?

  • A. Ask the developers to use Cloud Shell and run gcloud container clusters get-credential to switch to another cluster.
  • B. In a configuration file, define the clusters, users, and contexts. Share the file with the developers and ask them to use kubect1 contig to add cluster, user, and context details.
  • C. Ask the developers to install the gcloud CLI on their workstation and run gcloud container clusters get-credentials to switch to another cluster.
  • D. Ask the developers to open three terminals on their workstation and use kubect1 config to configure access to each cluster.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
SahandJ
3 weeks, 4 days ago
Selected Answer: C
Sharing a file is error-prone. Much better to use gcloud command to get the credentials than sharing a file (that could also be a security problem)
upvoted 1 times
...
anshad666
1 month, 1 week ago
Selected Answer: C
C. Ask the developers to install the gcloud CLI on their workstation and run gcloud container clusters get-credentials to switch to another cluster. This approach allows developers to easily switch between clusters while maintaining access to their preferred development tools. The gcloud container clusters get-credentials command updates the kubeconfig file, enabling seamless access to the specified cluster. It is a widely used method that aligns with best practices for managing Kubernetes contexts and simplifies the workflow for developers.
upvoted 1 times
...
mrgarfield
2 months, 2 weeks ago
Selected Answer: C
The other options are incorrect because: A: Using Cloud Shell is not a scalable solution for multiple developers who need to switch between clusters regularly. B: While defining clusters, users, and contexts in a configuration file can be helpful, it's not the most efficient or secure way to manage access to multiple clusters. Sharing the configuration file with developers can also pose security risks. D: Opening three terminals for each cluster is cumbersome and not recommended. It's better to use a single tool like the gcloud CLI to manage multiple clusters.
upvoted 1 times
...
fbatag
4 months, 2 weeks ago
Selected Answer: C
We are talking about an easy way and GKE. Not K8s self-managed. A question detail is that users don't want to change the tolls they use. So C is the right.
upvoted 1 times
...
wanrltw
11 months, 1 week ago
Selected Answer: B
B 100% https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
upvoted 2 times
...
wanrltw
11 months, 1 week ago
Selected Answer: D
D 100% https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
upvoted 1 times
wanrltw
11 months, 1 week ago
Typo - B*
upvoted 1 times
...
...
__rajan__
1 year, 2 months ago
Selected Answer: C
This approach allows developers to switch between different Google Kubernetes Engine clusters directly from their local workstation1. The gcloud container clusters get-credentials command configures kubectl with the credentials of the specified cluster1, making it easy for developers to switch contexts and interact with different clusters.
upvoted 3 times
...
purushi
1 year, 3 months ago
Selected Answer: B
https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/ Command used: kubectl config use-context
upvoted 3 times
...
phil_thain
1 year, 5 months ago
Selected Answer: B
https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
upvoted 1 times
...
Writer
1 year, 7 months ago
Selected Answer: B
Option B is the best solution because it is secure, convenient, and time-efficient. By using a configuration file, you can define the clusters, users, and contexts that you want to use. You can then share the file with the developers, who can use it to add the cluster, user, and context details to their kubeconfig file. Once the developers have added the cluster, user, and context details to their kubeconfig file, they can switch to another cluster by using the following command: kubectl config use <context-name>
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 ...