Pergunta de entrevista da empresa Tide

2 questions from Database, 1 from Java, CAP theorem etc.