Google Cloud Professional Data Engineer — Question 7

You work for a car manufacturer and have set up a data pipeline using Google Cloud Pub/Sub to capture anomalous sensor events. You are using a push subscription in Cloud Pub/Sub that calls a custom HTTPS endpoint that you have created to take action of these anomalous events as they occur. Your custom
HTTPS endpoint keeps getting an inordinate amount of duplicate messages. What is the most likely cause of these duplicate messages?

Answer options

Correct answer: D

Explanation

The correct answer is D because if your custom endpoint does not acknowledge messages within the specified acknowledgement deadline, Cloud Pub/Sub will resend those messages, resulting in duplicates. The other options do not directly cause message duplication; they may affect performance or security but not the acknowledgement process.