CD-SEM utilizes a focused beam of electrons to scan the surface of a sample. When the electrons interact with the atoms on the surface, they generate various signals that can be detected and used to create high-resolution images. The primary signal used in CD-SEM is the secondary electron signal, which provides detailed information about the topography and dimensions of the sample.