Pregunta de entrevista de Google

Explain the CAP theorem and its consequences?