A CD (Compact Disc) is a type of optical memory used for storing data, music, videos, and other digital content. It falls under the category of secondary storage and is classified as non-volatile memory, meaning data remains stored even when the power is turned off.