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

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

Your company has a Kubernetes application that pulls messages from Pub/Sub and stores them in Filestore. Because the application is simple, it was deployed as a single pod. The infrastructure team has analyzed Pub/Sub metrics and discovered that the application cannot process the messages in real time. Most of them wait for minutes before being processed. You need to scale the elaboration process that is I/O-intensive. What should you do?

  • A. Use kubectl autoscale deployment APP_NAME --max 6 --min 2 --cpu-percent 50 to configure Kubernetes autoscaling deployment.
  • B. Configure a Kubernetes autoscaling deployment based on the subscription/push_request_latencies metric.
  • C. Use the --enable-autoscaling flag when you create the Kubernetes cluster.
  • D. Configure a Kubernetes autoscaling deployment based on the subscription/num_undelivered_messages metric.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Rzla
Highly Voted 3 years, 2 months ago
Answer is D. num_undelivered_messages metric can indicate if subscribers are keeping up with message submissions. https://cloud.google.com/pubsub/docs/monitoring#monitoring_the_backlog
upvoted 38 times
rishab86
3 years, 2 months ago
D is correct !
upvoted 2 times
...
PATILDXB
2 years ago
The provided link is not relevant to kubernetes, but pertains to cloud pub/sub....the num_undelivered_messages metric is not available for kubernetes autoscaling...C is correct
upvoted 2 times
huuthanhdlv
6 months ago
Kubernetes allow autoscaling based on external metrics
upvoted 1 times
...
...
GopeshSahu
1 year, 10 months ago
https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics#pubsub
upvoted 4 times
...
...
aut0pil0t
Highly Voted 2 years, 2 months ago
Selected Answer: D
Direct answer - D https://cloud.google.com/kubernetes-engine/docs/samples/container-pubsub-horizontal-pod-autoscaler apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: name: pubsub spec: minReplicas: 1 maxReplicas: 5 metrics: - external: metric: name: pubsub.googleapis.com|subscription|num_undelivered_messages selector: matchLabels: resource.labels.subscription_id: echo-read target: type: AverageValue averageValue: 2 type: External scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: pubsub
upvoted 22 times
...
awsgcparch
Most Recent 4 months ago
Selected Answer: D
Subscription Metric: Scaling based on the subscription/num_undelivered_messages metric directly ties the scaling behavior to the number of unprocessed messages in Pub/Sub. This ensures that your application scales out when there are more messages to process and scales in when the queue is short. Relevant Metric: This metric is relevant for an I/O-intensive application that processes messages from Pub/Sub, ensuring that the scaling is directly responsive to the message processing demand.
upvoted 1 times
...
mesodan
8 months, 3 weeks ago
Selected Answer: D
D is the correct answer: subscription/num_undelivered_messages directly indicates the number of messages waiting to be processed, making it a perfect indicator of the workload on the application.
upvoted 1 times
...
ductrinh
1 year, 2 months ago
https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics#pubsub here . so this is D
upvoted 1 times
...
RaviRS
1 year, 2 months ago
Option C (--enable-autoscaling flag for the entire cluster): Enabling autoscaling at the cluster level doesn't provide fine-grained control over scaling individual pods or deployments based on specific workload metrics.
upvoted 1 times
...
Zahasan
1 year, 2 months ago
Can someone tell that these answers are right like people voted D but answer is C.
upvoted 2 times
...
sampon279
1 year, 5 months ago
Answer D
upvoted 2 times
...
BiddlyBdoyng
1 year, 5 months ago
B & C refer to using auto scaler with custom metrics but "Cluster autoscaler makes these scaling decisions based on the resource requests (rather than actual resource utilization) of Pods running on that node pool's nodes. " A makes no sense as it defines a min and max that we don't know D seems like part of the solution so D.
upvoted 1 times
...
natpilot
1 year, 7 months ago
is D - https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics#pubsub
upvoted 1 times
...
WFCheong
1 year, 10 months ago
Selected Answer: B
I vot for B. Configure a Kubernetes autoscaling deployment based on the subscription/push_request_latencies metric. as the metric should be based on latency instead of num_undelivered_messages metric in D.
upvoted 2 times
gcppandit
1 year, 10 months ago
The problems says PULL request and B is related to PUSH request. I do not think it is related.
upvoted 4 times
...
...
surajkrishnamurthy
1 year, 11 months ago
Selected Answer: D
D is the correct answer
upvoted 1 times
...
ale_brd_111
1 year, 11 months ago
Selected Answer: D
D is the correct one
upvoted 1 times
...
megumin
2 years ago
Selected Answer: D
D is ok
upvoted 1 times
...
newuser111
2 years ago
Selected Answer: D
D https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics#pubsub
upvoted 2 times
...
bossdellacert
2 years, 3 months ago
Selected Answer: D
This seems relevant https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics#pubsub even if it uses Deployment + HorizontalPodAutoscaler which is not mentioned in the context of the question/answer
upvoted 2 times
...
tycho
2 years, 3 months ago
I think it wrong for application to be in pod it should be a deployment, and deployment would scale
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 ...