A weakened or inactive germ, a piece of one, or the recipe for that piece.
They make antibodies that fit it, like keys cut for one lock.
Long after the vaccine has gone, they remember that shape.
The body knows it at once, so it fights back sooner and harder.