Using genetic testing to help prevent cancer

How do you use genetic testing to help stop cancer?