The best response to the question of how to cook foods in order to kill microorganisms and prevent their growth is:
We should cook them at high temperatures and add salt.
Cooking at high temperatures (above 75°C or 165°F) is effective for killing harmful microorganisms, while salt can help to inhibit microbial growth. Freezing and removing moisture are methods that can help preserve food but are not as effective as high-temperature cooking for killing existing microorganisms.