For e.g. Peptides from virions are digested, displayed on the cell surface, and presented to patrolling T cells that survey the body for infection.
This is similar to how flags are planted on a planet's surface to notify space-faring voyagers of the likely inhabitants on the planet.