It must be valid for the length of your residence permit period and you also need it when you want to renew your Golden Visa.