If it contains flour, baking your flour at a high enough temperature before adding it into the cookie dough takes away the risk factor of potential bacteria contamination. In addition, it should not contain egg, or the egg should be pasteurized. It should also be stored at the correct temperature at all times.