Tide Interview Question

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