Doist interview question

Explain sharding, partitioning, and replication.