Doist interview question

database sharding vs partitioning vs replication