Killing microorganisms in food can be used to extend the shelf life of that food.
Cooking kills the microorganisms.
Cooking can be used to extend the shelf life of food.
What can extend the shelf life of food?
  cooking it
  Enzymes
  evaporation
  rays or beams
  running it under water
  Proteins
  seasoning it
  putting it on a counter