Question: which layer of earth is responsible for magnetic field?
Answer: the Earth's outer core