
Answer-first summary for fast verification
Answer: Your custom endpoint is not acknowledging messages within the acknowledgement deadline.
The correct answer is D. In Google Cloud Pub/Sub, when you use a push subscription, messages are delivered to the specified endpoint (in this case, your custom HTTPS endpoint). The acknowledgment deadline is the time given to the endpoint to acknowledge that it has received and processed the message. If the acknowledgment is not received within this deadline, Pub/Sub may consider the message as unacknowledged and may attempt redelivery, leading to duplicate messages. Therefore, ensuring that your custom HTTPS endpoint acknowledges messages within the deadline is crucial to prevent such duplicates.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are employed by a car manufacturing company where you have established a data pipeline utilizing Google Cloud Pub/Sub to capture anomalous sensor events. This setup involves a push subscription in Cloud Pub/Sub, which triggers a custom HTTPS endpoint that you developed, enabling immediate actions on these anomalous events as they occur. However, your custom HTTPS endpoint is receiving an unusually high number of duplicate messages. What is the most probable cause of these duplicate messages?
A
The message body for the sensor event is too large.
B
Your custom endpoint has an out-of-date SSL certificate.
C
The Cloud Pub/Sub topic has too many messages published to it.
D
Your custom endpoint is not acknowledging messages within the acknowledgement deadline.
No comments yet.