Questions: Exactly-Once Delivery Semantics

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A payment service sends a 'charge $50' message to a billing system. The billing system processes the charge and sends an acknowledgment, but the acknowledgment is lost in the network. The payment service retries. Under at-least-once semantics, what happens next?

AThe billing system detects the duplicate automatically via TCP checksums and discards the second message
BThe billing system receives the duplicate message and, without additional deduplication logic, charges the customer $100 total
CThe payment service detects the timeout and cancels both the original and retry charges
DAt-least-once semantics prevents retries; only at-most-once semantics would retry the message
Question 2 Multiple Choice

A system is described as providing 'exactly-once semantics' for message processing. What is the core technical mechanism that makes this possible?

AThe network layer guarantees each packet is only ever transmitted once, so no duplicates reach the application
BThe sender assigns each message a unique ID; the receiver maintains a log of processed IDs and skips processing if the ID has been seen before
CThe sender and receiver use a two-phase commit protocol to agree on whether each message was processed
DMessages are buffered and batched, so duplicates within the same batch cancel each other out before processing
Question 3 True / False

Exactly-once semantics prevent a message from ever being physically delivered to the receiver more than once.

TTrue
FFalse
Question 4 True / False

Exactly-once semantics are most important for operations with non-idempotent side effects, such as charging a payment or incrementing a counter, where processing the same message twice produces incorrect results.

TTrue
FFalse
Question 5 Short Answer

Exactly-once semantics are often described as 'effectively-once.' What does this mean, and what must a system do to achieve this guarantee?

Think about your answer, then reveal below.