Generally, batteries designed for UPS duty are designed to be discharged quickly and deeply, but not very often - compared to batteries for off grid solar that are discharged every night for years on end. You will note that UPS batteries often publish their amp hour ratings based on draining them in 1hr, 2hr or 5hr.
Deep cycle batteries are rated in terms of "how deep, how often, how fast." Keep in mind that UPS batteries are specifically built to be charged right back up when the power turns back on. The typical life cycle of UPS batteries is discharging for short periods, recharging, then sitting on float for days/weeks.
Terminology is often misused/misunderstood, but most often a "Marine Deep Cycle" battery is designed for both cranking and some deep cycling. Even the term "deep cycle" has to be defined. How deep is deep?
To put it in perspective, here are typical ranges of how many times you can deep cycle different types of lead-acid batteries - based on taking them down to 0% remaining in the battery (100% depth discharge)
True deep cycle 400-600 charge/discharge cycles
Marine deep cycle 40-50 charge/discharge cycles
Typical starting battery 20-25 charge/discharge cycles
Of course if you don't drain them down that far, the numbers increase dramatically for all of them. Also note, that the test numbers are performed under controlled conditions per BCI Standards! In the real world, we get less.
An example are Optima and Odyssey Deka - well known AGM batteries which all publish around 500 cycles at 50% and about 150 cycles if take them very deep. True Deep Cycle AGM's like Lifeline and Fullriver that are rated for 1,000 to 1,300 at 50% and Deka Gel batteries are in the same range.
And...... there are many, many AGM's on the market that are rated for far fewer charge/discharge cycles.
Battery design has more to do with it than AGM vs Wet vs Gel batteries. When doing a layout for an off grid cabin, I will generally design for 15% to 20% average daily discharge in order to get 3,500 to 4,000 cycles for a 10 year life - using either AGM's or Flooded batteries.
Below is a chart from an AGM battery maker (Fullriver USA) with some of the higher ratings. Others can be half or a quarter of the number of cycles at any given depth of discharge.