protection conferred on a host by inoculation with one strain or component of a microorganism that prevents infection when later challenged with a similar strain