SQ79
A fintech application must process exactly-once semantics for financial transactions in an event-driven system. What is the most practical approach on Google Cloud?
- AUse Memorystore as the primary transaction database
- BCall services synchronously with no retries
- CUse Pub/Sub with idempotent consumers that deduplicate on a unique transaction ID
- DDisable retries to avoid duplicates
Show answerHide answer
Answer: C
True exactly-once is achieved in distributed systems by combining at-least-once delivery (Pub/Sub) with idempotent consumer logic that deduplicates using a unique key. Disabling retries trades correctness for data loss.