New Work SE interview question

When do you need to use a data base instead the SharedPreferences?