Along with the spin of the Along with the spin of the Earth, what causes its magnetic field?

the presence of magnetic rock layers in the lithosphere

the partially melted rocks of the asthenosphere

the movement of molten rock in the outer core

the use of compasses on the surface of the Earth