Shaadi.com interview question

when to use which database in real time system