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 Professional Cloud Architect topic 1 question 93 discussion

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

A development team at your company has created a dockerized HTTPS web application. You need to deploy the application on Google Kubernetes Engine (GKE) and make sure that the application scales automatically.
How should you deploy to GKE?

  • A. Use the Horizontal Pod Autoscaler and enable cluster autoscaling. Use an Ingress resource to load-balance the HTTPS traffic.
  • B. Use the Horizontal Pod Autoscaler and enable cluster autoscaling on the Kubernetes cluster. Use a Service resource of type LoadBalancer to load-balance the HTTPS traffic.
  • C. Enable autoscaling on the Compute Engine instance group. Use an Ingress resource to load-balance the HTTPS traffic.
  • D. Enable autoscaling on the Compute Engine instance group. Use a Service resource of type LoadBalancer to load-balance the HTTPS traffic.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Reference:
https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-autoscaler

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
crypt0
Highly Voted 4 years, 6 months ago
Why not using Ingress? (A)
upvoted 27 times
techalik
3 years, 4 months ago
I think A is OK:
upvoted 2 times
...
nitinz
3 years, 1 month ago
It is A, K8s best way to LB is Ingress.
upvoted 5 times
...
Smart
4 years, 2 months ago
"Ingress is a Kubernetes resource that encapsulates a collection of rules and configuration for routing external HTTP(S) traffic to internal services. On GKE, Ingress is implemented using Cloud Load Balancing. When you create an Ingress in your cluster, GKE creates an HTTP(S) load balancer and configures it to route traffic to your application." Are you exposing multiple services through single IP address? Hence, do you need routing your traffic? Correct answer is B.
upvoted 38 times
Smart
4 years, 2 months ago
My bad, as stated by other, Service doesn't support L7 load balancing. Hence, need to setup ingress resource. Correct answer is A.
upvoted 43 times
tartar
3 years, 8 months ago
B is ok. https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
upvoted 9 times
GopiSivanathan
3 years, 6 months ago
service resource does a NLB using IP address, however, Ingress does HTTP(S) Load balancer. A should be an answer.
upvoted 8 times
...
...
...
...
...
jcmoranp
Highly Voted 4 years, 6 months ago
Name is service resource, it's B: https://cloud.google.com/kubernetes-engine/docs/concepts/service?hl=es-419
upvoted 13 times
...
Pime13
Most Recent 2 months, 3 weeks ago
Selected Answer: A
service loadBalancer: https://cloud.google.com/kubernetes-engine/docs/concepts/service-load-balancer This page provides a general overview of how Google Kubernetes Engine (GKE) creates and manages Google Cloud load balancers when you apply a Kubernetes LoadBalancer Services manifest. It describes the different types of load balancers and how settings like the externalTrafficPolicy and GKE subsetting for L4 internal load balancers determine how the load balancers are configured. -> l4 tcp/udp not https Ingress: https://cloud.google.com/kubernetes-engine/docs/concepts/ingress This page provides a general overview of what Ingress for external Application Load Balancers is and how it works. Google Kubernetes Engine (GKE) provides a built-in and managed Ingress controller called GKE Ingress. This controller implements Ingress resources as Google Cloud load balancers for HTTP(S) workloads in GKE. -S http(s)
upvoted 3 times
...
gun123
3 months, 2 weeks ago
Selected Answer: B
B is correct
upvoted 1 times
...
bandegg
3 months, 3 weeks ago
Selected Answer: A
I'm assuming B is the suggested answer because a the question doesn't state that the application should be available externally. Services allow exposing resources internally and to load balancers. However, it should be A, as the assumption would be a an external web application. https://cloud.google.com/kubernetes-engine/docs/concepts/service
upvoted 2 times
...
MahAli
4 months, 2 weeks ago
Selected Answer: B
Most if the labs in Google boost skills discuss how to expose the deployment using a load balancer.
upvoted 2 times
...
AwsSuperTrooper
5 months ago
Selected Answer: A
https://cloud.google.com/kubernetes-engine/docs/concepts/ingress "This page provides a general overview of what Ingress for external Application Load Balancers is and how it works. Google Kubernetes Engine (GKE) provides a built-in and managed Ingress controller called GKE Ingress. This controller implements Ingress resources as Google Cloud load balancers for HTTP(S) workloads in GKE."
upvoted 2 times
...
thewalker
5 months, 2 weeks ago
https://cloud.google.com/kubernetes-engine/docs/concepts/ingress As there is no mention about the type of the traffic, Internal or external - Going with A - Ingress.
upvoted 1 times
...
Arun_m_123
6 months, 2 weeks ago
Selected Answer: B
Option-C and D are straightforwardly wrong Between A and B : B is the correct answer, because it makes use of loadbalancing the ingress in K8S native style. That is the reason why cluster scaling is also done. This is how it should External Load Balancing Ingress --> K8S Service of type LoadBalancer --> pods that can autoscale Directly allowing external loadbalcing ingress to autoscaled Pod, doesn't makes sense to use GKE
upvoted 1 times
...
someone2011
6 months, 3 weeks ago
Ingress is Https while Service is TCP/UDP. https://cloud.google.com/load-balancing/docs/choosing-load-balancer https://cloud.google.com/kubernetes-engine/docs/concepts/service-networking
upvoted 2 times
...
heretolearnazure
8 months ago
B is correct
upvoted 2 times
...
willyf1
8 months, 1 week ago
Selected Answer: A
A Is the best choice
upvoted 1 times
...
rusll
8 months, 2 weeks ago
Selected Answer: A
Bowth options A and B can satisfy the requirements, they are both based on a load balancer. Option A is more adapted and more flexible as later on, you can set up routing rules to expose more then just one service using the same loadbalancer which can help reduce cost, you don't really need that flexibity for this case, but since it's gonna cost the same thing for now (const of a loadbalancer). Its better to go with the ingress option.
upvoted 1 times
...
maxter55
8 months, 2 weeks ago
Selected Answer: B
I'm going to go with B just because horizontal scaling has a ceiling and you do need to enable cluster scaling if you actually need a new node. However, I have no idea if this is the right answer. I also favor on using a load balancer vs an ingress resource as the GKE quickstart talks about it and does not mention ingress resource at all.
upvoted 1 times
...
ManishKS
8 months, 4 weeks ago
Option A is incorrect because although it mentions using the Horizontal Pod Autoscaler and enabling cluster autoscaling, it doesn't specify how to expose the application to the internet using a LoadBalancer. Correct Answer is B
upvoted 1 times
...
ALIZABAL
9 months ago
Men, this question, many people saying A. Ingress is not a load balancer, ingress in kubernetes only route the data to a service https://kubernetes.io/docs/concepts/services-networking/ingress/ . A is incorrect because says, use ingress to loadbalance, that is not correct. B is correct.
upvoted 2 times
...
Pau123
9 months, 1 week ago
Selected Answer: A
HTTPS -> ingress resource. The answer is A. https://cloud.google.com/kubernetes-engine/docs/concepts/service-networking
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 ...