Is the battery inside the cartridge? And how long does it last?
Yes, and the longevity of it varies. I got my game soon after it came out and it's still working fine. There's been some cases (don't know exactly how many people it's happened to) of the internal battery dying a few years after purchase. It's basically random as to when/if it dies.