Years on a battery set the clock, but the check you run and the paper you keep decide whether a claim or a warranty holds. A battery is easy to test and hard to argue about after it dies.
Whether the battery is covered
Some contracts list the battery as a maintenance item. Some leave it out. Some cover it only when it fails during a covered event. Read the wording before you assume either way. Ask the administrator for the exact line in writing.
Test it at home
Look at the terminals for white or green buildup. Wear eye protection. Clean the posts and clamps with a brush and a mix of baking soda and water, then dry them. Make sure the clamps are tight and the battery does not move in its tray. A loose battery wears out faster than a secured one.
Test it at the shop or the parts store
Many parts stores will run a load test while you wait. Ask for the printed result and the test type. A load test tells you more than a quick glance at the terminals does. If the battery is part of a claim, ask the shop to note the reading on the work order.
Replace on schedule, not on failure
Pick a replacement point before the battery leaves you stranded. Many owners replace based on the age printed on the label, or after a test shows a weak result. Set a reminder with the mileage at the time. A failed start in a parking lot is the hard way to learn the same lesson.
Keep the receipt with the car
Write the install date and the mileage on the receipt. Keep the receipt, the warranty card, and a photo of the label in the car's service file. If you sell the car, that file answers the buyer's questions and any transfer clause question about maintenance.