You should use a battery that is recommended for your UPS by the manufacturer, or is a direct replacement for the existing battery with equivalent rating. Use of alternative batteries can cause issues with the charging or reporting circuitry of the UPS, and can even potentially be a fire or explosive hazard.
Since you did not state the specific model and rating of the UPS or existing battery(s), this is the best answer I can provide.