What is “credit default swap” (CDS) in financial markets?

What is “credit default swap” (CDS) in financial markets?

A financial contract that allows an investor to “swap” or offset their credit risk with that of another investor. It’s like insurance against a borrower defaulting. Not for personal mortgages.