Genetic testing looks for specific inherited mutations that may increase a person's risk of developing certain types of cancer. For example, BRCA1 and BRCA2 gene mutations are linked to a higher risk of breast and ovarian cancers. Identifying these mutations can help in making informed decisions about preventive measures and treatment options.