Bacteria can inherit a memory of a virus
After surviving a virus attack, bacteria and archaea can save pieces of the virus's DNA in CRISPR regions of their own DNA. Their descendants inherit these pieces and can use them to recognize and attack the same virus later.