Age, size, charge rates,discharge rates all play a role in a batteries lifespan when you are connecting them together. You can hook up regular wet flooded cells to agm batteries and it would work BUT it will come at the cost of the batteries lifespan. The closer you get to the SAME the longer BOTH batteries will last. Take two of the same brand but different size they will not charge and discharge the exact same, do it with 2 batteries close to new of the same brand, condition, size and model they should in effect last the longest. A bad mix of batteries might last 6 months or 3 years plus under good conditions, mix two of the same brand it might last a little longer before one goes. If you have the same kind same age same model they should and could last 5+ years under good conditions.
Lets say you have an old Napa flooded cell under the hood and then you add a group 31 agm in back. Eventually the mix will cause one or the other to fail faster than it normally would. Relays and or isolators help but are not perfect. They help prolong life spans but can have a negitive effect on the overall performance. Even if relays or isolators are used it is still a very good idea to monitor the conditions of both batteries regularly.