Hereditary cancer testing can identify inherited genetic variants associated with increased cancer risk, helping people discuss screening, preventive care, and family testing with healthcare providers.