Design a cloud database write path and recovery | Amazon Interview Question