Next question: which layer of the earth is responsible for generating the earth magnetic field?
outer core