Let’s say I have an external HDD with 4 TB of data, and I store it in the shelf.

There is no dust going into it, or anything.

I take it out from the shelf after 10 years, will it work perfectly in theory?
If not, what part can deteriorate and why?