Domanda di colloquio di Google

Explain the CAP theorem and its consequences?