Pergunta de entrevista da empresa Singapore Infotech

if a transaction fails how data in database is recovered?