My first battery on my Yukon lasted like 7 years (new OEM from the factory). My second lasted like 5 years (high quality wet cell). My current battery (expensive Napa AGM) was looking like it wasn't going to last even to the free replacement warranty cutoff.
My guess is my use profile had evolved from lots of long distance travel to much more short trips where the power management just wasn't getting my battery fully charged back up to where it needed to be frequently enough to stave off early chemistry deterioration. My normal charge after a number of hours of shutdown was hovering around 12.2-.3v.
My alternator had a whining bearing, so I replaced it. That didn't change how my battery was keeping charge.
I decided to buy one of those fancy CTEK trickle chargers that have built in conditioning and have used it fairly faithfully in recent months and my battery now recovers right at 12.8v after some hours after a shutdown, so it does seem to have stemmed the early deterioration I might have been seeing with my short trip use profile.
Lots of assumptions in the above, some of which may not be accurate, but right now, it seems the battery charger I connect most nights seems to be making a difference in how my battery will hold up, given my short trip use and how GM seems to manage charging in the power hungry trucks.
Thats actually really good for me to know. Because of working from home it'll be used for mainly short trips. I think I should keep an eye on my battery charge level at least for the next little bit.