The Alfredo pasta will last for up to 3 to 5 days in the refrigerator, assuming it was stored within 2-3 hours of cooling off.  It is possible to prolong the shelf life of cooked baked alfredo ziti further by freezing it in sealed airtight containers or heavy-duty freezer bags. It will last several months in the freezer.