It is important to know that the magnetic field of the Earth depends on its properties inside its nucleus, which means the magnetic field is variable.
In other words, the polarity of the Earth's magnetic field changes its polarity over time.
Hence, the answer is the second option.