The Pneumonia shot helps to prevent infection caused by pneumococcal bacteria. 23 types of pneumococcal bacteria are prevented by taking the pneumonia shot. People over 65 years of age are more susceptible contracting pneumonia as compared to others.