Before asking how to prevent gestational diabetes you should know that this is a kind of diabetes that only affects…