Tide interview question

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