Pregunta de entrevista de Zeller

How does database sharding work? How was a database indexed?