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

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

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: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
crypt0
Highly Voted 5 years, 1 month ago
Why not using Ingress? (A)
upvoted 28 times
techalik
3 years, 11 months ago
I think A is OK:
upvoted 2 times
...
nitinz
3 years, 8 months ago
It is A, K8s best way to LB is Ingress.
upvoted 5 times
...
Smart
4 years, 9 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 41 times
Smart
4 years, 9 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 46 times
tartar
4 years, 3 months ago
B is ok. https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
upvoted 9 times
GopiSivanathan
4 years, 1 month 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 5 years ago
Name is service resource, it's B: https://cloud.google.com/kubernetes-engine/docs/concepts/service?hl=es-419
upvoted 13 times
...
nareshthumma
Most Recent 1 month ago
Answer A
upvoted 1 times
...
mstaicu
4 months, 3 weeks ago
Selected Answer: A
A and B both create under the hood a Service of type LoadBalancer with external IP address. However, when it comes to http(s) traffic an ingress is the way to go because of ssl termination and for the routing options.
upvoted 2 times
...
huuthanhdlv
6 months ago
Selected Answer: A
C & D is clearly incorrect. B is incorrect because of this: "service of type LoadBalancer to load-balance the HTTPS traffic." GKE Service Load Balancer is L4 Network or Internal Load Balancer, does not support HTTPS traffic. Thus only A is correct.
upvoted 3 times
...
hitmax87
6 months, 1 week ago
Selected Answer: A
The clue is HTTPS traffic. You need L7 stack. It can be achieved only through ingress controller.
upvoted 3 times
...
nanasenishino
6 months, 2 weeks ago
B A. Ingress resource: While Ingress can be used for external load balancing, it often requires additional configuration for HTTPS termination (offloading SSL from your application containers). Additionally, LoadBalancer services typically offer a simpler setup for basic external load balancing without HTTPS termination concerns. C & D. Compute Engine Instance Group Autoscaling: GKE manages its own nodes separate from Compute Engine instances. Autoscaling on a Compute Engine instance group wouldn't manage the Kubernetes pods or nodes effectively in this scenario.
upvoted 1 times
...
Pime13
9 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
10 months, 2 weeks ago
Selected Answer: B
B is correct
upvoted 1 times
...
bandegg
10 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
11 months, 3 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
12 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
1 year 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
1 year, 1 month 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
1 year, 1 month 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
1 year, 3 months ago
B is correct
upvoted 2 times
...
willyf1
1 year, 3 months ago
Selected Answer: A
A Is the best choice
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 ...