Artificial immunity is acquired through medical intervention, such as vaccination, where the body is exposed to an antigen to stimulate an immune response. Analgesics are pain relievers and penicillin is an antibiotic, neither of which provide immunity.