Your application runs on Compute Engine and uses Cloud Pub/Sub to receive messages from a third-party service. Recently, the message delivery latency has increased significantly. The third-party reports no issues on their end. You notice that the Pub/Sub subscription's 'ackDeadlineSeconds' is set to 10. What is the most likely cause of the latency?
Trap 1: The topic's message retention duration is too long.
Retention duration does not affect latency.
Trap 2: The push endpoint is not responding, causing Pub/Sub to retry.
The subscription is pull, not push.
Trap 3: The subscription has an exponential backoff policy that is too…
Exponential backoff would reduce retries.
- A
The ackDeadlineSeconds is too short, causing frequent message redelivery.
Short ack deadline leads to redelivery before processing completes.
- B
The topic's message retention duration is too long.
Why wrong: Retention duration does not affect latency.
- C
The push endpoint is not responding, causing Pub/Sub to retry.
Why wrong: The subscription is pull, not push.
- D
The subscription has an exponential backoff policy that is too aggressive.
Why wrong: Exponential backoff would reduce retries.