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 106 discussion

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

Your team develops stateless services that run on Google Kubernetes Engine (GKE). You need to deploy a new service that will only be accessed by other services running in the GKE cluster. The service will need to scale as quickly as possible to respond to changing load. What should you do?

  • A. Use a Vertical Pod Autoscaler to scale the containers, and expose them via a ClusterIP Service.
  • B. Use a Vertical Pod Autoscaler to scale the containers, and expose them via a NodePort Service.
  • C. Use a Horizontal Pod Autoscaler to scale the containers, and expose them via a ClusterIP Service.
  • D. Use a Horizontal Pod Autoscaler to scale the containers, and expose them via a NodePort Service.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
plutonians123
5 months ago
Selected Answer: C
Horizontal Pod Autoscaler (HPA) scales the number of pod replicas based on CPU usage or other select metrics, which is suitable for quick scaling with load changes. ClusterIP is appropriate for services only accessible within the cluster. This combination seems to meet all the requirements.
upvoted 2 times
...
__rajan__
7 months, 1 week ago
Selected Answer: C
HPA automatically scales the number of pods in a deployment based on CPU utilization or other custom metrics. By using HPA, you can ensure that your service scales quickly to respond to changing load while minimizing manual intervention. Exposing the service via a ClusterIP Service allows other services running in the GKE cluster to access it securely without exposing it to the public internet.
upvoted 1 times
...
omermahgoub
1 year, 3 months ago
C. Use a Horizontal Pod Autoscaler to scale the containers, and expose them via a ClusterIP Service. When dealing with services that are only accessed by other services in the same GKE cluster, it's usually best to use a ClusterIP Service. This type of service allows pods to be accessed by other pods within the cluster using their IP address, but doesn't expose them to the outside world.
upvoted 1 times
omermahgoub
1 year, 3 months ago
A Horizontal Pod Autoscaler is used to automatically scale the number of replicas of a deployment based on certain metrics. This is useful for scaling based on CPU utilization, memory usage, or custom metrics. By using a Horizontal Pod Autoscaler, you can respond quickly to changes in load by automatically creating or deleting replicas of your pods, so the service can handle the traffic. You can expose the service via a ClusterIP Service by creating one in Kubernetes and configuring the selector to match the replicas running in your deployment. This allows other services to discover and communicate with your new service by its ClusterIP.
upvoted 1 times
...
...
zellck
1 year, 4 months ago
Selected Answer: C
C is the answer. https://cloud.google.com/kubernetes-engine/docs/concepts/service#services_of_type_clusterip When you create a Service of type ClusterIP, Kubernetes creates a stable IP address that is accessible from nodes in the cluster. https://cloud.google.com/kubernetes-engine/docs/concepts/horizontalpodautoscaler The Horizontal Pod Autoscaler changes the shape of your Kubernetes workload by automatically increasing or decreasing the number of Pods in response to the workload's CPU or memory consumption, or in response to custom metrics reported from within Kubernetes or external metrics from sources outside of your cluster.
upvoted 1 times
...
tomato123
1 year, 8 months ago
Selected Answer: C
C is correct
upvoted 2 times
...
scaenruy
2 years, 3 months ago
I vote C
upvoted 3 times
Blueocean
2 years, 3 months ago
Agree Option C https://cloud.google.com/kubernetes-engine/docs/concepts/service
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago