Your question is Leader Election with Etcd. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Create a backend server with a leader; if the leader goes down a new leader should be selected (use a central store like etcd to track the leader rather than peer-to-peer election). Asked in the onsite stage. The author had to install etcd and could not complete it.
Implement a practical service in which multiple backend instances coordinate through etcd. Only the instance holding a valid lease may act as leader. The service must detect leader failure, allow another instance to take ownership safely, and prevent stale leaders from continuing to process work.
Explain and demonstrate: