Bird
0
0

What is the expected behavior if a push subscription's endpoint returns a non-2xx HTTP status code?

medium📝 service behavior Q5 of 15
GCP - Cloud Pub/Sub
What is the expected behavior if a push subscription's endpoint returns a non-2xx HTTP status code?
AThe message is retried until a successful response is received.
BThe message is considered acknowledged and removed.
CThe message is discarded immediately.
DThe message is sent to a dead-letter topic instantly.
Step-by-Step Solution
Solution:
  1. Step 1: Understand push subscription retry behavior

    If the endpoint returns a non-2xx status, Pub/Sub retries delivery until success or expiration.
  2. Step 2: Check other options

    Messages are not acknowledged or discarded on failure; dead-lettering requires explicit config.
  3. Final Answer:

    The message is retried until a successful response is received. -> Option A
  4. Quick Check:

    Push retry on failure = True [OK]
Quick Trick: Push retries on non-2xx responses [OK]
Common Mistakes:
  • Assuming message is acknowledged on failure
  • Thinking message is discarded immediately
  • Confusing dead-letter behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes