You are right, the spare needs the config to get to the internet. Without DHCP, this is typically the IP config including DNS servers. When going online and added as a spare, the MX will update to the same firmware as the primary and fetch the config to become operational.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.