OYO interview question

How replication works in database servers?