A one-cup serving of cooked sweet potato has about 26 grams of carbohydrates. Therefore, they aren't keto-friendly because they can knock a person out of ketosis.