UPS batteries are made up of cells or blocks that are connected to provide a backup power source. If the…