BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud Developer Exam - Topic 9 Question 64 Discussion

Posted by Willow on Feb 07, 2023 at 01:42 PM

You are trying to connect to your Google Kubernetes Engine (GKE) cluster using kubectl from Cloud Shell. You have deployed your GKE cluster with a public endpoint. From Cloud Shell, you run the following command:

You notice that the kubectl commands time out without returning an error message. What is the most likely cause of this issue?

Suggested Answer: A

https://cloud.google.com/load-balancing/docs/https/traffic-management-global#traffic_actions_weight-based_traffic_splitting

Deploying a new version of an existing production service generally incurs some risk. Even if your tests pass in staging, you probably don't want to subject 100% of your users to the new version immediately. With traffic management, you can define percentage-based traffic splits across multiple backend services.

For example, you can send 95% of the traffic to the previous version of your service and 5% to the new version of your service. After you've validated that the new production version works as expected, you can gradually shift the percentages until 100% of the traffic reaches the new version of your service. Traffic splitting is typically used for deploying new versions, A/B testing, service migration, and similar processes.

https://cloud.google.com/traffic-director/docs/advanced-traffic-management#weight-based_traffic_splitting_for_safer_deployments

https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on-gke#split_the_traffic_2

https://cloud.google.com/load-balancing/docs/https/traffic-management-global#traffic_actions_weight-based_traffic_splitting


Get Premium Professional Cloud Developer Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
35 comments · newest first
VE
Vernice 1 year ago
A firewall blocking access? That's a new one for me!
BR
Britt 1 year ago
C is unlikely, Cloud Shell should connect fine.
AL
Alex 1 year ago
Wait, could it be A? I thought I had permissions.
ED
Edelmira 1 year ago
Agreed, B makes the most sense here.
SH
Shawnda 1 year ago
I think it's probably B, the IP isn't authorized.
LE
Leonor 1 year ago
I feel like a firewall could definitely be a factor. I recall discussing firewall rules in class, but I can't remember the specifics.
LA
Latricia 1 year ago
I'm a bit confused about the VPC setup. I thought Cloud Shell could access GKE clusters regardless of VPC, but maybe I'm wrong?
IE
Iesha 1 year ago
I think it might be related to the Cloud Shell IP not being authorized. I saw a similar question in practice where that was the problem.
AS
Ashlyn 1 year ago
I remember something about needing the right permissions, but I'm not sure if that's the main issue here.
LU
Luther 1 year ago
Okay, the base DN should be the part of the entry that comes after the "DC=" components, so I think the answer is C.
AN
Annmarie 1 year ago
I feel like "Information and communication" makes the most sense since it directly addresses information flow, but I could be confusing it with something else I studied.
VI
Vincent 1 year ago
Okay, let me think this through. The options mention scalability, transport tunnels, group states, and MPLS vs. GRE. I'll need to make sure I understand the key distinctions between the two technologies.
CH
Chandra 2 years ago
I bet the person who set up this cluster forgot to open the firewall. That's the kind of thing that always trips me up!
RO
Roosevelt 2 years ago
This is a tricky one. Maybe the Cloud Shell is not in the same VPC as the cluster? Sounds like a connectivity problem to me.
IR
Irma 1 year ago
↳ replying to Roosevelt
Maybe check if your user account has the privileges to interact with the cluster using kubectl.
VA
Van 1 year ago
↳ replying to Roosevelt
It could also be that the Cloud Shell external IP address is not part of the authorized networks of the cluster.
IL
Iluminada 2 years ago
↳ replying to Roosevelt
I think the issue might be with the VPC firewall blocking access to the cluster's endpoint.
AL
Alesia 2 years ago
My money's on the user account not having the right privileges. That's a common problem when working with Kubernetes clusters.
TH
Thurman 1 year ago
↳ replying to Alesia
Let's verify the user account settings before trying anything else.
SH
Shalon 1 year ago
↳ replying to Alesia
If the user account doesn't have the right privileges, that would explain the timeout.
ST
Stephaine 1 year ago
↳ replying to Alesia
We should check if the user account has the necessary permissions.
ER
Ernestine 1 year ago
↳ replying to Alesia
I think you're right, it's probably a user account issue.
PA
Pamella 1 year ago
↳ replying to Alesia
True, it's always good to double-check permissions and network settings.
MI
Mignon 1 year ago
↳ replying to Alesia
Could also be a firewall blocking access, that's something to check.
MA
Maryln 2 years ago
↳ replying to Alesia
Yeah, I've run into that before. Make sure your user account has the right roles.
AD
Adrianna 2 years ago
↳ replying to Alesia
I think you're right, it's probably a permissions issue.
ST
Starr 2 years ago
Wait, shouldn't the cluster have a private endpoint if it's deployed with a public endpoint? I'm guessing the firewall is blocking access.
YE
Yen 2 years ago
I believe it could also be because my Cloud Shell external IP address is not part of the authorized networks of the cluster.
NA
Nathan 2 years ago
Hmm, this looks like a networking issue. I wonder if the Cloud Shell's external IP is not authorized to access the cluster's endpoint.
IS
Isabella 2 years ago
↳ replying to Nathan
Good point. It's important to check all these possibilities to troubleshoot the issue.
TR
Tran 2 years ago
↳ replying to Nathan
It's possible. Or maybe my user account doesn't have the privileges to interact with the cluster using kubectl.
LA
Lawrence 2 years ago
↳ replying to Nathan
That could be it. Maybe the VPC firewall is blocking access to the cluster's endpoint.
CH
Cheryl 2 years ago
↳ replying to Nathan
I think the issue might be that the Cloud Shell's external IP is not part of the authorized networks.
RO
Rodrigo 2 years ago
I agree with Lamar. It's possible that the firewall is causing the timeout.
LA
Lamar 2 years ago
I think the issue might be with the VPC firewall blocking access to the cluster's endpoint.
0/2000 characters

Save Cancel