Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:
Distributed transactions extend ACID guarantees across multiple databases or servers. A “distributed unit of work” addresses whether multiple remote locations can be involved within one logical transaction boundary.
Given Data / Assumptions:
Concept / Approach:
A distributed unit of work groups statements across nodes so they either all commit or all roll back together. Coordinators manage prepare/commit phases to guarantee atomicity and durability. This enables cross-database updates like “debit here, credit there” without inconsistent outcomes.
Step-by-Step Solution:
Verification / Alternative check:
Simulate failure of one participant during the prepare phase; the coordinator should force a global rollback, demonstrating atomic behavior across sites.
Why Other Options Are Wrong:
Common Pitfalls:
Ignoring failure modes and idempotency; ensure participants support recovery logs and in-doubt resolution to avoid blocked transactions.
Final Answer:
Correct
Discussion & Comments