CD8+ T cells recognize antigens presented by MHC class I molecules on the surface of infected cells. Upon recognition, they release perforin and granzymes, which induce apoptosis in the target cell. This mechanism is vital in eliminating cells infected with viruses or transformed by cancer.