Pergunta de entrevista da empresa New Work SE

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