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

Exam Professional Data Engineer All Questions

View all questions & answers for the Professional Data Engineer exam

Exam Professional Data Engineer topic 1 question 109 discussion

Actual exam question from Google's Professional Data Engineer
Question #: 109
Topic #: 1
[All Professional Data Engineer Questions]

You have Cloud Functions written in Node.js that pull messages from Cloud Pub/Sub and send the data to BigQuery. You observe that the message processing rate on the Pub/Sub topic is orders of magnitude higher than anticipated, but there is no error logged in Cloud Logging. What are the two most likely causes of this problem? (Choose two.)

  • A. Publisher throughput quota is too small.
  • B. Total outstanding messages exceed the 10-MB maximum.
  • C. Error handling in the subscriber code is not handling run-time errors properly.
  • D. The subscriber code cannot keep up with the messages.
  • E. The subscriber code does not acknowledge the messages that it pulls.
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
TNT87
Highly Voted 2 years, 2 months ago
Answer C E By not acknowleding the pulled message, this result in it be putted back in Cloud Pub/Sub, meaning the messages accumulate instead of being consumed and removed from Pub/Sub. The same thing can happen ig the subscriber maintains the lease on the message it receives in case of an error. This reduces the overall rate of processing because messages get stuck on the first subscriber. Also, errors in Cloud Function do not show up in Stackdriver Log Viewer if they are not correctly handled.
upvoted 12 times
...
SamuelTsch
Most Recent 1 month ago
Selected Answer: DE
The issue is that the acknowledgment is not sent back to sub properly. D, E should be correct.
upvoted 1 times
...
Preetmehta1234
2 months ago
Selected Answer: DE
D. The subscriber code cannot keep up with the messages. If the processing rate of the subscriber (Cloud Functions) is lower than the incoming message rate, it can lead to a backlog of messages. This would result in higher-than-expected message rates, as messages accumulate while waiting to be processed. E. The subscriber code does not acknowledge the messages that it pulls. If messages are not acknowledged properly, Pub/Sub will keep retrying to deliver them, which can lead to the same messages being sent repeatedly. This could also contribute to the perception that the message processing rate is very high. Both of these issues can lead to unanticipated behavior in your message processing pipeline without generating errors that would be logged in Cloud Logging.
upvoted 1 times
...
JamesKarianis
3 months, 2 weeks ago
Selected Answer: CD
The code in the CF can't keep up with the amount of messages, thus C D is a better fit
upvoted 1 times
...
mialll
1 year, 7 months ago
Selected Answer: DE
Ref chatgpt Option C, "Error handling in the subscriber code is not handling run-time errors properly," suggests that the subscriber code may not be correctly handling errors that occur during message processing. If the subscriber code encounters an error that it cannot handle, such as a syntax error or a network issue, it may stop processing messages, leading to a slowdown in message processing. However, the lack of error logs in Cloud Logging suggests that there are no errors being logged, which makes it less likely that this is the primary cause of the observed behavior. Additionally, while incorrect error handling could contribute to the issue, it may not be the primary reason why the message processing rate is much higher than anticipated.
upvoted 1 times
GCPete
1 year ago
Chat says about Option C: "it may stop processing messages, leading to a slowdown in message processing" - but is doesn't say there's a slowdown in the question. It says it's increased. I would replace C with D. If the Cloud Function isn't capable of processing messages as quickly as they arrive, the backlog will grow, leading to higher processing rates as the function continuously tries to catch up. This scenario might not generate errors in Cloud Logging if the function is simply falling behind.
upvoted 1 times
...
...
midgoo
1 year, 8 months ago
Selected Answer: CE
C - as no error shown in Cloud Logging Between D & E, both could lead to the problem. I have worked with lot of PubSub issues, most of them are due to the bottleneck at the code where it takes too long to process 1 message and causes backlog. E could lead to backlog too, but it is too obvious and not likely to happen in reality. However, when I ask AI the same question, it said C and E
upvoted 1 times
cetanx
1 year, 5 months ago
C. Error handling in the subscriber (Cloud Functions) code is not handling run-time errors properly. This would mean to have error logs in Cloud Logging as CF by default logs to it.
upvoted 1 times
...
...
musumusu
1 year, 9 months ago
Answer D&E I am not in the favour of C, error handling is a side factor but not the primary cause. First check the configuration access. Does subscriber has enough acknowledge policies (option E) Does sub have ability to keep up the message( enough network, cpu and capable codes) (option D) option C is just a part of option D somewhere showing incapable handling
upvoted 3 times
...
desertlotus1211
1 year, 10 months ago
My question is: 'What is the actual problem?' - That there is no logs in Cloud Logging? - That Pub/Sub is having a problem? - Or there an actual problem? - Is there an actual error? So what is Pub/Sub the message processing rate is high...Does that mean there is a problem? Thoughts?
upvoted 3 times
squishy_fishy
1 year, 3 months ago
Like TNT87 mentioned the message processing rate is high "meaning the messages accumulate instead of being consumed and removed from Pub/Sub."
upvoted 1 times
...
...
AzureDP900
1 year, 10 months ago
C, E seems correct
upvoted 1 times
...
MounicaN
2 years, 2 months ago
D might also be right? Subscriber might not be provisioned enough
upvoted 3 times
...
AWSandeep
2 years, 2 months ago
Selected Answer: CE
C. Error handling in the subscriber code is not handling run-time errors properly. E. The subscriber code does not acknowledge the messages that it pulls.
upvoted 3 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 ...