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

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

You have an application deployed in Google Kubernetes Engine (GKE) that reads and processes Pub/Sub messages. Each Pod handles a fixed number of messages per minute. The rate at which messages are published to the Pub/Sub topic varies considerably throughout the day and week, including occasional large batches of messages published at a single moment.

You want to scale your GKE Deployment to be able to process messages in a timely manner. What GKE feature should you use to automatically adapt your workload?

  • A. Vertical Pod Autoscaler in Auto mode
  • B. Vertical Pod Autoscaler in Recommendation mode
  • C. Horizontal Pod Autoscaler based on an external metric
  • D. Horizontal Pod Autoscaler based on resources utilization
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
alpha_canary
2 months, 2 weeks ago
Selected Answer: C
from documentation: "If you need to scale your workload based on the performance of an application or service outside of Kubernetes, you can configure an external metric. For example, you might need to increase the capacity of your application to ingest messages from Pub/Sub if the number of undelivered messages is trending upward." https://cloud.google.com/kubernetes-engine/docs/concepts/custom-and-external-metrics#external-metrics
upvoted 1 times
...
JonathanSJ
5 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
purushi
10 months, 4 weeks ago
Selected Answer: C
I go with C since we need to scale GKE Deployment to be able to process messages in a TIMELY manner. External metrics is more suitable for this.
upvoted 1 times
...
Pime13
1 year, 4 months ago
Selected Answer: C
C: https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics#pubsub
upvoted 2 times
...
omermahgoub
1 year, 5 months ago
Selected Answer: C
Based on the requirement that the application reads and processes Pub/Sub messages, and that the rate at which messages are published to the Pub/Sub topic varies considerably throughout the day and week, including occasional large batches of messages published at a single moment, the best choice would be C: Horizontal Pod Autoscaler based on an external metric. By using an external metric, the Horizontal Pod Autoscaler can monitor the number of messages in the Pub/Sub topic and adjust the number of replicas in the GKE Deployment accordingly. This allows the application to automatically adapt to changes in the rate at which messages are being published, ensuring that the pods are able to process messages in a timely manner. On the other hand, Horizontal Pod Autoscaler based on resources utilization, it would not provide the needed functionality as it bases scaling on resource usage of the pods, not the number of messages in the Pub/Sub topic
upvoted 1 times
...
telp
1 year, 5 months ago
Selected Answer: C
The answer is C for me. The need to scale is from the number of messages in the pub/sub. It's an external metrics that can be reported from pub/sub or cloud monitoring. So the scale will be better to use this metrics to add X pod (each pod is limited on the number of message per minutes so the system now how much pod you need to scale to answer at X new messages.
upvoted 1 times
...
TNT87
1 year, 6 months ago
Selected Answer: C
Custom and external metrics allow workloads to adapt to conditions besides the workload itself. Consider an application that pulls tasks from a queue and completes them. An external metric is reported from an application or service not running on your cluster, but whose performance impacts your Kubernetes application. For information, the metric could be reported from Cloud Monitoring or Pub/Sub. D isn't the answer, before selecting an answer , please do a thorough research and understand concepts and the key words in a question, D cant be the answer in this case. https://cloud.google.com/kubernetes-engine/docs/concepts/custom-and-external-metrics
upvoted 4 times
...
[Removed]
1 year, 6 months ago
The answer is C. Each pod will handle a fixed number of messages, fixed being the key word here. Now let's say this fixed number is "1000" messages per minute. Do you think a 1000 messages in a minute will cause the pod autoscaler to kick in based on resource utilisation? We need to scale using external metrics here. When Pod 1 is handling the maximum of "fixed number amount" messages, we need to spin up pod 2 etc...
upvoted 2 times
...
sharath25
1 year, 6 months ago
Selected Answer: D
option D
upvoted 1 times
...
zellck
1 year, 6 months ago
Selected Answer: D
D is the answer. https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
upvoted 1 times
TNT87
1 year, 6 months ago
Wrong, answer C https://cloud.google.com/kubernetes-engine/docs/concepts/custom-and-external-metrics, the key words are external metrics and pub/sub, read the requirements of the question
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago