exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 94 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 94
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You are the on-call Site Reliability Engineer for a microservice that is deployed to a Google Kubernetes Engine (GKE) Autopilot cluster. Your company runs an online store that publishes order messages to Pub/Sub, and a microservice receives these messages and updates stock information in the warehousing system. A sales event caused an increase in orders, and the stock information is not being updated quickly enough. This is causing a large number of orders to be accepted for products that are out of stock. You check the metrics for the microservice and compare them to typical levels:



You need to ensure that the warehouse system accurately reflects product inventory at the time orders are placed and minimize the impact on customers. What should you do?

  • A. Decrease the acknowledgment deadline on the subscription.
  • B. Add a virtual queue to the online store that allows typical traffic levels.
  • C. Increase the number of Pod replicas.
  • D. Increase the Pod CPU and memory limits.
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
activist
Highly Voted 1 year ago
Selected Answer: C
Agree with C as answer.
upvoted 6 times
ABZ10
1 year ago
How does increasing the pod replica help? The pod memory and cpu have barely gone up. Shouldn't it be B?
upvoted 1 times
YushiSato
1 year ago
The increase in the number of undelivered messages indicates that the microservice is not fully processing the messages. It is believed that the number of messages that can be processed can be increased by increasing the number of pods.
upvoted 4 times
...
...
...
piyu1515
Most Recent 8 months, 4 weeks ago
Given the scenario where a sales event has caused an increase in orders and the stock information is not being updated quickly enough, leading to a large number of orders being accepted for out-of-stock products, the most appropriate action to ensure that the warehouse system accurately reflects product inventory at the time of order placement and minimize the impact on customers would be: C. Increase the number of Pod replicas. Increasing the number of Pod replicas can help scale out the microservice to handle the increased load efficiently. This will allow the microservice to process the order messages and update the stock information in the warehousing system more quickly, reducing the likelihood of accepting orders for out-of-stock products. This approach addresses the issue at its root by ensuring that there are enough resources available to handle the increased workload effectively.
upvoted 1 times
...
xhilmi
11 months ago
Selected Answer: C
Increasing the number of Pod replicas (Option C) is a suitable solution as it allows the microservice deployed in the Google Kubernetes Engine (GKE) Autopilot cluster to efficiently handle a surge in orders during a sales event. By scaling horizontally, additional instances of the microservice are created, enabling parallel processing of order messages and reducing the backlog. This approach leverages the flexibility and automation of GKE Autopilot, ensuring that the infrastructure dynamically adapts to the increased load, providing a more responsive and scalable solution to minimize the impact on customers and maintain accurate stock information in the warehousing system.
upvoted 1 times
...
filipemotta
11 months ago
Selected Answer: C
Answer C. This action would help accommodate the increased load by parallelizing the work and should be implemented first to mitigate the issue. If after scaling the number of replicas the CPU or memory usage approaches the limits, then considering scaling up the resources (CPU and memory limits) for each Pod might be the next step.
upvoted 1 times
...
Andrei_Z
11 months, 1 week ago
Selected Answer: C
The average acknowledgement latency from Pub/Sub has not significantly increased, which suggests that Pub/Sub is still able to handle the message load effectively. However, the significant increase in the oldest unacknowledged message age and the number of undelivered messages indicates that the pods are not processing the messages quickly enough. Increasing the number of Pod replicas would allow your microservice to process more messages concurrently, reducing the backlog and ensuring that stock information is updated more quickly.
upvoted 1 times
...
PGontijo
1 year ago
B for sure.
upvoted 1 times
Raz0r
10 months, 2 weeks ago
It would work but degrade the user experience and therefore not suitable.
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