Rat fleas transmit the Yersinia pestis bacteria between infected rodents and humans, causing zoonotic plague. The bacteria can cause three main types of plague - bubonic, pneumonic, and septicemic. Bubonic plague occurs when the bacteria enters through a flea bite and infects lymph nodes, causing swelling. Pneumonic plague develops when the infection spreads to the lungs via droplets. Septicemic plague happens when the infection enters the bloodstream from bubonic or pneumonic plague. Diagnosis involves examining blood, sputum, or infected lymph nodes under a microscope to look for the bacteria.