New words ~”guarantee” and “warranty

Recently I learned two new words “guarantee” and “warranty”.

At first I was confused about these two words. Later, after asking the coach, I have been able to distinguish the difference between the two.

My understanding is that
“Guarantee” means a full refund if the item is defective.
“Warranty”means the after-sales service guarantee for the goods, only for repair or replacement of goods.