A UPS will require a battery replacement every 10 years or so, regardless of whether you ever have to go on battery power or not. The UPS should automatically sense the status of the battery and warn you when a replacement is needed.
Pick a model from one of the major manufacturers and look up the replacement battery costs to get an idea of what it will cost.
It's just a big battery that you can plug things into full time. When power goes out it instantly switches to battery power. It recharges when the power comes back.