A primary barrier to keeping microbes off spacecraft and instruments going to space (here it is Curiosity) is to assemble them in clean rooms, such as this one at JPL. These large rooms with filtered air do help lower the count of microbes on surfaces, but the bacteria are everywhere and further steps are essential. (NASA)