which type of microbe reproduces by producing spores?

Bacteria can reproduce by spores when the environment becomes harsh. Usually they reproduce by cell division. Another microbe that reproduces with spores is Microsporidia.

Of course, many larger plants such and fungi and ferns (pteridophytes) also reproduce with spores.