What is a major factor in determining the cariogenicity of a carbohydrate?

How long it stays in the mouth

The sugar content

How much of the carbohydrate is eaten

How much saliva is required to clear the acid it produces