Gamma rays are used in medical imaging techniques like gamma-ray spectroscopy and PET scans . They are also utilized in radiation therapy to treat cancer.