Zeller Interview Question

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