Genetic testing involves analyzing a person’s DNA to identify mutations that may predispose them to certain types of cancer. For instance, mutations in the BRCA1 and BRCA2 genes significantly increase the risk of breast and ovarian cancers. Identifying these mutations can help in early diagnosis and preventive measures.