Genetic factors and family history significantly influence an individualâs risk of developing cancer. Studies have identified specific gene mutations, such as BRCA1 and BRCA2, that increase the risk of breast and ovarian cancers. Genetic testing and counseling can help at-risk individuals take preventive measures.