CS FundamentalsVery hardProduct-company system-design interview

Match the delivery guarantee. P: the consumer acks a message before processing it. Q: the consumer acks only after processing succeeds. R: processing and the record of the processed message id commit in one transaction with a deduplication check. 1. At-least-once. 2. Effectively exactly-once. 3. At-most-once.

  1. A. P-1, Q-3, R-2
  2. B. P-3, Q-2, R-1
  3. C. P-3, Q-1, R-2
  4. D. P-2, Q-1, R-3

Correct answer: C. P-3, Q-1, R-2

Acking first can lose messages on a crash (at-most-once). Acking afterwards can redeliver on a crash (at-least-once). Deduplicating within the same transaction makes the effect happen once (effectively exactly-once).

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic