What happens when your immune system encounters an extracellular bacterial pathogen

Walk through what happens when your immune system encounters a live attenuated virus (in a vaccine)