Depending on the age and timing of the vaccine, the immune response generated by vaccines can be anywhere from weeks to years.
Younger pets (puppies and cats) will need vaccines more frequently due to antibodies provided by their mother that minorly interfere with a vaccine’s long-term effectiveness. Older pets can have a lasting immune response that will stay effective for months to years.