Answer :

By storing food in the proper temperature (room temperature or fridge/ freezer) and cooking foods (such as meat) properly and fully.
One effective way to kill most bacteria in food is to cook it using high temperatures, so the bacteria will die.

Other Questions