Spouse is not a US tax resident but has SSN. Impact of filing jointly and singly on her tax status.

Hi!

My spouse is currently not a US tax resident (lives outside the US and is not a US citizen) but has a SSN as she was a tax resident 5 years ago while living in the US under a work visa. I understand that if we file jointly she would then become a US tax resident but if I file individually she will not become one, and hence she wouldn't need to file her tax return? Furthermore, when filing individually I should be able to e-file given that she has a SSN?

Thanks!