An answer on another SE site mentions that sugar "at a certain level acts as a preservative". I've always been taught that microorganisms eat sugar and expel acids, that is why sugary food are damaging to teeth. How is it that sugar acts as a preservative, then?
Googling the question I've found conflicting answers though I don't credit the sources as being especially reputable. What is the real reason that sugar can act as a preservative?