Pergunta de entrevista da empresa Google

Explain the CAP theorem and its consequences?