Two-factor authentication (2FA) that uses the authenticator app method can be backed up by storing the setup key. However, the best way to protect against a lost sign-in 2FA is to set up a Master Key and store it in a separate location and device, or by using a Hardware Security Key instead.
Funding 2FA and Trading 2FA do not need to be backed up because they can be changed by using sign-in 2FA.