The hepatitis A vaccination induces the immune system to develop antibodies against the hepatitis A virus (HAV), providing long-term protection. Hepatitis A immunoglobulin, on the other hand, contains antibodies that act against HAV and is administered when rapid protection against the virus is required.