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.
- A. P-1, Q-3, R-2
- B. P-3, Q-2, R-1
- C. P-3, Q-1, R-2
- 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).
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- In CQRS, what is separated, and what is a typical consequence?
- A method has cyclomatic complexity 25. Which conclusion is most reasonable?
- A team writes acceptance criteria as 'Given a cart worth ₹900, When the user applies coupon SAVE10, Then the total is ₹810', and automates…
- A codebase reports 100% line coverage, but the mutation score is only 20%. What is the most likely explanation?
- In TDD, a developer has one failing test, assertEqual(add(2, 3), 5), and makes it pass with return 5. What is the next step according to…
- A legacy COBOL system with no documentation is analysed to recover its design (step 1), restructured and migrated to Java with the same…