Consensus & Leader Election
Distributed lock
Workers must not process the same invoice PDF generation concurrently. A developer uses Redis `SETNX` with a 30s TTL and no fencing. What failure modes remain, and how would you harden the lock?
Advanced drill question.