Always wash hands before and after handling food. Proper cooking is one of the main ways to avoid contamination, since heat kills bacteria. Consult cookbooks for proper cooking temperatures and times, and use a meat thermometer. Cook red meat until it is well done. Eggs should be thoroughly cooked, not runny.
Microwave cooking involves special requirements.
Consult a microwave cookbook for details on proper use. Another tactic is to avoid uncooked or undercooked foods by themselves or as components of other food preparations. Eggs should be assumed to be contaminated, and it is best to avoid anything containing raw or undercooked eggs, including raw cookie dough, cake batter, eggnog, Hollandaise sauce and Caesar salad or other dressings made with raw eggs. Eggshells should also be regarded as contaminated. They should be disposed of properly and hands should be washed after handling them.