Which is iffy, at best.
I had the typhoid vaccine and 9m later got resistant typhoid.
The typhoid vaccine is not 100% effective. It is from 50% to 80% effective during the first year after vaccination, and the efficacy drops after that.
It is not a matter of resistance; it is the fact that it is hard to induce lasting immunity against bacteria, and there is variability in our immune systems.
I’m planning to travel soon. I’m getting interesting vaccines. Typhoid, Japanese encephalitis, rabies—I should get one of those little numbered metal tags for that one! My doctor told me that plague is a problem in one of the countries where I will be visiting, but there is no plague vaccine. So I will be covering myself in DEET, and making sure everything I eat is cooked thoroughly. I don’t want to catch something nasty when I finally visit these places that I’ve dreamed about for decades.