This defect is largely driven by genetic predisposition, with polymorphisms in genes such as HNF1A, HNF4A, TCF7L2, and MTNR1B, which regulate β-cell proliferation and insulin transcription, being strongly associated with both GDM and progression to T2D. The gene discussed is HNF1A; the disease is gestational diabetes.