Which statement best reflects how production systems typically handle cross-shard transactions?

Test your Systems Design Concepts knowledge with our comprehensive quiz. Utilize flashcards and multiple choice questions to enhance your study session. Prepare thoroughly with detailed explanations for each answer and ace your examination!

Multiple Choice

Which statement best reflects how production systems typically handle cross-shard transactions?

Explanation:
Distributing data so that related pieces live on the same shard minimizes the need for cross-shard coordination, and when cross-shard work does occur, many systems prefer patterns that don’t rely on locking across shards. Two-phase commit across multiple shards is powerful for atomicity but introduces blocking, failure risk, and performance penalties, making it unattractive for everyday production use. In practice, teams design shard keys to keep related data together and use alternative approaches (like Saga-like compensating actions) for complex multi-step operations rather than relying on a distributed transaction protocol. That’s why the statement describing production practice as avoiding cross-shard transactions by careful shard-key design—and steering clear of 2PC—is the best fit.

Distributing data so that related pieces live on the same shard minimizes the need for cross-shard coordination, and when cross-shard work does occur, many systems prefer patterns that don’t rely on locking across shards. Two-phase commit across multiple shards is powerful for atomicity but introduces blocking, failure risk, and performance penalties, making it unattractive for everyday production use. In practice, teams design shard keys to keep related data together and use alternative approaches (like Saga-like compensating actions) for complex multi-step operations rather than relying on a distributed transaction protocol.

That’s why the statement describing production practice as avoiding cross-shard transactions by careful shard-key design—and steering clear of 2PC—is the best fit.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy