Must be occupied for the majority of the year.
Lenders categorize homes based on your intent. This affects your interest rate: Must be lived in for part of the year.
Only your main home qualifies for the $250k/$500k exclusion. Strategic Steps to Purchase