Pre-exposure to yeast protects larvae of Galleria mellonella from a subsequent lethal infection by Candida albicans and is mediated by the increased expression of antimicrobial peptides.